Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6224099
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T08:36:37+00:00 2026-05-24T08:36:37+00:00

I agreed, we can shut down cleint machines programatically. but suppose my machine is

  • 0

I agreed, we can shut down cleint machines programatically. but suppose my machine is configured with Windows server 2008 r2. to shut down any server machine, is not easy as compare to normal client operating systems machine.
since we need to stop services,stop running processes and at the end we need to give confirmation to the os that this shutdown process is “planned” for shut down event tracker. so can we do that from c# console application?. What programe i have to do for this?

Edited:
I am thankfull for all answers. But one thing i missed while writing the question, this shutdown must perform only when machine is unattended for 120 mins. so is there any another process where i can check the attendance-unattendace of machine ? so that i would call shutdown process.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T08:36:38+00:00Added an answer on May 24, 2026 at 8:36 am

    You can do so using the shutdown.exe command of Windows:

    Process.Start("shutdown.exe", "/l /t:0");
    

    If you simply want to get rid of the dialog for entering a shutdown reason you can configure your Registry accordingly:

    [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\Reliability]
    "ShutdownReasonOn"=dword:00000000
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This strikes me as likely to have an agreed best-practice answer, but I can't
AFAIK, It's agreed that accessing virtual members from constructor is a dangerous practice. Can
A colleague of mine agreed to using Subversion (SVN) for our little project, but
My former roommate agreed to host my web site for a while on his
Is there some agreed upon algorithm of what is supposed to happen when, in
I have created a schema as an agreed upon interface between our company and
When I'm online it seems that everyone has agreed that using the exclusive locking
In SQL Server Management Studio, I have linked a SQL Server, sql02 to my
I'm completely ignorant of SQL/databases, but I was chatting with a friend who does
I'm currently in the process of investigating TFS 2010, as it's been agreed that

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.