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
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