Login to Account Create an Account
Access is denied.(5) Error - Soloution needed.
Posted 01 April 2010 - 08:54 PM
I've recently made the switch to Windows 7 from XP and I'm having trouble shutting down a remote computer via the command-line using the Shutdown command.
Everytime I use the shutdown command, I get a "Access is denied.(5)" error. I've been searching Google for the better part of 10 Days and have tried multiple soloutions, None of them have worked so far.
Here's the setup: Two computers both running Windows 7 Ultimate networked together over a Wireless Network. I can successfully ping both computers over the network and I can access all my shares on both Computers. Both computers have the same named user account and password, And both accounts are administrators.
- Using psshutdown I get an Access is denied error (Even if i use the -u and -p switches to supply user account info).
- Added the User accounts to Local Security Policy > Local Policies > User Rights Assignments > Force shutdown from a remote system on both computers.
- Made sure that Local Security Policy > Local Policies > Security Options > Network access: Sharing and security model for local accounts is set to Classic.
- Disabled the Windows Firewall on both computers.
+ I do not have any Anti-virus or 3rd party Firewalls on either system.
I really need this feature which worked fine in XP. All the answers I've come across seem to point to a privilege problem somewhere, I just can't figure out where. Please, Any input would be appreciated at this stage - Sorry for the long post and thanks for reading.
Posted 03 April 2010 - 04:48 PM
Posted 05 April 2010 - 12:51 PM
I'm not sure what you mean when you say "Two options for RDP". RDP actually works. I can connect to the remote computer via RDP, Pull up an elevated command prompt and execute the shutdown command from there. That works.
What I can't do is pull up an elevated command prompt and simply execute the same command: shutdown -m \\Computername -s -f . Where would I find the option to select secure mode vs classic mode? I'm also not sure how to add a user from one computer to the Administrator group of another. Any tips? Thanks again for responding.
Posted 06 April 2010 - 11:01 AM
Do you have file & printer sharing enabled on the target machine?
What I can't do is pull up an elevated command prompt and simply execute the same command: shutdown -m \\Computername -s -f .
(In the following commands, replace "remote" with the network name of the remote client, and "user1" / "user1pw" with the name and password of an Administrator on the remote machine.)
If you run the following in a command prompt, what does it report?
net view \\remote
Have you tried psexec to run shutdown on the remote machine?
psexec \\remote -s -u remote\user1 -p user1pw shutdown -s -t 0
You can't - local user accounts mean nothing outside of the machine on which they are defined, it is an isolated security realm.
I'm also not sure how to add a user from one computer to the Administrator group of another.
(The old-school method of creating the a user with the same name and password on 2 machines appeared to work as the security realm is first tried as the calling client, which fails, then as the remote client, which works - but the local user account is not being used for the remote authentication.)
My TechNet Blog
I have CDO. It's like OCD except the letters are in alphabetical order, as they should be.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users