I'm working on Windows Server 2008. Is there a way to tell (via the command line) if a server is in the act of shutting down? I searched for this but have been unable to find a way.
How to tell if a Windows server is in the act of shutting down
296 Views Asked by twasbrillig At
1
There are 1 best solutions below
Related Questions in WINDOWS-SERVER-2008
- How to sort text qualified CSV file that doesn't fit in memory?
- Unauthorized Access Exception on IIS7 virtual directory with proper permissions
- Error while deploying MVC 5 application on Windows Server 2008
- Running ASP site with SQL Server 6.5 on Windows Server 2008 R2
- php-cgi.exe memory usage reaches server maximum despite almost zero traffic
- Shared folder access with login & password impersonation - W2K8 IIS7
- Windows user rights administrator group
- Publishing to Azure Virtual Machine with Web Deploy
- Is there a way to make the security settings in PDFSharp work in an environment that is restricting to FIPS compliant algorithms?
- ADO.Net change "Persist Security Info" default back to True
- Locale independent Windows Performance Counters on multiple server versions
- .net frame work 3.5 not showing in feature list window server 2008 sp2.
- How to pass a parameter to PowerShell Get-NetTCPConnection cmdlet?
- scripting control userpassword2
- SQL Server error: the paging file is too small for this operation
Related Questions in SHUTDOWN
- Confusion about CTRL_SHUTDOWN_EVENT handling in DLLs and WM_QUERYENDSESSION
- Processing - Shutdown a computer
- Unstable instances and unexpected instance shutdown with GAE / java
- How to hide Shut Down and Log Off through commandline(script) without reboot
- RESTEasy JAX-RS application not calling @PreDestroy
- Linux Shutdown and Java Shutdown Hook
- InitiateShutdown, can't understand a value passed to the function
- Batch listen for ping to shutdown
- How to run applescript on shutdown?
- C++: Remotely hibernate a PC
- Scheduler with name "DefaultQuartzScheduler" already exists and scheduler cannot be started after shutdown
- Windows server power off button and blocked sessions
- How to trigger the java shutdown hook for a keep running process?
- How to tell if a Windows server is in the act of shutting down
- do some code before shutdown windows
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Your best bet would be to query the system event log. If someone runs the shutdown command, an event gets logged. I am sure if you have something else initiating the shutdown that there will be event logs indicating that it is going down.
Running this on my machine lists several shutdown events from different processes.
This would be a good starting point.
A trick I use is to just run
Shutdown /aand it will tell me if it stopped a shutdown.