Remove byte-order mark from the beginning of the file
When a file is saved with BOM (byte-order mark) on a Mac or Linux machine Windows PowerShell cannot execute the script. Unfortunately the “cat” command by default does not show the byte-order mark at the beginning of the file. As Oriol stated…
Invoke-WebRequest : The request was aborted: Could not create SSL/TLS secure channel.
Older PowerShell versions do not use TLS1.2 as the default version during the SSL handshake. When the API requires TLS1.2 the error message appears: Invoke-WebRequest : The request was aborted: Could not create SSL/TLS secure channel. To…
Set directory access in Windows
When you use SetAccessRule() to set access rights on a Windows directory, the user who will get the permission has to be a member of the Administrators group. If the user is not a member of the Administrators group PowerShell shows the error message…
Determine the Windows PowerShell version
To reliably display the version of the Windows PowerShell engine Open a PowerShell command window, Execute the command, $PSVersionTable.PSVersion PS C:\WINDOWS\system32> $PSVersionTable.PSVersion Major Minor Build Revision —– …
Enable PowerShell execution in Windows
The default settings of Windows disable the PowerShell script execution. This protects your computer in case a malicious PowerShell script would try to make changes on your machine. The same settings prevent you from executing your own automation scripts…