Group Policy shutdown script preventing PC from shutting down RRS feed

  • Question

  • On my machine, I have a script which shuts a Mac down via ssh. It's been tested and works ok. It doesn't require any input.

    This script is used on shutdown and is set in local GPO.

    However, when ever this is set, the PC does not shutdown and simply shows the shutting down message with the spinning dots and no matter how long you leave it, it doesn't shutdown. Also, the Mac does not turn off either.

    The command in the script is "plink user@deviceip -pw password "shutdown -h now""

    I have removed user, ip and password from the example and may be incorrect as i'm typing it from memory, but that is the gist of the command.

    plink is located in the system directory, so it can run by just typing the command.

    I'm not sure why this may be happening. The command use to work without any issues a year ago, but i don't know what build.

    Not sure which build we're currently running on the machine.

    Hopefully someone will be able to help out. Looking forward to your replies.

    Thursday, May 9, 2019 4:57 PM