Question
Shutdown Script via SSH
Hello everyone,
i am writing a Powershellscript which shuts down some machines. One of these is a Fortigate.
So I establish a new SSH-Session and invoke the "execute Shutdown"-Command. But how can I confirm it with "y"?
Is there any "force"-command or something to work around the Shutdown-Confirmation?
When i do:
Invoke-SSHCommand -SessionId 0 -Command "execute shutdown"
Invoke-SSHCommand -SessionId 0 -Command "y"
it doesn't work.
Thanks a lot,
DoubleD
