How to set time to multiple servers Powershell

How to set time to multiple servers Powershell

How we can set a time of all remote server with Powershell command

we can use this command when we can set same time on multiple servers behind Load balancer

How to set time to multiple servers Powershell

Note: we use this script in domain environment with same credential of all server

Script:-

$DateTime = set-date “MM/DD/YYYY HH:MM:SS PM”
Invoke-Command -ComputerName WEBSERVER1,WEBSERVER2,WEBSERVER3,WEBSERVER4 -ScriptBlock {set-date $args[0]} -ArgumentList $DateTime

 

 

Related Post :

Windows 2016 Server Core Commands | HTML POINT

PowerShell script to remote multiple remote servers

 

 

Related Articles

Leave a Reply

Be the First to Comment!

Notify of
avatar
downloadfilmterbaru.xyz nomortogel.xyz malayporntube.xyz