Shutdown batch file access denied

Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

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.

@echo off

shutdown -m \\192.168.0.8 -s -t 0 -f
tl;dr version:
Script to shut down server works on Account 1. Script gets "Access Denied" on Account 2.

Help?!
 

Squashman

Retired 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.
 
Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

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 807,865 other people just like you!

Latest posts

Staff online

Top