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

please help
itbabeAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
kevin_uk05Connect With a Mentor Commented:
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
 
MorDrakkaCommented:
Hi,

Can you do so by creating a scheduled task ?

M.
0
 
itbabeAuthor Commented:
I would like to do this by edting the script.
0
What Kind of Coding Program is Right for You?

There are many ways to learn to code these days. From coding bootcamps like Flatiron School to online courses to totally free beginner resources. The best way to learn to code depends on many factors, but the most important one is you. See what course is best for you.

 
kevin_uk05Commented:
What sort of script?
0
 
itbabeAuthor Commented:
vbscript
0
 
kevin_uk05Commented:
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
 
itbabeAuthor Commented:
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.