Solved

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

Posted on 2007-11-27
7
864 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
6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

 

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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

This is pretty cool.  The purpose of this VB Script is to help you document where JAR (Java ARchive) files and specifically java class files are located so that you can address issues seen with a client or that you can speak intelligently with a dev…
This article is the result of a quest to better understand Task Scheduler 2.0 and all the newer objects available in vbscript in this version over  the limited options we had scripting in Task Scheduler 1.0.  As I started my journey of knowledge I f…
The goal of this video is to provide viewers with basic examples to understand and use conditional statements in the C programming language.
The viewer will learn how to implement Singleton Design Pattern in Java.

747 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now