Windows 11 Posted January 24 Posted January 24 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)View the full article Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.