Question

"Access is denied." when using shutdown.exe on XP.

Asked by: asssa

Hello Experts,

I copied shutdown.exe from XP machine (\\salsa) to my 2K machine.
"SHUTDOWN.EXE -r -f -m \\salsa" executed from my machine returns "Access is denied.".
I am logged in as administrator on both machines and can access all drives by remote.
Any thoughts ?

This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.

Subscribe now for full access to Experts Exchange and get

Instant Access to this Solution

  • Plus...
  • 30 Day FREE access, no risk, no obligation
  • Collaborate with the world's top tech experts
  • Unlimited access to our exclusive solution database
  • Never be left without tech help again

Subscribe Now

Asked On
2003-10-03 at 17:00:32ID20756919
Tags

access

,

denied

Topic

Windows XP Operating System

Participating Experts
4
Points
0
Comments
33

Trusted by hundreds of thousands everyday for fast, accurate and reliable tech support.

  • "The time we save is the biggest benefit of Experts Exchange to Warner Bros. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange." Mike Kapnisakis, Warner Bros.
  • "Our team likes having a resource that is more secure than just using Google and most experts using this service really know their stuff. It's nice to look here first versus using Google." Dayna Sellner, Lockheed Martin
  • "Anytime that I've been stumped with a problem, 9 out of 10 times Experts Exchange has either the accepted solution or an open discussion of the potential solution to the problem." Kenny Red, eBay Inc.

See what Experts Exchange can do for you.

Got a question?

We've got the answer.

Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.

Screenshot of Experts Exchange Knowledgebase

Need individual assistance?

Our experts are ready to help.

If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.

Screenshot of Experts Exchange Knowledgebase

Want to learn from the best?

Read articles from industry experts.

Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.

Screenshot of an Article

Working on a long term project?

Store your work and research.

Save solutions to your questions, answers you’ve discovered through searching plus helpful articles in your personal knowledgebase for easy future access.

Screenshot of Experts Exchange Knowledgebase

Access the answers to your technology questions today.

Subscribe Now

30-day free trial. Register in 60 seconds.

What Makes Experts Exchange Unique?

Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Trusted by the world's most respected brands.

image of each brand's logo

Faithfully serving IT professionals since 1996.

Experts Exchange Logo

Try it out and discover for yourself.

Subscribe Now

30-day free trial. Register in 60 seconds.

Related Solutions

  1. shutdown.exe does not work
    When I use the shutdown.exe utility to shutdown an NT4 SP4 server remotely, I get the message "Initiate System Shutdown Failed" I have this problem on three compaq servers. Our other servers do accept the shutdown ! The syntax I use is shutdown \\<ipaddress>...
  2. Looking for a shutdown.exe (from the Windows 2000…
    Shutdown.exe is a great program except in the case where it tries to shutdown a computer that is not available. If running shutdown.exe from a batch file with multiple shutdowns, it will "hang" on any system not available. I'll offer 200 pts to a reasonable [unco...
  3. Problems with Shutdown.exe
    Whenever I try to remotely shutdown another computer on my network that is running Windows XP Pro, it says that "The network path was not found." And when I try to shutdown another computer on my network that is running Windows 2000 Pro, it just says "Access i...
  4. Remote shutdown using runas and shutdown.exe
    Hi currently i have a UPS that only support 1 computer. However the UPS software on this computer can perform to run script before shutting down when power failure. The first computer is a domain controller and the remote computer is a member server of the same domain. I tr...
  5. shutdown.exe and W2000 Pro
    Hi, I attempted to use shutdown.exe from the W2000 Resource kit to restart a W2000 Pro workstation. I was logged in as an Administrator. The following message appeared: NTVDM CPU has encountered an illegal instruction. No luck so far finding a solution. My purpose is to use...
  6. When domain account users try to run shutdown.exe, th…
    I am using Windows XP Professional SP 2 on a workstation IS part of a domain. I would like to allow non-administrator domain accounts to restart the machine via the shutdown.exe command. However, when domain account users run the command in a command prompt, they get the fo...

Free Tech Articles

  1. WARNING: 5 Reasons why you should NEVER fix a computer for free.
    It is in our nature to love the puzzle. We are obsessed. The lot of us. We love puzzles. We love the challenge. We thrive on finding the answer. We hate disarray. It bothers us deep in our soul. W...
  2. SCCM OSD Basic troubleshooting
    SCCM 2007 OSD is a fantastic way to deploy operating systems, however, like most things SCCM issues can sometimes be difficult to resolve due to the sheer volume of logs to sift through and the dispe...
  3. Migrate Small Business Server 2003 to Exchange 2010 and Windows 2008 R2
    This guide is intended to provide step by step instructions on how to migrate from Small Business Server 2003 to Windows 2008 R2 with Exchange 2010. For this migration to work you will need the fo...
  4. Create a Win7 Gadget
    This article shows you how to create a simple "Gadget" -- a sort of mini-application supported by Windows 7 and Vista. Gadgets can be dropped anywhere on the desktop to provide instant information, ...
  5. Outlook continually prompting for username and password
    There have been a lot of questions recently regarding Outlook prompting for a username and password whilst using Exchange 2007. There are a few reasons why this would happen and I will try to cover t...
  6. Backup Exchange 2010 Information Store using Windows Backup
    There seems to be quite a lot of confusion around the ability to backup Exchange 2010 using the built in Windows Backup feature. This stems from the omission of this feature prior to Exchange 2007 s...

Cloud Class Webinars

  1. Avoiding Bugs in Microsoft Access
    Alison Balter takes and in-depth look at avoiding bugs in Access. In this webinar you will learn about using the immediate window to debug your applications, invoking the debugger, using breakpoints to troubleshoot, stepping through code, setting the next statement to execute, ...
  2. Top 10 Best New Features in Visio 2010
    Scott Helmers gives live demonstrations of the top 10 new features in Visio 2010. This webinar will teach you how to create compelling diagrams by adding shapes to the page with a single click, linking the shapes in a diagram to data in Excel (or SQL Server, or SharePoint), ...
  3. IT Consultant Business Secrets Revealed
    Michael Munger, Experts Exchange tech pro and IT consultant, pulls back the curtain on his very successful businesses and answers question on every IT consultant and business owner should know about. He shares secrets on what he did to solve the 5 most common problems in IT, ...
  4. Disaster Recovery and Business Continuity
    Quest CTO, Mike Billon, gives an overview of the steps involved in building a dunamic disaster recovery plan. Through case studies and an examination of software/hardware tooles for monitoring and testing, you'll gain a better understandin of where you are, where you want ...
  5. Organize Your Visio Diagrams with Containers and Lists
    Scott Helmers uses cross functional flowcharts, wireframe diagrams, data graphic legends and seating charts to teach you: how to ustilize all three new structured diagram components in Visio 2010, the best practices for organizeing shapes in previous version of Visio, how to organize ...
  6. How to Us Objects, Properties, Events and Methods in Microsoft Access
    Alison Dalter gives an in-depbth look at objects, properties, events and methods in Microsoft Access. In this webinar you will learn about using the object browser, referring to objects, working with properties and methods, working with object variables, understanding the ...

Join the Community

Give a Little. Get a Lot.

Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.

Join the Community

Answers

 

by: gemartiPosted on 2003-10-03 at 17:09:14ID: 9488833

Your question is a little confusing.
Is shutdown.exe from XP now on the 2K machine and you are trying to shutdown your XP machine?

OR

Is shutdown.exe from your W2K machine now on your XP machine and you are trying to shut down your XP machine?

OR

Is shutdown.exe from you XP machine and you are trying to shut down your XP machine.


If you are trying to shutdown the same machine that XP is on then just run
SHUTDOWN -r -f


 

by: gemartiPosted on 2003-10-03 at 17:11:15ID: 9488843

BTW on the machine that you get this error message check your Event logs to see what they have to say.

START | RUN | EventVwr.MSC

 

by: asssaPosted on 2003-10-03 at 17:13:41ID: 9488852

shutdown.exe copied from XP to 2K
I am running it on 2K in order to shutdown the XP.

Forget about it. I tested it with 2 XP machines.
Every time I'm running this command I'm getting "Access is denied.".

 

by: asssaPosted on 2003-10-03 at 17:15:10ID: 9488860

There are no entries in the Event Viewer related to this...

 

by: gemartiPosted on 2003-10-03 at 17:15:45ID: 9488862

You may also want to try adding the -l switch which will log off the currently logged on user:

SHUTDOWN -l -r -f -m \\salsa

 

by: asssaPosted on 2003-10-03 at 17:16:46ID: 9488865

Log off (cannot be used with -m option)

 

by: gemartiPosted on 2003-10-03 at 17:25:47ID: 9488891

Okay here is my last trick:

START | RUN | COMPMGMT.MSC  (ON THE W2K Machine)
Right Click on "Computer Management (Local)"
Select "Connect to another computer"
Type in SALSA
Right CLick on "Computer Management (SALSA)"
Select Properties
Click on the Advanced Tab
Click on the "Settings" button in startup and recovery panel
Click the "Shut Down" Button.


 

by: asssaPosted on 2003-10-03 at 17:28:29ID: 9488900

Right CLick on "Computer Management (SALSA)"
Select Properties ->
and the following error message appear:

---------------------------
System Properties
---------------------------
Win32: Access is denied.
---------------------------
OK  
---------------------------

 

by: gemartiPosted on 2003-10-03 at 17:40:49ID: 9488942

Are the two machines in a domain or a workgroup?

Really sounds like there is some kind of trust issue going on between these two machines.

In your network properties on the two machines do you have:
Microsoft Client for Networks?
File and printer Sharing?
TCP/IP?

Are you using local machine administrative rights or domain admin rights?



 

by: asssaPosted on 2003-10-03 at 17:49:45ID: 9488968

Both XP machines are in the Workgroup.
Microsoft Client for Network,
File and printer Sharing for Microsoft Networks,
QoS packet Scheduler
and Internet Protocol TCP/IP services are installed on both machines.
Local machine administrative rights are used.

 

by: gemartiPosted on 2003-10-03 at 17:55:16ID: 9488985

Okay. What about services packs.
go to the windows update site with both machines and make sure they both have the most recent service packs installed. I remember now reading something about this problem. Update W2K to SP3 if it isn't already updated. I'll try to find the post i read.

http://v4.windowsupdate.microsoft.com/en/default.asp

 

by: asssaPosted on 2003-10-03 at 18:01:06ID: 9489000

I am using both XP+SP1.
Update is configured for every night scan.

 

by: gemartiPosted on 2003-10-03 at 18:07:33ID: 9489028

I thought you said you were on a W2K machine trying to shut down an XP machine:
>>Comment from asssa
>>Date: 10/03/2003 07:13PM EST  Author Comment  
>>shutdown.exe copied from XP to 2K
>>I am running it on 2K in order to shutdown the XP


FIX: ICOMAdminCatalogCollection::Populate Fails with "Access Denied" Error on Simultaneous Calls

http://support.microsoft.com/default.aspx?scid=kb;en-us;291941
Complete list of SP3 Fixes:
http://support.microsoft.com/default.aspx?scid=%2fsupport%2fServicePacks%2fWindows%2f2000%2fSP3FixList.asp

 

by: asssaPosted on 2003-10-03 at 18:31:56ID: 9489118

Yes, but later ...

Comment from asssa
Date: 10/03/2003 05:13PM PDT  Author Comment  

shutdown.exe copied from XP to 2K
I am running it on 2K in order to shutdown the XP.

Forget about it. I tested it with 2 XP machines.
Every time I'm running this command I'm getting "Access is denied.".
 

 

by: dew_associatesPosted on 2003-10-03 at 23:11:50ID: 9489895

 

by: gemartiPosted on 2003-10-04 at 01:45:17ID: 9490213

asssa: just make sure that all of your machines have the same username/password combination for the administrator.

 

by: gemartiPosted on 2003-10-04 at 01:51:27ID: 9490220

Make sure you don't have the XP fire wall running:
Right Click on "Lan Connection" in Network Properties
Select Advanced Tab. Remove the Check which turns on the XP Firewall.

 

by: dew_associatesPosted on 2003-10-05 at 00:42:17ID: 9493804

asssa??

 

by: asssaPosted on 2003-10-06 at 09:40:58ID: 9499280

Hi,
the same result with psshutdown.
User names/passwords are the same.
Firewall is turned off.

 

by: dew_associatesPosted on 2003-10-06 at 10:00:41ID: 9499386

That being the case, you have an unresolved permissions issue causing the problem. psshutdown works when nothing else will.

 

by: asssaPosted on 2003-10-06 at 10:02:35ID: 9499398

Do you now how to resolve "permissions issue" ?

 

by: gemartiPosted on 2003-10-06 at 11:10:07ID: 9499872

Try passing the password with this format:

username = computername\username
password = ********


where computername is the computer name of the computer you are trying to shut down.

 

by: asssaPosted on 2003-10-06 at 11:17:11ID: 9499919

The same result.
I added another user with administrator privileges and shutdown.exe works.
So, I can't use the same user to shutdown the machine.
Do you know something about limitations to log in with the same user on XP (workgroup) ?

 

by: asssaPosted on 2003-10-06 at 12:55:19ID: 9500644

Ok, i did find the reason for this problem and solution:
.
There is a "ForceGuest" key in the regestry which is set to "1" (enabled). It means that all the
connection coming from "the network" will be authenticated as the Guest User.
For WinXP, the ForceGuest setting is enabled by default when in WORKGROUP mode
(not domain) and gives access problems for WMI connections and shares access,
other DCOM services and RPC services as well.
Note that for WinXP Home you cannot disable the ForceGuest behavior (only in
WinXP Pro).

see http://www.derkeiler.com/Newsgroups/microsoft.public.windowsxp.security_admin/2003-02/2268.html
for more details.
I changed the key value in the registry and ... yes, it works !
And shutdown.exe works as fine as psshutdown.exe.

 

by: dew_associatesPosted on 2003-10-06 at 15:11:24ID: 9501593

Then it is a permissions issue, for local security policies.

According to the Resource Kit for XP, by default, on computers running Windows XP Professional and not joined to a domain, all incoming network connections are forced to use the Guest account. This means that an incoming connection, even if a user name and password is provided, has only Guest-level access to the share. Because of this, either the Guest user account or the Everyone group (the only group to which the Guest account belongs) must have permissions on the share and on the directories and files that are shared. It also means that, in contrast to Windows 2000, you do not need to configure matching user accounts on computers to share files. Because Windows XP Professional supports Anonymous connections, and because it severely limits the use of the Everyone group in file system permissions, granting the Everyone group access to shared folders does not present the security problem that it does on Windows 2000–based computers.

ForceGuest is enabled by default, but can be disabled on Windows XP Professional by disabling the local security policy Network Access: Force Network Logons using Local Accounts to Authenticate as Guest. By contrast, on Windows XP Professional–based computers joined to a domain, the default sharing and security settings are the same as in Windows 2000. Likewise, if the ForceGuest policy setting on a Windows XP Professional–based computer not joined to a domain is disabled, then the computer behaves as in Windows 2000.

 

by: asssaPosted on 2003-10-06 at 15:29:56ID: 9501715

Nope,
This is not my personal "permissions issue".
For any XP Pro machine which is not a part of the domain the following are always TRUE:
remote shutdown using shutdown.exe or psshutdown.exe or any other shutdown tool will not work
untill "My Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa\forceguest" key
set to "0".
Thanks everybody but the reason of my problem and the solution I figured out by myself.

 

by: gemartiPosted on 2003-10-06 at 15:53:04ID: 9501813

asssa I'm glad you posted the solution. Now you should copy this link and in the community support section of this web site paste the link and request that this question be PAQ'd and your points refunded.


http://www.experts-exchange.com/Community_Support/askQuestion.jsp

 

by: asssaPosted on 2003-10-06 at 16:03:32ID: 9501863

Thanks a lot, gemarti.

 

by: dew_associatesPosted on 2003-10-06 at 19:49:04ID: 9502876

What BS, if I hadn't identified the fact that it was a permissions issue you wouldn't have had a clue where to look.

 

by: asssaPosted on 2003-10-07 at 00:21:00ID: 9503780

Bravo, dew_associates,
what a perspicacity !
Access is denied .... Hm-m.. "... it is a permissions issue ..."
Well done!

It was a permissions issue from the beginning.

You added 3 very "valuable" comments:
First was suggestion to use psshutdown.
Second - you just called me by my nick-name.
Third (which was AFTER I posted full solution) was simply cuted and pasted from the
http://www.microsoft.com/technet/treeview/default.asp?url=/technet/prodtechnol/winxppro/reskit/prde_ffs_ypuh.asp

So, please... be an expert.
Gemarti, thanks again!!!


Thank you for your help !

 

by: dew_associatesPosted on 2003-10-07 at 03:20:35ID: 9504525

Your time will come!

 

by: randomlemmingPosted on 2004-11-12 at 01:48:44ID: 12563776

Would it be possible for you to just get up, walk to the other computer and just go START/SHUT DOWN? or maybe pressing the button on the computer? Or even tuning it off at the plug(even though it isn't very healthy for the computer)? or maybe turn all of your power off at the mains? Either way, the computer still shuts down!!!

 

by: Anubus_1Posted on 2005-01-05 at 13:30:20ID: 12966634

Just thought I'd mention that you can just turn off simple file sharing and everything will work fine.

20120131-EE-VQP-002

3 Ways to Join

30-Day Free Trial

The Experts

98% positive feedback on 31,087 answers since March 2000. angeliii is a Microsoft Most Valuable Professional for his work with MS SQL Server & Develoment.

He has also proven his knowledge of Visual Basic Programming, PHP Scripting and Oracle Databases.

The Experts

97% positive feedback on 10,752 answers since July 2000. lrmoore has more than 18 years experience in the networking industry.

The six-time Mircosoft MVPs specialties include firewalls, virtual private networking, and network management.

Testimonials

"...and excellent source for support... Kind of like having your very own IT dept." Electriciansnet

Testimonials

"I was apprehensive at signing up at first. However... it has already made my life as an IT administrator much easier." JaCrews

Testimonials

"WOW! You guys have great, active, and knowledgeable people on here." moore50

Business Clients

Business Clients

In the Press

"If you’ve got a question... Experts Exchange can supply an answer.”

In the Press

"...an invaluable aid for both IT professionals and those who require tech support."

In the Press

"where IT professionals provide quick answers on just about any topic"

Business Account Plans

Loading Advertisement...