Category Archives: Powershell

Windows: Get Disk Smartparameter and Health status

Hi,

in newer Versions of the Windows operating system you to not need additional tools to get the most important Harddisk smart parameters.
Continue reading Windows: Get Disk Smartparameter and Health status

Advertisment to support michlstechblog.info

PowerCli: Invoke-VMScript fails with “An error occurred while sending the request”

Hi,

you want to call some commands in a VM and you got the following error “An error occurred while sending the request”
Continue reading PowerCli: Invoke-VMScript fails with “An error occurred while sending the request”

VMware: Set MAC Address of a kernel interface with PowerCli

Hi,

the New-VMHostNetworkAdapter offers the ability to set the MAC address while adding a new kernel interface. But this has a limitation. It always only a MAC within a range 00:50:56:00:00:00 – 00:50:56:3F:FF:FF.

If you try it even though you will get an error:

New-VMHostNetworkAdapter The MAC address is invalid or is not in the valid range 00:50:56:00:00:00 - 00:50:56:3F:FF:FF.

Continue reading VMware: Set MAC Address of a kernel interface with PowerCli

Powershell: Import a module from a file

Hi,

you just want to test a module and don’t want to install or copy it to the Powershell Modules directories? It’s possible 🙂

For example the SpeculationControl module to query the speculation control (Spectre/Meltdown vulnerability) settings of your system.
Continue reading Powershell: Import a module from a file

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.

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