Solved

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

Posted on 2007-11-27
7
867 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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
splitOdd10 challenge 5 74
Messed up my code 6 32
How can I modify this Excel worksheet with a script? 15 73
VB Script to add site to Java Exception List 4 48
This article will show, step by step, how to integrate R code into a R Sweave document
When we want to run, execute or repeat a statement multiple times, a loop is necessary. This article covers the two types of loops in Python: the while loop and the for loop.
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.

914 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

18 Experts available now in Live!

Get 1:1 Help Now