Shutdown PC remotely as another user.

Posted on 2005-04-07
Last Modified: 2008-01-09
Hi Experts , I have a question about remote shutdown in a Windows based Network.I need to shutdown a remote PC (XP Pro ) from XP Pro PC.
ok let's say, the source one is PC1 and the target is PC2(to be shutdown).
On PC1 I'm  connected as a regular user.I know the Administrator's username nad password for PC2.
If I create the same administrator user on PC1 with the same password and log on , using command prompt, when I issue
shutdown -r -m \\PC2 -t 30

it works , but when I 'm logged as a regular user on the local computer- Access is denied.
Is there a way to run this when I'm connected as regular user on PC1.
I do  not want to use Run as command to run the command prompt as Administrator and issue the command.
I want to automate this.
So , my question is , is there a way to automate shutdown process on a remote pc, when I'm connected on the local one as a regular user for that local PC and know the Administrator username and password for the remote PC.
Question by:adrian_ang
    LVL 6

    Accepted Solution

    Yes. Map a drive to from pc1 to \\pc2\c$ and uthenticate using the admin account and password. Now you will  have access to shut the machine down remotely.
    You could put this into a .bat file if you wanted:

    net use z: \\pc2\c$ /user\administrator password
    shutdown -r -m \\PC2 -t 30
    LVL 5

    Author Comment

    I just want to investigate further :

    shutdown \\Computername\share password /user\Administrator

    if someone else experience that probelm and searches EE.

    Thank You , youre1m!

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    Suggested Solutions

    There are 2 things you must have in order to connect to the internet behind a router, The "Gateway IP" of the router, which is usually something like, I've seen routers with default values of:,,, …
    Can you find a fax from a vendor you saved a decade ago in seconds? Have you ever cursed your PC under your breath during an audit because you couldn’t find the requested statement or driver history?  If you answered no to the first question or yes …
    Hi everyone! This is Experts Exchange customer support.  This quick video will show you how to change your primary email address.  If you have any questions, then please Write a Comment below!
    Internet Business Fax to Email Made Easy - With eFax Corporate (, you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    14 Experts available now in Live!

    Get 1:1 Help Now