Here is my script:
c:
cd \temp\vncscan
set /p NAME=Enter User ID:
copy APPSRV.INI "C:\Documents and Settings\%NAME%\Application Data\ICAClient\"
copy pn.ini "C:\Documents and Settings\%NAME%\Application Data\ICAClient"
copy WFCLIENT.INI "C:\Documents and Settings\%NAME%\Application Data\ICAClient\"
copy MODULE.INI "C:\Program Files\Citrix\ICA Client\"
I used the "set /p NAME=" to prompt for the login ID so that it should copy the files to the users profile, but for some reason it doesnt work. I have tried using the default %USERNAME% variable first but that didnt work either. It would try to copy the files to the Administrators account no matter who was logged into the remote PC.
I added pauses to it so I could see where it was failing but it doesnt pause.
Any help would be much appreciated.
Thanks