launch CMD from powershell as network service and run the commands RRS feed

  • Question

  • Hi,

    i need your help on one of my powershell script. i need to launch the CMD as "network service" and run some of the commands on the launched cmd without the interaction(not by manual typing).

    psexec -i -u "nt authority\network service" cmd.exe 

    the above code will launch the cmd as network service but wait for the other commands to type.

    i am just a beginner to powershell , can someone please help me on this.

    • Moved by Bill_Stewart Wednesday, September 4, 2019 3:25 PM Off-topic
    Friday, December 28, 2018 10:17 AM

All replies