Category Archives: Scripting & programming

Somthing about Powershell, VB Script, C#, VB.NET

VMware PowerCli: Eject CD/DVD Media from VMs

Hi,

when you have to eject or unmount DVD iso from your VMs, may be the iso files resists on datastore you want to remove, these one liner should help you.
Continue reading VMware PowerCli: Eject CD/DVD Media from VMs

Advertisment to support michlstechblog.info

Powershell: Transfer Modules to an offline PC

Hi,

in these days powershell modules are often installed from a (NuGet) Repository and not by a Setup program.

In companies may exists computers which does not have an active internet connection.

But how to install the modules on these devices?
Continue reading Powershell: Transfer Modules to an offline PC

VMware: Installing PowerCli

Hi,

VMware does not longer provide Setups for installing PowerCli.

If you want to use the latest version of the PowerCli you have to install the modules from a NuGet Repository. This requires at least Version 5 of the powershell.
Continue reading VMware: Installing PowerCli

Creating and applying a patch with diff and patch

Hi,

this post describes to save and apply changes to an source file.
Continue reading Creating and applying a patch with diff and patch

Powershell: Wrong exit code

Hi,

you start a powershell script from cmd and want to return an exit not equal to 0 but %ERRORLEVEL% is set to 0.
Continue reading Powershell: Wrong exit code