Solved

How can I force a script to run under the NT AUTHORITY/SYSTEM account ?

Posted on 2007-11-27
7
875 Views
Last Modified: 2013-11-25
please help
0
Comment
Question by:itbabe
  • 3
  • 3
7 Comments
 
LVL 6

Expert Comment

by:MorDrakka
ID: 20358912
Hi,

Can you do so by creating a scheduled task ?

M.
0
 

Author Comment

by:itbabe
ID: 20358932
I would like to do this by edting the script.
0
 
LVL 10

Expert Comment

by:kevin_uk05
ID: 20358962
What sort of script?
0
Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

 

Author Comment

by:itbabe
ID: 20358969
vbscript
0
 
LVL 10

Expert Comment

by:kevin_uk05
ID: 20359009
What is current setup. The best way to have a script run under the system account is to run the script at computer startup via Group Policy, what does the script do?
0
 

Author Comment

by:itbabe
ID: 20359132
But I would like it to run under the system account even when I run it under a local admin account and start the script myself.
0
 
LVL 10

Accepted Solution

by:
kevin_uk05 earned 500 total points
ID: 20359197
Download PSEXEC and then run the following from a command line

psexec.exe -i -s wscript.exe C:\YourScript.VBS

This will run the script under the Local System Account.
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Having just graduated from college and entered the workforce, I don’t find myself always using the tools and programs I grew accustomed to over the past four years. However, there is one program I continually find myself reverting back to…R.   So …
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question