Friday 6 November 2015

How to shutdown Multilple computers using Powershell

$computers = Get-Content "C:\computers.txt"

$offline =@()

foreach ($computer in $computers)



{

if (Test-Connection $computer -Count 3 -ea 0) {

Stop-Computer -ComputerName $computers



}

else {

$offline+= "$computer not reachable"



}}

Powershell function to get theremote server IP details,Subnetmask,Gateway,DHCP Enabled status,DNS Servers,Wins and Macaddress

#Powershell function to get theremote server IP details,Subnetmask,Gateway,DHCP Enabled status,DNS Servers,Wins and Macaddress # use...