Shutdown not a PowerShell team. This is the same shutdown.exe that also works in CMD.
Interestingly, the -y command is not mentioned in the documentation . As Mark Wargg found out, he used the answer βyesβ to remote shutdown. Thus, if no other parameters are specified, the default action is taken (user logoff).
Another question: why did you try to use random parameters? Follow the document and you are unlikely to encounter any unexpected behavior.
source share