Introduction
In certain scenarios, limited users may need to restart services or create timestamp files, but they do not have the necessary admin privileges to perform these tasks. This article will provide a detailed guide on how to enable limited users to manually restart individual services and create timestamp files using admin privileges.
Manually Restarting Services
Background
Services are software programs that run in the background on a computer and provide functionality to other programs or system components. Restarting a service can help resolve issues or improve performance. However, restarting services typically requires admin privileges, which limited users do not have.
Solution
To enable limited users to manually restart individual services, follow these steps:
- Create a new batch file with the following content:
net stop
net start
Replace
- Save the batch file with a .bat extension.
- Right-click the batch file and select Properties.
- On the Security tab, click Edit and then click Add.
- Enter the name of the limited user account and click OK.
- Select the limited user account and check the Full control box.
- Click OK to save the changes.
Now, the limited user can double-click the batch file to restart the specified service.
Creating Timestamp Files
Background
Timestamp files are used to record the date and time of a specific event or action. Limited users may need to create timestamp files, but they do not have the necessary admin privileges to do so.
Solution
To enable limited users to create timestamp files, follow these steps:
- Create a new batch file with the following content:
echo %date% %time% > .txt
Replace
- Save the batch file with a .bat extension.
- Right-click the batch file and select Properties.
- On the Security tab, click Edit and then click Add.
- Enter the name of the limited user account and click OK.
- Select the limited user account and check the Full control box.
- Click OK to save the changes.
Now, the limited user can double-click the batch file to create the timestamp file with the current date and time.
This article provided a detailed guide on how to enable limited users to manually restart individual services and create timestamp files using admin privileges. By following the steps outlined in this article, limited users can perform these tasks without requiring full admin access to the system.
References
- Type: Books
- Title: Windows Server 2019 Administration Inside Out
- Author: Orin Thomas
- Publisher: Microsoft Press
- Type: Articles
- Title: How to Grant a Limited User Account Permission to Run a Scheduled Task
- Publication: TechRepublic
- URL: https://www.techrepublic.com/article/how-to-grant-a-limited-user-account-permission-to-run-a-scheduled-task/
- Type: Online Resources
- Title: How to Create a Batch File to Restart a Windows Service
- URL: https://www.lifewire.com/create-batch-file-to-restart-windows-service-2625963