Restart Multiple VM’s

October 12, 2017 JB 0

 Connecting to individual host Open VMware vSphere PowerCLI console #Connect to the host Connect-VIServer -Server hostname.example.com #Get all VMs from the host, filter those powered […]

New remote process

August 24, 2017 JB 0

Function New-RemoteProcess { #[CmdletBinding()] Param( [String]$ComputerName = $env.computername, [String]$Cmd = $(Throw “You must enter path to the command which will create the process”), [String]$ac, [String]$wait […]

No Image

How to display function definition / code in powershell

July 22, 2016 JB 0

If the function name contains a hyphen (eg. test-computername): ${function:test-Computername} Alternatively: (Get-Command test-Computername).Definition Or cat function:show-list To export function to text file cat function:test-computername >c:\temp\function