Jump to content
Sign in to follow this  

VBS Script Through Automate

Recommended Posts

I am trying to implement a script that will give users a choice to reboot their computer now or put it off until later.

When running the script locally it works properly.

When I push it through automate it does not alert the user, and keeps the script "Running" until I manually stop the script.

Any ideas would be greatly appreciated! I attached some screenshots, so hopefully everything is clear.

(I didn't create this from script from scratch)




Share this post

Link to post
Share on other sites

I'm not too familiar with VBS but the fact that it doesn't run properly when pushed through Automate may have to do with how the agent is executing the script. 

When you run the code locally you are running it under your user account.  Typically when Automate does it is running as system.  

You may want to save the vbs script to the local machine and run it as the logged in user using 'if console logged on' to grab the %consolenumber% variable and then execute your vbs by calling the cscript with Console Execute


Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this