The task is not getting created. The user has the rights to shutdown the PC. Can run the shutdown command successfully if you run it manually as a domain admin?
I also have a few labs running Windows 7. I have created a seperate GPO for those labs and they work great. It sounds like there are two issues here - one creating the scheduled task and the other getting shutdown to work as a regular user.
For the task creation, does the XP machine have the required prerequisites to support group policy preferences? As far as shutdown not working, I've never seen that, can you create another test user and try?
My issue is that the all the labs, 12 total, are in high schools and middle schools. I can't add the username they use to the local administrators group. When creating this task in Group Policy, I'm telling the task to run as a Domain Admin user, but am still unable to get it to run.
Its just when I add the -s that I run into problems. Office Office Exchange Server. Not an IT pro? SQL Server. If the command requires a path as an argument, use the absolute path name the entire path beginning with the drive letter.
If the command is not an executable. If you omit the id parameter, all scheduled tasks on the computer are canceled. If you omit this parameter, you are prompted to confirm the cancellation of a task. When you use the at command, the scheduled task is run by using the credentials of the system account. At the command prompt, type the net start command, and then press ENTER to display a list of currently running services:. At the command prompt, type the following line use the parameters that are appropriate to your situation , and then press ENTER:.
To back up the Products server at P. To schedule a net share command to run on the Sales server at A. At the command prompt, type the net start command, and then press ENTER to display a list of currently running services. This behavior can occur if you modified the tasks in the Scheduled Tasks folder after you used the at command to create the task. To help you automate this type of restart operation, Microsoft Windows XP comes with a command-line utility called Shutdown.
To make this happen automatically, you can configure it to run at a specified time with the Scheduled Tasks tool. Here's how:. When the Shutdown utility runs, you'll momentarily see a small dialog box on your screen before the system restarts.
Automatically sign up today! Greg Shultz is a freelance Technical Writer. Learn more. Executing a batch script on Windows shutdown Ask Question. Asked 9 years, 4 months ago. Active 1 year, 2 months ago. Viewed k times. Solutions that do not require a third-party utility would be preferable.
Improve this question. Did you manage to prevent the shutdown? If yes, how did you do it? Thanks — Alex. If you want to prevent users from shutting down the computer, you can disable access to it in the start menu through Group Policy. This will hide those options from the start menu. OK, how do you debug the scripts then? Even just dumping the output to a file would help.
0コメント