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
Running powershell script from c# - duplicate assemblies
I have a powershell script TestSth.ps1 that is calling some methods from my custom assembly MyAssembly. So, in TestSth.ps1 i manualy load assembly...
PowerShell
Script to list user rights assignment, local sec. policy and auditpolicy
Dear all, I need to list user rights assignment, local security policy and audit policy of Windows 2003 servers. Request to help me in providing vb...
VB Script
Running PowerShell script from within an MSI?
My SMS packager is having some trouble getting a PowerShell script to run in an MSI. Does anyone know if this is possible and, if so, how to do...
PowerShell
Running a Command line script from within powershell.
I have a 3rd party command line tool I need to run from within a powershell script. What is the current method for doing this? I need the calling...
PowerShell
Running PowerShell Script from TaskScheduler
I am trying to run a powershell script on a network share through taskScheduler. powershell.exe -noLogo -command "& {. '\\knockhill\vista...
PowerShell
Running batch file from Powershell script
Hi, Can anyone tell me how to run a batch file from a Powershell script? Will appreciate a sample code. Thanks in advance, Varun
PowerShell
Running mutiple processes from a powershell script
I am running a cript on a multi-processor(and multi core) machine. It has to run a large number of datafiles through an executable (passed in by...
PowerShell