Hi,
I'm new to KIXTART. I'm trying to use a short kixtart script to set the users default printer in a metaframe farm with multiple servers and roaning profiles on server applic2. The script below only works when I replace %USERPROFILE% with the actual domain username (testcitrix). log in as this user while a run the script of course... Anybody knows the reason?
use u: \\applic2\profiles IF NOT EXIST ("u:\%USERPROFILE%\DFPrint.ini") copy "c:\winnt\Application Compatibility Scripts\DFPrint\DFPrint.ini" "u:\%USERPROFILE%\DFPrint.ini" /s/h ENDIF
shell "%systemroot%\Application Compatibility Scripts\DFPrint\SetDefaultPrinter.exe" $RegDFPrint = Readvalue("HKEY_Current_USER\Software\Microsoft\Windows NT\CurrentVersion\Windows","Device") $Result = writeprofilestring("u:\%USERPROFILE%\DFPrint.ini","DFPrint" ,"DFPrint", $RegDFPrint) use u: /del
|