Runing powershell script from ISE after updating to Windows 24H2

Windows 11

Active Members
Joined
Dec 10, 2024
Messages
6,746
After updating Windows to 24H2 PowerShell scritps can not be executed from PowerShell ISE. The following error message is issued: Cannot dot-source this command because it was defined in a different language mode. To invoke this command without importing its contents, omit the '.' operator.The same script has been working in a Windows 11 version before update to 24H2.Additional information.The same script works from ISE, if all the code is selected in the script pane and execution started with "Run Selection (F8)". Error message is issued only when script is started with "Run Script (F5)

Continue reading...
 
Back
Top