How to shutdown remote Win2k8 machine using WMIC?Useful Command-line Commands on WindowsHow to send ctrl+alt+del using Remote Desktop?Change Current Directory to the Batch File DirectoryHow to troubleshoot a remote wmi query/access failure?Remote installing an msi on citrix servers using WMI'pskill \hostname winlogon' might budge a server “stuck rebooting”, but why?Remote shutdownwmic hanging on remote server?WMI “Access Denied” to Read Only Domain ControllerHow to use WMIC to connect to remote machine and output OS information to a file?
I recently started my machine learning PhD and I have absolutely no idea what I'm doing
Why wear sunglasses in indoor velodromes?
Why does a table with a defined constant in its index compute 10X slower?
French equivalent of the German expression "flöten gehen"
Was Tyrion always a poor strategist?
How to pipe results multiple results into a command?
Divisor Rich and Poor Numbers
Why is so much ransomware breakable?
Why aren't satellites disintegrated even though they orbit earth within earth's Roche Limits?
Cycling to work - 30mile return
How would fantasy dwarves exist, realistically?
Why does the setUID bit work inconsistently?
Shortest amud or daf in Shas?
How does this piece of code determine array size without using sizeof( )?
Is my homebrew Awakened Bear race balanced?
How to laser-level close to a surface
Should all adjustments be random effects in a mixed linear effect?
Why do academics prefer Mac/Linux?
How do we explain the use of a software on a math paper?
Bookshelves: the intruder
RegEx with d doesn’t work in if-else statement with [[
Why does string strummed with finger sound different from the one strummed with pick?
Have GoT's showrunners reacted to the poor reception of the final season?
Taylor series leads to two different functions - why?
How to shutdown remote Win2k8 machine using WMIC?
Useful Command-line Commands on WindowsHow to send ctrl+alt+del using Remote Desktop?Change Current Directory to the Batch File DirectoryHow to troubleshoot a remote wmi query/access failure?Remote installing an msi on citrix servers using WMI'pskill \hostname winlogon' might budge a server “stuck rebooting”, but why?Remote shutdownwmic hanging on remote server?WMI “Access Denied” to Read Only Domain ControllerHow to use WMIC to connect to remote machine and output OS information to a file?
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;
What is the exact syntax to shutdown remote Win2k8 server using WMIC?
(The reason WMIC must be used is because the remote machine in a different NT Domain and the local machine does not have access to that domain. WMIC takes /user: and /password: parameters and auths against remote machine itself.)
These don't work:
wmic /node:10.162.x.x /user:tech1xxxx /password:xxxx os call Shutdown
Executing (Win32_OperatingSystem)->Shutdown()
ERROR: Code = 0x8004102f Description = Invalid method Parameter(s)
Facility = WMI
wmic /node:10.162.x.x /user:tech1xxxx /password:xxxx os call Shutdown(1)
Verb Or Method has no input parameters.
wmic /node:10.162.x.x /user:tech1xxxx /password:xxxx os call Win32Shutdown(1)
Executing (Win32_OperatingSystem)->Win32Shutdown()
ERROR:
Code = 0x8004102f
Description = Invalid method Parameter(s)
Facility = WMI
wmic /node:10.162.x.x /user:tech1xxxx /password:xxxx path Win32_OperatingSystem call Shutdown(1)
Verb Or Method has no input parameters.
wmic /node:10.162.x.x /user:tech1xxxx /password:xxxx path Win32_OperatingSystem call Shutdown
Executing (Win32_OperatingSystem)->Shutdown()
ERROR:
Code = 0x8004102f
Description = Invalid method Parameter(s)
Facility = WMI
windows windows-server-2008 remote-access wmi
add a comment |
What is the exact syntax to shutdown remote Win2k8 server using WMIC?
(The reason WMIC must be used is because the remote machine in a different NT Domain and the local machine does not have access to that domain. WMIC takes /user: and /password: parameters and auths against remote machine itself.)
These don't work:
wmic /node:10.162.x.x /user:tech1xxxx /password:xxxx os call Shutdown
Executing (Win32_OperatingSystem)->Shutdown()
ERROR: Code = 0x8004102f Description = Invalid method Parameter(s)
Facility = WMI
wmic /node:10.162.x.x /user:tech1xxxx /password:xxxx os call Shutdown(1)
Verb Or Method has no input parameters.
wmic /node:10.162.x.x /user:tech1xxxx /password:xxxx os call Win32Shutdown(1)
Executing (Win32_OperatingSystem)->Win32Shutdown()
ERROR:
Code = 0x8004102f
Description = Invalid method Parameter(s)
Facility = WMI
wmic /node:10.162.x.x /user:tech1xxxx /password:xxxx path Win32_OperatingSystem call Shutdown(1)
Verb Or Method has no input parameters.
wmic /node:10.162.x.x /user:tech1xxxx /password:xxxx path Win32_OperatingSystem call Shutdown
Executing (Win32_OperatingSystem)->Shutdown()
ERROR:
Code = 0x8004102f
Description = Invalid method Parameter(s)
Facility = WMI
windows windows-server-2008 remote-access wmi
any reason to not just use shutdown /m
– tony roth
Jun 28 '10 at 21:19
@tony: "The reason WMIC must be used is because the remote machine in a different NT Domain and the local machine does not have access to that domain. WMIC takes /user: and /password: parameters and auths against remote machine itself."
– zvolkov
Jun 29 '10 at 14:24
gut feeling is that you'll need a where clause to qualify what your rebooting.
– tony roth
Jun 29 '10 at 15:16
add a comment |
What is the exact syntax to shutdown remote Win2k8 server using WMIC?
(The reason WMIC must be used is because the remote machine in a different NT Domain and the local machine does not have access to that domain. WMIC takes /user: and /password: parameters and auths against remote machine itself.)
These don't work:
wmic /node:10.162.x.x /user:tech1xxxx /password:xxxx os call Shutdown
Executing (Win32_OperatingSystem)->Shutdown()
ERROR: Code = 0x8004102f Description = Invalid method Parameter(s)
Facility = WMI
wmic /node:10.162.x.x /user:tech1xxxx /password:xxxx os call Shutdown(1)
Verb Or Method has no input parameters.
wmic /node:10.162.x.x /user:tech1xxxx /password:xxxx os call Win32Shutdown(1)
Executing (Win32_OperatingSystem)->Win32Shutdown()
ERROR:
Code = 0x8004102f
Description = Invalid method Parameter(s)
Facility = WMI
wmic /node:10.162.x.x /user:tech1xxxx /password:xxxx path Win32_OperatingSystem call Shutdown(1)
Verb Or Method has no input parameters.
wmic /node:10.162.x.x /user:tech1xxxx /password:xxxx path Win32_OperatingSystem call Shutdown
Executing (Win32_OperatingSystem)->Shutdown()
ERROR:
Code = 0x8004102f
Description = Invalid method Parameter(s)
Facility = WMI
windows windows-server-2008 remote-access wmi
What is the exact syntax to shutdown remote Win2k8 server using WMIC?
(The reason WMIC must be used is because the remote machine in a different NT Domain and the local machine does not have access to that domain. WMIC takes /user: and /password: parameters and auths against remote machine itself.)
These don't work:
wmic /node:10.162.x.x /user:tech1xxxx /password:xxxx os call Shutdown
Executing (Win32_OperatingSystem)->Shutdown()
ERROR: Code = 0x8004102f Description = Invalid method Parameter(s)
Facility = WMI
wmic /node:10.162.x.x /user:tech1xxxx /password:xxxx os call Shutdown(1)
Verb Or Method has no input parameters.
wmic /node:10.162.x.x /user:tech1xxxx /password:xxxx os call Win32Shutdown(1)
Executing (Win32_OperatingSystem)->Win32Shutdown()
ERROR:
Code = 0x8004102f
Description = Invalid method Parameter(s)
Facility = WMI
wmic /node:10.162.x.x /user:tech1xxxx /password:xxxx path Win32_OperatingSystem call Shutdown(1)
Verb Or Method has no input parameters.
wmic /node:10.162.x.x /user:tech1xxxx /password:xxxx path Win32_OperatingSystem call Shutdown
Executing (Win32_OperatingSystem)->Shutdown()
ERROR:
Code = 0x8004102f
Description = Invalid method Parameter(s)
Facility = WMI
windows windows-server-2008 remote-access wmi
windows windows-server-2008 remote-access wmi
edited Jun 29 '10 at 14:23
zvolkov
asked Jun 28 '10 at 21:04
zvolkovzvolkov
14128
14128
any reason to not just use shutdown /m
– tony roth
Jun 28 '10 at 21:19
@tony: "The reason WMIC must be used is because the remote machine in a different NT Domain and the local machine does not have access to that domain. WMIC takes /user: and /password: parameters and auths against remote machine itself."
– zvolkov
Jun 29 '10 at 14:24
gut feeling is that you'll need a where clause to qualify what your rebooting.
– tony roth
Jun 29 '10 at 15:16
add a comment |
any reason to not just use shutdown /m
– tony roth
Jun 28 '10 at 21:19
@tony: "The reason WMIC must be used is because the remote machine in a different NT Domain and the local machine does not have access to that domain. WMIC takes /user: and /password: parameters and auths against remote machine itself."
– zvolkov
Jun 29 '10 at 14:24
gut feeling is that you'll need a where clause to qualify what your rebooting.
– tony roth
Jun 29 '10 at 15:16
any reason to not just use shutdown /m
– tony roth
Jun 28 '10 at 21:19
any reason to not just use shutdown /m
– tony roth
Jun 28 '10 at 21:19
@tony: "The reason WMIC must be used is because the remote machine in a different NT Domain and the local machine does not have access to that domain. WMIC takes /user: and /password: parameters and auths against remote machine itself."
– zvolkov
Jun 29 '10 at 14:24
@tony: "The reason WMIC must be used is because the remote machine in a different NT Domain and the local machine does not have access to that domain. WMIC takes /user: and /password: parameters and auths against remote machine itself."
– zvolkov
Jun 29 '10 at 14:24
gut feeling is that you'll need a where clause to qualify what your rebooting.
– tony roth
Jun 29 '10 at 15:16
gut feeling is that you'll need a where clause to qualify what your rebooting.
– tony roth
Jun 29 '10 at 15:16
add a comment |
4 Answers
4
active
oldest
votes
I don't know why WMIC wont work, but the powershell version does work:
$cred = get-credential tech1xxxxx
(gwmi -comp 10.162.x.x -cred $cred Win32_OperatingSystem).Shutdown()
You'll be prompted for the password, there's no way around it prompting you for the password.
this really is the way to go!
– tony roth
Jun 29 '10 at 19:02
add a comment |
the 1st one but you need a space between the ipaddress and the /user:
add a where clause
something like
wmic os where "version like '%'" call win32shutdown 2
add a comment |
wmic /node: "machinename" os where primary="true" call shutdown
Must have space after : Must have quotes around machinename and true
use /user:username
between machinename and os if you need to authenticate
1
Hello and welcome to serverfault. Please take the time to format and comment sample code when posting an answer.
– Stephane
May 7 '13 at 7:06
add a comment |
Try this
WMIC /node:COMPUTER process call create “cmd.exe /c shutdown”
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "2"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f155695%2fhow-to-shutdown-remote-win2k8-machine-using-wmic%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
4 Answers
4
active
oldest
votes
4 Answers
4
active
oldest
votes
active
oldest
votes
active
oldest
votes
I don't know why WMIC wont work, but the powershell version does work:
$cred = get-credential tech1xxxxx
(gwmi -comp 10.162.x.x -cred $cred Win32_OperatingSystem).Shutdown()
You'll be prompted for the password, there's no way around it prompting you for the password.
this really is the way to go!
– tony roth
Jun 29 '10 at 19:02
add a comment |
I don't know why WMIC wont work, but the powershell version does work:
$cred = get-credential tech1xxxxx
(gwmi -comp 10.162.x.x -cred $cred Win32_OperatingSystem).Shutdown()
You'll be prompted for the password, there's no way around it prompting you for the password.
this really is the way to go!
– tony roth
Jun 29 '10 at 19:02
add a comment |
I don't know why WMIC wont work, but the powershell version does work:
$cred = get-credential tech1xxxxx
(gwmi -comp 10.162.x.x -cred $cred Win32_OperatingSystem).Shutdown()
You'll be prompted for the password, there's no way around it prompting you for the password.
I don't know why WMIC wont work, but the powershell version does work:
$cred = get-credential tech1xxxxx
(gwmi -comp 10.162.x.x -cred $cred Win32_OperatingSystem).Shutdown()
You'll be prompted for the password, there's no way around it prompting you for the password.
answered Jun 29 '10 at 14:52
Chris SChris S
73.9k10107202
73.9k10107202
this really is the way to go!
– tony roth
Jun 29 '10 at 19:02
add a comment |
this really is the way to go!
– tony roth
Jun 29 '10 at 19:02
this really is the way to go!
– tony roth
Jun 29 '10 at 19:02
this really is the way to go!
– tony roth
Jun 29 '10 at 19:02
add a comment |
the 1st one but you need a space between the ipaddress and the /user:
add a where clause
something like
wmic os where "version like '%'" call win32shutdown 2
add a comment |
the 1st one but you need a space between the ipaddress and the /user:
add a where clause
something like
wmic os where "version like '%'" call win32shutdown 2
add a comment |
the 1st one but you need a space between the ipaddress and the /user:
add a where clause
something like
wmic os where "version like '%'" call win32shutdown 2
the 1st one but you need a space between the ipaddress and the /user:
add a where clause
something like
wmic os where "version like '%'" call win32shutdown 2
edited Jun 29 '10 at 15:18
answered Jun 28 '10 at 21:21
tony rothtony roth
3,4911211
3,4911211
add a comment |
add a comment |
wmic /node: "machinename" os where primary="true" call shutdown
Must have space after : Must have quotes around machinename and true
use /user:username
between machinename and os if you need to authenticate
1
Hello and welcome to serverfault. Please take the time to format and comment sample code when posting an answer.
– Stephane
May 7 '13 at 7:06
add a comment |
wmic /node: "machinename" os where primary="true" call shutdown
Must have space after : Must have quotes around machinename and true
use /user:username
between machinename and os if you need to authenticate
1
Hello and welcome to serverfault. Please take the time to format and comment sample code when posting an answer.
– Stephane
May 7 '13 at 7:06
add a comment |
wmic /node: "machinename" os where primary="true" call shutdown
Must have space after : Must have quotes around machinename and true
use /user:username
between machinename and os if you need to authenticate
wmic /node: "machinename" os where primary="true" call shutdown
Must have space after : Must have quotes around machinename and true
use /user:username
between machinename and os if you need to authenticate
edited May 7 '13 at 7:04
Stephane
5,71922145
5,71922145
answered May 7 '13 at 5:37
AllenAllen
111
111
1
Hello and welcome to serverfault. Please take the time to format and comment sample code when posting an answer.
– Stephane
May 7 '13 at 7:06
add a comment |
1
Hello and welcome to serverfault. Please take the time to format and comment sample code when posting an answer.
– Stephane
May 7 '13 at 7:06
1
1
Hello and welcome to serverfault. Please take the time to format and comment sample code when posting an answer.
– Stephane
May 7 '13 at 7:06
Hello and welcome to serverfault. Please take the time to format and comment sample code when posting an answer.
– Stephane
May 7 '13 at 7:06
add a comment |
Try this
WMIC /node:COMPUTER process call create “cmd.exe /c shutdown”
add a comment |
Try this
WMIC /node:COMPUTER process call create “cmd.exe /c shutdown”
add a comment |
Try this
WMIC /node:COMPUTER process call create “cmd.exe /c shutdown”
Try this
WMIC /node:COMPUTER process call create “cmd.exe /c shutdown”
edited May 6 at 22:37
womble♦
86.3k18147205
86.3k18147205
answered May 6 at 7:58
Cédric JäggiCédric Jäggi
1
1
add a comment |
add a comment |
Thanks for contributing an answer to Server Fault!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f155695%2fhow-to-shutdown-remote-win2k8-machine-using-wmic%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
any reason to not just use shutdown /m
– tony roth
Jun 28 '10 at 21:19
@tony: "The reason WMIC must be used is because the remote machine in a different NT Domain and the local machine does not have access to that domain. WMIC takes /user: and /password: parameters and auths against remote machine itself."
– zvolkov
Jun 29 '10 at 14:24
gut feeling is that you'll need a where clause to qualify what your rebooting.
– tony roth
Jun 29 '10 at 15:16