Hello,
here is my script (confidential info changed .. obviously):
setlocal enabledelayedexpansion
set Citpath=C:\Program Files (x86)\Citrix\ICA Client\SelfServicePlugin\CleanUp.exe
for /F %%F in (pclist.txt) do (
echo Connecting to %%F ...
NET USE w: \\$$F\c$ PASSWORD /USER:Administrator
xcopy CitrixReceiver.exe w:
timeout /t 5
psexec \\%%F c:\CitrixReceiver.exe /silent /accepteula /STORE0="store;
https://test.test.com/Citrix/pnagent/config.xml;on;TEST"
IF !errorlevel! EQU 0 psexec.exe \\%%F !Citpath! /CleanUser /silent
echo Complete
NET USE w: /delete
)
pause
- The problem i have having is, it would at first just close on its own, until i put that variable as the path, now it says "network connection could not be found"
i can ping the other machine, both on same network. is there anything wrong with my batch script here that im not seeing?
thanks in advance.