I’m looking to remotely power down some servers. It would appear the cmdlet to use is “stop-computer”. However, I need this to gracefully shutdown the server, but not allow for it to be stopped by anything. For example, a logged on user.
I think using the “force” argument would work for handling logged on users. My concern is that one of the servers is a SQL server and using the “force” argument wouldn’t allow for SQL to shutdown safely, does anyone know the affect this would have on SQL, or have any better suggestions?
Any information is welcome.