Hi folks,
I'm trying to write a script (still not sure it is the best option though)
to allow our end users to restart their PCs each night. Here is our scenario:
-users do not have access to the command prompt (blocked by GP)
-users do not have access to shutdown or restart the computers (blocked by GP)
-users do not have admin rights
-we want user's to reboot their systems every night without having the
option to shut the machine off
Now here are the two options I think we have, I would prefer the first but
I'm working on the second at the moment:
1) Use group policy to bock access to Shutdown but allow access to Restart.
Alternatively we could do this by a reg hack but I don't have any clue how to
do it either way.
2) Create a script that we can place on each user's Start Menu to reboot the
computer. This script would need to run with elevated privileges (we have an
account we can use which has access to reboot the workstations).
I'm really new to scripting so I'm kind of fumbling my way along here but I
have managed to write a script (with help from a couple sites) that reboots a
test workstation using alternate credentials but the command prompt is not
blocked on that system. When I do block it, the script doesn't work - says
action blocked by policy.
Does anyone have any ideas on how I can go about doing this?
Now my second question on this script. As I need to embed the username and
password in the file, is there any way to prevent users from being able to
view this account information (we have a couple savvy folks).
And my last question (I promise) - when I double-click on the script while
logged in as a regular user (not power user) it doesn't work but if I launch
it from a command prompt it does. When I double click on it as administrator
it works with no problems. How do I get around this?
Any and all help is greatly appreciated!!!!
Thanks in advance,
Nancy