About 49,900 results
Open links in new tab
  1. How to enable execution of PowerShell scripts? - Super User

    When I try to execute my PowerShell script I get this error: File C:\\Common\\Scripts\\hello.ps1 cannot be loaded because the execution of scripts is disabled on this system. Please see "get …

  2. Run PowerShell script as a different user and elevated

    Jan 21, 2021 · Then execute the script elevated from that local copy instead. Execute the Start-Process Powershell a little differently than you were executing it for it to take the action of the …

  3. how to run a powershell script as administrator - Super User

    Feb 12, 2010 · Create a shortcut to your Powershell script on your desktop; Right-click the shortcut and click Properties; Click the Shortcut tab; In the Target: section, make sure you …

  4. How to Execute Powershell Script AS Powershell 7 from Command …

    May 28, 2020 · When I run that same .PS1 script from command prompt using powershell testscript_writefile.ps1, I get: Name Value ---- ----- PSVersion 5.1.14393.3471 PSEdition …

  5. How to run a PowerShell command silently? - Super User

    Jun 14, 2018 · It runs successfully, but pops up the powershell window, no matter what. The other answer to run the utility "Runhidden.exe" in front of the command to run the script simply could …

  6. Run Powershell script when you open Powershell - Super User

    Mar 8, 2015 · This step would normally have a shortcut to the certificate's thumbprint since you just created it. But for completeness we will assume you are returning here in the future to sign …

  7. How can I run psd1 and psm1 files in powershell? - Super User

    Aug 28, 2020 · Local scripts or anything you run in your current session will work the way you are doing it. So, this not really a workaround, for PS, it's an 'I want to run my PowerShell stuff …

  8. windows - run powershell command from cmd - Super User

    May 24, 2016 · I placed the following commands into a batch file to reset Edge (which has been giving some problems from time to time). The batch file was then run at Administrator level. …

  9. powershell - How to execute a .ps1 from another .ps1 file

    Feb 24, 2015 · I have two PowerShell files. a.ps1 and b.ps1. At a center point in a.ps1 I want to start executing code in b.ps1 and terminate a.ps1 script. How to do it considering that both …

  10. Run Python scripts in PowerShell directly - Super User

    If you installed Python correctly there is always a chance that just typing the name of the script will run it with python. E.g. >myfile.py I always find that adding C:\Python27 to the %PATH% …

Refresh