Execute a runonce script in invisible mode

G

Guest

Hi,

I've made a script that I execute only one time on my computers. So I've
puted it in the runonce section of the registry.
All is working fine. I just need now to run this script without interactive
screen, because I don't want any user to break it for exemple.

Thanx for help
 
P

Pegasus \(MVP\)

HEGMS said:
Hi,

I've made a script that I execute only one time on my computers. So I've
puted it in the runonce section of the registry.
All is working fine. I just need now to run this script without interactive
screen, because I don't want any user to break it for exemple.

Thanx for help

Instead of putting it into the RunOnce key, turn it into
a scheduled task that runs just once.
 
G

Guest

"Pegasus (MVP)" a écrit :
Instead of putting it into the RunOnce key, turn it into
a scheduled task that runs just once.

I can't use a scheduled task because the script must be run with a user
logged and the "Run only once" option of scheduled task must have a time to
run and I don't know when it will be run
 
G

Guest

It's a little batch which run vbs script to add computer in domain and do
some other task on the computer after sush as reboot at the end of script so
that users can use the computer !

"Alan Edwards" a écrit :
 
A

Alan Edwards

I give in.
What user intervention do you get that you are trying to avoid?

....Alan
 
G

Guest

I don't want user break the script because the user connected on which the
script is running is admin of the computer !!!
One of the function of the script is to delete this user after it runs.

"Alan Edwards" a écrit :
 
D

Doug Knox MS-MVP

Why use a BAT file to run a VBS Script? VBS files will run silently in the background with no user intervention or interface. If you're using the VBS to "shell" out to the OS to run command line utilities, then you should investigate the Windows Scripting Host documentation, as there are many features of the OS that can be accomplished without using the traditional command line utilities.

WMI (Windows Management Instrumentation) can also be called from VBS without any interface being displayed. It has even more power than WSH in the networking area, such as joining a computer to a domain and other tasks.

http://msdn.microsoft.com/library/d...roup_method_in_class_win32_computersystem.asp
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top