Category Archives: Powershell

vSphere: Get vCenter events by Powercli

Hi,

it is really painful to search for events in vSphere’s vCenter.
Continue reading vSphere: Get vCenter events by Powercli

vSphere: Get performance data of a VM by PowerCli

Hi,

with powercli performance data could be exported for automatically created reports.
Continue reading vSphere: Get performance data of a VM by PowerCli

Windows: Set or edit environment variable from powershell

Hi,

powershell can set,edit or delete environment variables as well as cmd.exe command line interpreter.
Continue reading Windows: Set or edit environment variable from powershell

Powershell: Convert a string into a securestring and back to plaintext

Hi,

.Net and therefore the powershell has the ability to define a secure string. This means that the string is immediately deleted from memory if it is no longer needed.
Continue reading Powershell: Convert a string into a securestring and back to plaintext

Powershell: Generate a GUID

Hi,

to create a GUID in powershell for the use in your own scripts call the static function NewGuid() from the system.Guid class.

PS D:\> [system.Guid]::NewGuid()
f3f8591a-c1d6-4d82-bec2-d3dac2c1fee5

Michael