I have found lots of fancy ways, but here is my one(two) liner

(get-service -ComputerName server01 -Name wuauserv).stop

(get-service -ComputerName server01 -Name wuauserv).start


Leave Your Comment

Your email address will not be published. Required fields are marked *

two + 20 =