How can I launch an application using kScripting?
I have a VBS script to perform various post AutoDesk 2015 tasks such as install Autotable, move shortcuts, etc. The script is pushed via KAce Scripting. Part of that script I would like to have Revit.exe and ACA.exe launch. I would then login to the PC and visually verify several items in those applications. I want the script to launch the applications so I don't have to spend 5-10 min doing it manually. This process must execute on 70+ machines, the more I can automate certain steps, the lower my risk for re work is.
The problem is the script appears to be launching revit.exe and aca.exe in another user's session. Maybe SYSTEM, not sure how to tell. I know this because when I push the script from Kace, and while logged into the targeted machine as a user with read/write access to C:\, I see an Interactive Services Detection (IDS) prompt. I click the IDS prompt and click to view the message. I am then moved to what appears to be another user's session where revit.exe and aca.exe are both open and running. I have to click on the IDS prompt in that user's session to return to my normal session, where I can see the desktop icons etc. that I am normally used to seeing.
How can I use VBS to launch an application in a specific user's session? (the admin in this case) Can Kace launch an application in s a specific user's session?
Any other suggestions and/or observations are greatly appreciated.
0 Comments
[ + ] Show comments
Answers (1)
Please log in to answer
Posted by:
chucksteel
9 years ago
By default scripts run in the system context.
Tip: Rather than logging into 70+ computers manually you can setup a script that sets the autologin registry keys and then restart the computers. Just remember to remove the autologin keys (with another script) when you are done. I use this technique for those times that I need to make manual changes to a lab.
Comments:
-
Isn't there now a counter setting for autologon which avoids having to remove the entries? - EdT 9 years ago
-
You can set the AutoAdminLogon key to 0 and leave the username and password keys in place but I would consider that a security risk. - chucksteel 9 years ago