Question Locked
0 helpful
3 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
Hi All, I am launching a vbs script from a bat file that auto aranges the desktop icons. The bat file is mounted as a logon script on a network. Each time that the desktop.vbs file is executed, windows will ask if I will allow the file to run, is there a way to run the file without having to allow it each time.
3 replies
by rudioliver Accepted solution
Clarifications
by robo_dev Accepted solution
Have you tried using the 'runas' command?
http://www.microsoft.com/technet/scriptcenter/resources/qanda/apr06/hey0428.mspx
runas /profile /user:joeuser\joeuser "cscript.exe \"C:\Documents and Settings\kenmyer\Scripts\test.vbs"\"
by rudioliver Accepted solution
It looks like this at the moment:
:Desktop
\\172.21.96.13\Updates\SoftwareInstall\Desktop.vbs
It runs from my server and needs to deploy on 200 pcs.
Do I need to use the server name in the "profile/user/ part of runas?
This discussion is closed to new replies.
Trending Networks posts
Sort by Trending
Question Locked
Internet connection perfect on PC, not connecting anywhere else
0 helpful
4 replies
Question Locked
Using multi-NIC setup for NAS + router — better than VLAN?
0 helpful
4 replies
0 helpful
5 replies
Question Locked
Unknown device connected to my network
0 helpful
2 replies
Question Locked
How to change public IP without ISP?
0 helpful
2 replies