What I really need is a way to QUERY the state modified by the 'shutdown' command.Is this possible? I'll be happy with really any solution that doesn't involve me having an application running permanently on the system to catch the shutdown events (which I don't think even get sent around until the shutdown is actually triggered). Unfortunately I haven't managed to find a way to detect this apart from attempting to schedule another shutdown, which results in:A system shutdown has already been scheduled.(1190)While I could theoretically use this I don't think it would be good practice to scare logged in users every time I needed to check for a scheduled reboot. Via the 'shutdown' command) in order to avoid reboots mid patch if possible. I'd also like to extend the script to abort if a reboot is scheduled (E.g. I have a cmd script that will execute a set of patches, and it's designed to abort if a reboot is required to avoid patching issues. I am getting following error message 'Error code 1115: ERRORSHUTDOWNINPROGRESS - A system shutdown is in progress.' Spark: Elon Musk's SpaceX to blanket Earth with internet satellites Spiceworks Originals Today's top headlines, for infections?Click to expand.Ī System Shutdown Is In Progress.(1115) California
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |