start-process as Administrator

Welcome Forums General PowerShell Q&A start-process as Administrator

Viewing 1 reply thread
  • Author
    • #225996
      Topics: 10
      Replies: 13
      Points: 152
      Rank: Participant

      Hi all.

      I have a .ps1 script which is working only if i’m opening the ISE as admin.

      even i i loging as admin and open the ISE, it doesn’t works.

      the issue is that i want to create a task to run the script and i don’t want to enter credentials every time which that is the situation when i’m inserting the “-verb RunAs”  to my script.

      please help.

    • #226020
      Topics: 7
      Replies: 2458
      Points: 6,439
      Helping Hand
      Rank: Community MVP

      You can set up the task to run with highest privileges … no need to explicitly do that in your script.

Viewing 1 reply thread
  • The topic ‘start-process as Administrator’ is closed to new replies.