Windows Vista Forums

Running a Powershell script under Local System rights?

  1. #1


    Philip Jensen Guest

    Running a Powershell script under Local System rights?

    Hello everybody,
    I am new to this newsgroup, therefore I'm not sure if a similar question
    has been asked previously. If so please bare with me.

    Anyway, I would like to have a Powershell Script to be executed under
    Local System rights (NT AUTHORITY\SYSTEM) as many installed Windows
    Services do by default (Log on as System). Is this possible to do? Maybe
    by writing a Windows Service using C# which in turn executes Powershell
    scripts?

    Thanks in advance,
    Philip

      My System SpecsSystem Spec

  2. #2


    RichS Guest

    RE: Running a Powershell script under Local System rights?

    It is possible to host PowerShell with C# applications. Theres an example
    here

    http://msdn2.microsoft.com/en-us/library/ms714630.aspx
    --
    Richard Siddaway

    Please note that all scripts are supplied "as is" and with no warranty


    "Philip Jensen" wrote:

    > Hello everybody,
    > I am new to this newsgroup, therefore I'm not sure if a similar question
    > has been asked previously. If so please bare with me.
    >
    > Anyway, I would like to have a Powershell Script to be executed under
    > Local System rights (NT AUTHORITY\SYSTEM) as many installed Windows
    > Services do by default (Log on as System). Is this possible to do? Maybe
    > by writing a Windows Service using C# which in turn executes Powershell
    > scripts?
    >
    > Thanks in advance,
    > Philip
    >


      My System SpecsSystem Spec


Running a Powershell script under Local System rights?
Similar Threads
Thread Forum
Script to list user rights assignment, local sec. policy and auditpolicy VB Script
Running PowerShell script from within an MSI? PowerShell
Running PowerShell Script from TaskScheduler PowerShell
Running batch file from Powershell script PowerShell
Running mutiple processes from a powershell script PowerShell