1. Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members.

Shutdown batch file access denied

Discussion in 'Windows 7' started by AdrianClarke, Nov 29, 2011.

Thread Status:
Not open for further replies.
  1. AdrianClarke

    AdrianClarke Thread Starter

    Joined:
    Oct 25, 2004
    Messages:
    329
    This has been picking at my brain and is driving me nuts!

    I have a script on my laptop under my account which is an Administrator account. I double click the .bat file and it shuts down my remote server without any issue.

    When I go into another account on my laptop, which was an regular user account, changed to an Administrator account, I double click on the .bat file and CMD comes and goes quickly with the "Access Denied" message.

    I cannot figure it out for the life of me. The script is shutting down a Windows Server 2008 R2 computer.

    My simple script.

    tl;dr version:
    Script to shut down server works on Account 1. Script gets "Access Denied" on Account 2.

    Help?!
     
  2. Squashman

    Squashman Trusted Advisor

    Joined:
    Apr 4, 2003
    Messages:
    19,786
    Account 2 needs to have administrative privileges on the remote computer. Basically meaning his username and password need to be the same on the local computer they are on and the remote computer. If memory serves me correctly it uses your credentials from the computer you are logged into to try and shutdown the remote computer.
     
As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 733,556 other people just like you!

Loading...
Thread Status:
Not open for further replies.

Short URL to this thread: https://techguy.org/1029019

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice