Can't deploy .bat towards PDQ
Dear,
I have some trouble pushing a basic .bat to our domain laptops:
.bat creates a web desktop shortcut
.bat content:
echo [InternetShortcut] >"%userprofile%\desktop\servicedesk.url" echo URL='Myurl' >>"%userprofile%\desktop\Service Desk.url" echo IconFile=Z:\path\helpdesk.ico >>"%userprofile%\desktop\servicedesk.url" echo IconIndex=0 >>"%userprofile%\desktop\servicedesk.url"
--> When executing the .bat manually it works like a charm
Tried several Install steps like mentioned in tutorials ( cmd step / install step / several arguments tried ).
When deploying it mentions : Successful but nothing appears on desktop....
I could do it towards GPO but pref to do it with PDQ for now.
Any ideas why it is nor working?
Thanks in advance, Kind regards, Taz
Comments
Have you tried it using PowerShell?
If you're running it as the account that you have PDQ deploying as, it will put it under that profile as opposed to whomever is logged in.
You can do the step as the logged-in user which should work, but you'd probably be better off adding it to the public desktop so everyone gets the shortcut instead of a single person.