Month: March 2015

Supply , installation and support

VMWare 6 / Vsphere

http://featurewalkthrough.vmware.com/#!/vsphere-6-0   The above is a really useful feature and guide from VMWare

Powershell : Find all active users who havent logged in

Request from a customer. Find me all active ( IE not disabled ) users in a particular OU who have never logged in. “I have a powershell for that” appears to be the default answer for most queries these days …

Powershell : remote machines static dns to DHCP

This will read an input file , and using the WMI object change any statically assigned DNS to DHCP.   # grabs the ListofMachines from the CSV $ListofMachines=Get-Content “c:tempmachines.csv” # loop starts here foreach ($machine in $ListofMachines) { #Performs a release ( if needed ! use with care remotely ! ) #Get-WmiObject -Class Win32_NetworkAdapterConfiguration -ComputerName…
Read more

Powershell : renew multiple machines DHCP scopes

# grabs the ListofMachines from the CSV $ListofMachines=Get-Content “c:tempmachines.csv” # loop starts here foreach ($machine in $ListofMachines) { #Performs a release ( if needed ! use with care remotely ! ) #Get-WmiObject -Class Win32_NetworkAdapterConfiguration -ComputerName $machine | Where { $_.IpEnabled -eq $true -and $_.DhcpEnabled -eq $true} | ForEach-Object -Process {$_.ReleaseDHCPLease()} # query the $machine that…
Read more

Powershell : renew remote IP address

We wrote this at GiraffeIT.com. If you know the remote IP or DNS name of a machine it will help you renew a DHCP lease and flush the DNS. Very useful if you have a remote machine with a scope change and its not being reflected.   write-host “—————————–” write-host “DHCP lease renewal + flushDNS”…
Read more