Good Day,
Need help on this simple deployment.
I want to paste the .bat fille on startup path on the workstation but somehow the code for copying to C:\ProgramData\Microsoft\Windows\Start Menu\Programs\StartUp is not working or perhaps because the path is hidden by default?
heres my script:
prefetch unzip.exe sha1:e1652b058195db3f5f754b7ab430652ae04a50b8 size:167936 http://software.bigfix.com/download/redist/unzip-5.52.exe
//add unzip
if {exists file (pathname of client folder of current site & “__Download\unzip.exe”)}
utility __Download\unzip.exe
endif
//unzip file
waithidden __Download\unzip.exe -o “{pathname of client folder of current site}__Download\Start_Maxconnect.zip” -d c:\swdepot
copy “C:\SWDepot\Start_Maxconnect.bat” "%ALLUSERSPROFILE%\Microsoft\Windows\Start Menu\Programs\Startup