Restart Multiple VM’s
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 […]
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 […]
Towards a better console – PSReadLine for PowerShell command line editing Sometimes text mode is where it’s at. I’ve long blogged about tools and […]
Powershell script to email ###########Define Variables######## $date = “get-date” $fromaddress = “[email protected]” $toaddress = “[email protected]” $Subject = “Test $(get-date)” $body = Get-Content C:\temp\Test.htm #$attachment = […]
I often have to copy files and folders from one server to another for various reasons. Copying stuff manually is a bore but if you […]
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 […]
I tried to make this script as simple as possible for day-to-day use. This script takes three parameters: ObjectType: Type of object that you want […]
PowerCLI 6.5.1 has been released and in this release VMware have made some big changes to the way you install and keep up to date […]
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
POWERSHELL SCRIPT COPY fILES USING ROBOCOPYPOWERSHELL SCRIPT COPY fILES USING ROBOCOPY Please find powershell code which will assist you in copying data from source location to destination […]
Copyright © 2026 | WordPress Theme by MH Themes