I'm trying to run a script to find out the ACL for all the folders on
oneof my file servers, but since I also dont have access on some of the
folders like finance and HR, the script fails. The only way I can think
of without changing the permissions on the HR and Finance folders is to
run the script using the builtin SYSTEM account.

If anybody know how to run a script using the system account, please
let me know.

Cheers
Arvind

Re: How to run a Script using the System account by DontBotherReplying

DontBotherReplying
Wed Aug 09 14:05:24 CDT 2006


Arvind-ACS wrote:
> I'm trying to run a script to find out the ACL for all the folders on
> oneof my file servers, but since I also dont have access on some of the
> folders like finance and HR, the script fails. The only way I can think
> of without changing the permissions on the HR and Finance folders is to
> run the script using the builtin SYSTEM account.
>
> If anybody know how to run a script using the system account, please
> let me know.
>
> Cheers
> Arvind

Get PSEXEC utility from
http://www.sysinternals.com/Utilities/PsExec.html

Have PSEXEC run CSCRIPT on the target machine (or server), add a -S to
the command line to run the script as system account. Additionally,
you'll need to tell script the full location of the script (preferrably
copied to the workstation).


Re: How to run a Script using the System account by mfeliz

mfeliz
Wed Aug 09 16:57:34 CDT 2006

You can also run the script in a Group Policy object this causes the
script to run as system.

DontBotherReplying wrote:
> Arvind-ACS wrote:
> > I'm trying to run a script to find out the ACL for all the folders on
> > oneof my file servers, but since I also dont have access on some of the
> > folders like finance and HR, the script fails. The only way I can think
> > of without changing the permissions on the HR and Finance folders is to
> > run the script using the builtin SYSTEM account.
> >
> > If anybody know how to run a script using the system account, please
> > let me know.
> >
> > Cheers
> > Arvind
>
> Get PSEXEC utility from
> http://www.sysinternals.com/Utilities/PsExec.html
>
> Have PSEXEC run CSCRIPT on the target machine (or server), add a -S to
> the command line to run the script as system account. Additionally,
> you'll need to tell script the full location of the script (preferrably
> copied to the workstation).


Re: How to run a Script using the System account by TheMuffinMaster

TheMuffinMaster
Thu Aug 31 20:28:12 CDT 2006

Arvind-ACS wrote:

> I'm trying to run a script to find out the ACL for all the folders on
> oneof my file servers, but since I also dont have access on some of the
> folders like finance and HR, the script fails. The only way I can think
> of without changing the permissions on the HR and Finance folders is to
> run the script using the builtin SYSTEM account.
>
> If anybody know how to run a script using the system account, please
> let me know.
>
> Cheers
> Arvind
from the prompt run
at (currenttime+1 minute)/interactive cmd

you will go though a password check. Be loged in with admin locally.
When you get a new cmd window you will be running with a system account. Run
your script from this window. I use this to set perms on migrated accounts
all the time.