Solved

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

Posted on 2007-11-27
7
891 Views
Last Modified: 2013-11-25
please help
0
Comment
Question by:itbabe
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

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

[Webinar] Code, Load, and Grow

Managing multiple websites, servers, applications, and security on a daily basis? Join us for a webinar on May 25th to learn how to simplify administration and management of virtual hosts for IT admins, create a secure environment, and deploy code more effectively and frequently.

Question has a verified solution.

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

If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
With User Account Control (UAC) enabled in Windows 7, one needs to open an elevated Command Prompt in order to run scripts under administrative privileges. Although the elevated Command Prompt accomplishes the task, the question How to run as script…
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

734 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