Category Archives: Powershell

Powershell: Convert Hex to Int type

Hi,

short post today. Topic: convert a hex string to an integer type.
Continue reading Powershell: Convert Hex to Int type

Advertisment to support michlstechblog.info

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

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