|
Answer» I tried to use the shutdown.exe command on a remote PC.
I am very familiar with how it works and the options that it comes with.
shutdown.exe -s -t 00 -m //computername -c "Maintance" -d P:2:17
However, it is SAYING "Access Denied" when i try to run this command on a remote PC. Any advice?Of course You have to be administrator on the remote computer. So... If that computer it is not in a domain, you have to use on your computer an account with the same name and password as one administrator account on the remote computer. You may also want to use the "-f" option. Where did you find info for "-d" option?Was doing some research on it, and FOUND quite a bit on the -d option.
Code: [Select]
/d u:xx:yy : List a USER reason code for the shutdown. /d P:xx:yy : List a PLANNED reason code for the shutdown. xx Specifies the major reason code (0-255) yy Specifies the minor reason code (0-65536)
Typical Reason codes: E = Expected U = Unexpected P = planned (C = customer defined)
Type Major Minor Title U 0 0 Other (Unplanned) E 0 0 Other (Unplanned) E P 0 0 Other (Planned) U 0 5 Other Failure: System Unresponsive E 1 1 Hardware: Maintenance (Unplanned) E P 1 1 Hardware: Maintenance (Planned) E 1 2 Hardware: Installation (Unplanned) E P 1 2 Hardware: Installation (Planned) P 2 3 Operating System: Upgrade (Planned) E 2 4 Operating System: Reconfiguration (Unplanned) E P 2 4 Operating System: Reconfiguration (Planned) P 2 16 Operating System: Service pack (Planned) 2 17 Operating System: Hot fix (Unplanned) P 2 17 Operating System: Hot fix (Planned) 2 18 Operating System: Security fix (Unplanned) P 2 18 Operating System: Security fix (Planned) E 4 1 Application: Maintenance (Unplanned) E P 4 1 Application: Maintenance (Planned) E P 4 2 Application: Installation (Planned) E 4 5 Application: Unresponsive E 4 6 Application: Unstable U 5 15 System Failure: Stop error E 5 19 Security issue U 5 19 Security issue E P 5 19 Security issue E 5 20 Loss of network connectivity (Unplanned) U 6 11 Power Failure: Cord Unplugged U 6 12 Power Failure: Environment P 7 0 Legacy API shutdown
e.g. SHUTDOWN /r /d P:2:17
Code: [Select]Anyway, the QUESTION still remains, is there a WAY that I can Access a Remote PC that has a different Administrator's Login than mine and have full access.
I am admin on all my systems, but student have there own Admin Account under weird names, so it is quite hard to make over 60+ accounts just for the shutdown.exe to work.
Advice?If you don't want to add all those computer to a domain, you could ask your students to add your account to their "Local administrators" group. Your account (what they should enter) will be: your_computer_name\administrator
(or another account on your machine, for which you know the password and which you will use to control their machines)
So, they have to (example for Windows XP): right-click on "My Computer", then choose "Manage", "Local users and groups", "Groups", double click on "Administrators" and then choose "Add".
The problem is not a simple one, as they may (MUST) have a firewall and you should play with that also.
|