Powershell: A Local script is not executed with error not digitally signed

Hi,

Issue: You downloaded or copied a script from a remote location and Powershell won’t execute such a file although you have set the execution policy to RemoteSigned.

An Error like this occurs:

D:\Temp\myScript.ps1 : File D:\Temp\myScript.ps1 cannot
be loaded. The file D:\Temp\myScript.ps1 is not digitally signed. The script
will not execute on the system.

More »

Advertisment to support michlstechblog.info

Powershell: Escape a String for regular expression.

Hi,

when a pattern for a regular expression contains reserved characters it can be difficult to quote all these signs correctly.

More »

Windows 10: Determine history of feature upgrades

Hi,

this powershell script determines the previous Windows 10 ReleaseIDs and install date of all feature updates applied to a system.
More »

Powershell: Convert UNIX Timestamp to DateTime

Hi,

simple one liner to convert an UNIX Timnestap to DataTime object.
More »

Powershell: Execute a process and capture STDOUT and STDERR

Hi,

if have to execute a process or script from powershell and you have to capture the output you can use the System.Diagnostics.Process class.

I’ve written a simple function for this case 🙂

More »

Original Theme by Schiy · Powered by WordPress