Skip to main content

Forcing the users to shutdown when their time is up!


If you have many users who uses your PC or even your home office/small office PC, you find it difficult to control the time they use the PCs, sometimes you have a hard time in explaining why you need the Pc to be shutdown after sometimes or why you need that “some one” to leave you PC for a particular time span. So here comes a handy solution for that, which will even be very useful to system administrators of enterprise level networks.

In order to do this, you need a third party utility application, because Microsoft hasn’t included this feature in their OS versions.

First thing first,


UtilityBeyond Logic Shutdown for NT/2000/XP is a simple freeware utility that you can schedule to run, and it will do the job every time without modifying user rights. Download the utility, and extract it into a directory.


Then, follow these steps:
  • Go to Start Run, type cmd, and press [Enter].

  • Navigate to the directory where the extracted file resides.

  • To view the different command parameters available, type shutdown /?.

  • Create a batch fileUsing this utility, we’ll create a batch file to run that enforces our time restrictions. Follow these steps:
  1. Go to Start Run, type notepad, and press [Enter].

  2. Type shutdown -s -f -c -l 30 -m “Time restrictions are now forcing you to logoff; please save all your work.”

  3. Go to File Save, and name the file Shutpc.bat, and save it in the same directory as the utility.

With this command, we’re forcing the machine to shut down, forcing applications to terminate at shutdown, preventing the user from cancelling the command, displaying a message box to inform the user what’s happening, and giving the user 30 seconds to save all work.


Next, we’ll schedule the batch file to run using the built-in scheduler.

Follow these steps:

  1. Go to Start Control Panel, and double-click the Schedule Tasks applet.

  2. Double-click Add Scheduled Task, and click Next.

  3. Click Browse, navigate to the Shutpc.bat file you just created, and double-click the file.

  4. You can change the name of the task or leave it; then, select Daily, and click Next.

  5. Configure the time you want to force logoff, and click Next.

  6. Enter the password for the account that’s going to run this task (it should be an administrator account), and click Next.

  7. Select the Open Advanced Properties For This Task When I Click Finish check box, and click Finish.

  8. On the Settings tab, deselect the Power Management check box.

  9. Click OK, and you’re finished!

This Utility can be very handy depending your job role, but even for the home users, this can be a veryt usefull one! Click here to visit TehcRepublic for the complete article!

Comments

Popular posts from this blog

Google dialogflow - How to train a chatbot to answer questions related to your office and how to make it better than just a Q&A bot?

  First lets look how to do it the basic way. To train a conversational AI chatbot for answering office-related queries using Dialogflow, you will need to follow these steps: Create a new agent in Dialogflow. Collect a dataset of office-related queries and their corresponding answers. This dataset can be obtained through various means, such as scraping websites, conducting surveys, or manually creating a dataset. Create intents in Dialogflow for the queries in your dataset. An intent represents a user's intention, such as asking for office hours or requesting a vacation day. Add training phrases to each intent, which are examples of how a user might ask the question. Provide responses for each intent, which will be the chatbot's answer to the user's query. Test the chatbot using the "Try it now" feature in Dialogflow. Once the chatbot is working well, you can deploy it to a platform of your choice, such as a website or mobile app. However, if you follow the basic ...

What if we combine Scrum and DevOps?

To understand how an agile project management methodology like scrum and the DevOps mindset work together, let's look into an arbitrary software development team called the dream team. I will tell you how they use scrum with their DevOps practices like a small story so that it wouldn't feel like you are trying to learn these concepts by reading an article.  The dream team was tasked with building an online bookstore. Their vision was to create a platform where readers could easily browse and buy books. In the team, there was a Product Owner, a Scrum Master, a UI/UX designer, a couple of developers, and a database engineer. They started their journey with a meeting led by the Product Owner, who had a clear idea of the features needed for this platform. This list of features, known as the product backlog, included user authentication, a book database, a search function, a shopping cart, and a payment system. The Product Owner, the Scrum Master, and the rest of the team then held ...

“The crazy dual booting…! Aren’t there an easy way???” what about Virtual PC?

You have always wanted to learn many Operating systems, probably other than windows, but your concern is the pain taking dual booting process, where you install windows and Linux on the same machine or even multiple windows OS when it comes to learning and getting ready for certificate exams like MCSE and so forth. So here is the solution for that! I am talking about Virtual PC, referred as hardware virtual machine, a Software application that is built to work as a virtual PC so that you can install multiple operating systems on the same computer without formatting the hard disk and without making any damage to the actual system. That’s not all; you can even work on different Operating systems simultaneously. Sounds good? Let’s see what we have to do to make this as real as you might imagine. Getting handy with a Virtual PC Software application. First thing you need to do is getting a virtual PC software and there are two good products out there that I recommend, one is VMware and anot...