Add Notes To Multiple VM’s
Note: This script will overwrite the existing Notes, so use it at your own risk! My colleague asked me to add some notes to the […]
Note: This script will overwrite the existing Notes, so use it at your own risk! My colleague asked me to add some notes to the […]
cls 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, […]
Get-Content C:\temp\Computers.txt| %{Move-ADObject -Identity “CN=$_,OU=WIN10,OU=ABC,OU=Computers,DC=CHILD,DC=Domain,DC=Vmwareenterprise,DC=com” -TargetPath “OU=Prod,OU=WIN10,OU=ABC,OU=Computers,DC=dev,DC=DIR,DC=vmwareenterprise,DC=com”} -Verbose
Description The Get-ADOrganizationalUnit cmdlet gets an organizational unit (OU) object or performs a search to get multiple OUs. This cmdlet gets a default set of OU object […]
Just give input as first name and last name in inputfile Jeevan bobba Abcdef ghijklmnopqrst It will create username and by adding v- at […]
Computer uptime is an important statistic in systems management. Here are several of the ways we can determine system uptime for a computer (note that […]
Delete Files from Remote computers The following PowerShell script recipe will help you delete a remote file based on a list of computers stored in a text file. New PowerShell function […]
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 = […]