start-process as Administrator

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

Viewing 1 reply thread
  • Author
    • #225996
      Topics: 9
      Replies: 12
      Points: 138
      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: 4
      Replies: 2231
      Points: 5,414
      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
  • You must be logged in to reply to this topic.