You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The other option is to run the script within the PowerShell console itself, rather than right clicking on the script and selecting Run with PowerShell. For that you will need a basic understanding of how to run scripts at the command line. In short:
1. Run Powershell as Administrator
2. Change to the directory holding the script
3. Type .\scriptname.ps1
where scriptname is the name of the script you want to run. If you get an error, you may need to change your execution policy to RemoteSigned by using this command:
Set-ExecutionPolicy RemoteSigned
Hope this helps someone.
The text was updated successfully, but these errors were encountered:
Leaving this here for those who are using this script and have moved to Windows 11 but are not PowerShell experts.
Per this article (https://support.microsoft.com/en-us/windows/command-prompt-and-windows-powershell-for-windows-11-6453ce98-da91-476f-8651-5c14d5777c20#) "In Windows 11 22H2, the default app used to host console windows has been changed to Windows Terminal. ...You can opt out of the modern Windows Terminal experience in a few ways." It goes on to explain the options, including:
Select Start > Settings > Privacy & security > For developers
In Terminal, select Windows Console Host.
The other option is to run the script within the PowerShell console itself, rather than right clicking on the script and selecting Run with PowerShell. For that you will need a basic understanding of how to run scripts at the command line. In short:
1. Run Powershell as Administrator
2. Change to the directory holding the script
3. Type .\scriptname.ps1
where scriptname is the name of the script you want to run. If you get an error, you may need to change your execution policy to RemoteSigned by using this command:
Set-ExecutionPolicy RemoteSigned
Hope this helps someone.
The text was updated successfully, but these errors were encountered: