Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

MS-DOS command to shutdown computer

Status
Not open for further replies.

kandy2015

Member level 1
Member level 1
Joined
Jan 11, 2009
Messages
36
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,288
Activity points
1,492
hi guys pls can you help me with ms-dos command that can shutdown a remote computer using windows 7 operating system.
I tried 'shutdown /s /m \\computername' but it returned access denied.
Thanks.
 

I don't have win7, so I am not sure, but I think it should be :
shutdown -s -m \\computername
or use
shutdown /?
for your OS.
 
The command with the dashes identifying the options is the correct syntax. But since it is a remote computer, you need to be authenticated to that computer with an account with sufficient privileges to perform this operation. If it is part of a domain, you will need to authenticate with a domain administrator account. If it is part of a workgroup, you will need to authenticate to the remote machine with its local administrator account or an account with administrative privileges.
 
  • Like
Reactions: kmwing

    kmwing

    Points: 2
    Helpful Answer Positive Rating
    V

    Points: 2
    Helpful Answer Positive Rating
All i remember from MSDOS was EXIT or SHUTDOWN!
 

Usage: shutdown [-i | -l | -s | -r | -a] [-f] [-m \\computername] [-t xx] [-c "comment"] [-d up:xx:yy]
No args Display this message (same as -?)
-i Display GUI interface, must be the first option
-l Log off (cannot be used with -m option)
-s Shutdown the computer
-r Shutdown and restart the computer
-a Abort a system shutdown
-m \\computername Remote computer to shutdown/restart/abort
-t xx Set timeout for shutdown to xx seconds
-c "comment" Shutdown comment (maximum of 127 characters)
-f Forces running applications to close without warning
-d [p]:xx:yy The reason code for the shutdown
u is the user code
p is a planned shutdown code
xx is the major reason code (positive integer less than 256)
yy is the minor reason code (positive integer less than 65536)
 
EXIT command, just close the prompt screen, wright ?
 

Windows shell commands haven't to do with MS-DOS (except for the continuation of most MS-DOS command names). To use the Windows shutdown command line utility with a remote computer, you must have of course sufficient rights (administrator or equivalent) on the remote computer.
 

The method I use is to run "taskmgr" on the remote machine then click on the "shut down" menu item. It works the same as ctrl-alt-del on the local machine so you have options to log out, restart or switch off.

Brian.
 

It is possible to create a TELNET server on remote computer, and give full access to all DOS commands.
So, a TELNET session will allow to perform remote shutdown this way.
The response you will receive at prompt seems like being on local computer.

+++
 

I am also not using Windows 7 but Windows XP. I have never used Windows 7, but as per the positive reviews and comments of the user I am thinking to install it into my system. However, you can try using 'shutdown -s' to shutdown your computer using MS-DOS command.
 
Last edited:

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top