About 1,340,000 results
Open links in new tab
  1. Running a command as Administrator using PowerShell?

    Sep 12, 2016 · Here is how to run a elevated powershell command and collect its output form within a windows batch file in a single command (i.e not writing a ps1 powershell script).

  2. How open PowerShell as administrator from the run window

    Here's one way to open powershell (or run any command) as admin: press the Windows key (or control-escape) to bring up the Start Menu. Type the command you want to run. Press Control …

  3. uac - Cannot access network drive in PowerShell running as ...

    I'm running PowerShell in a Windows 7 x64 virtual machine. I have a shared folder on the host mapped as a network drive (Z:). When I run PS normally I can access that drive just fine, but if …

  4. Cannot delete a file even when logged in as an Administrator

    Sep 12, 2014 · 145 Just because you are an admin doesn't automatically mean you have rights. Are you running PowerShell as an elevated user (UAC)? Have you checked the permissions …

  5. windows - How can I run a command with administrator rights …

    Jun 21, 2023 · Easy to accomplish in Bash with a right click on exe location > properties > compatibility > run as administrator, not sure of a persistent way to do it in Powershell (or …

  6. windows - Ansible playbook, what is the proper syntax to run a ...

    Feb 7, 2018 · Via an ansible playbook, what is the proper syntax to run a powershell script with a specific (domain) user: DOMAIN\someuser, in an elevated mode? By elevated mode I mean …

  7. How do I run powershell scripts without admin rights?

    Nov 3, 2012 · I wouldn't know what group policy the admin's set at the office. I wonder if the policy stops the Invoke-Expression technique and the -EncodedCommand technique, which both …

  8. How to create a Run As Administrator shortcut using PowerShell

    64 This answer is a PowerShell translation of an excellent answer to this question How can I use JScript to create a shortcut that uses "Run as Administrator". In short, you need to read the …

  9. Unlock local user accounts via Powershell - Stack Overflow

    Oct 21, 2021 · I will like to know if there is a way i can use to unlock the local account via powershell. I know there is Unlock-ADAccount to unlock the AD accounts. Is there something …

  10. Running a PowerShell script as administrator without typing in

    You should see that your PowerShell script runs with full Administrator Privileges and without any UAC prompts. Now, if you want to run your PowerShell script on a regular schedule, you could …