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;








0















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











share|improve this question
























  • 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

















0















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











share|improve this question
























  • 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













0












0








0








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











share|improve this question
















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






share|improve this question















share|improve this question













share|improve this question




share|improve this question








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

















  • 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










4 Answers
4






active

oldest

votes


















2














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.






share|improve this answer























  • this really is the way to go!

    – tony roth
    Jun 29 '10 at 19:02


















1














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






share|improve this answer
































    1














    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






    share|improve this answer




















    • 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


















    0














    Try this



    WMIC /node:COMPUTER process call create “cmd.exe /c shutdown”





    share|improve this answer

























      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
      );



      );













      draft saved

      draft discarded


















      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









      2














      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.






      share|improve this answer























      • this really is the way to go!

        – tony roth
        Jun 29 '10 at 19:02















      2














      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.






      share|improve this answer























      • this really is the way to go!

        – tony roth
        Jun 29 '10 at 19:02













      2












      2








      2







      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.






      share|improve this answer













      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.







      share|improve this answer












      share|improve this answer



      share|improve this answer










      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

















      • 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













      1














      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






      share|improve this answer





























        1














        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






        share|improve this answer



























          1












          1








          1







          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






          share|improve this answer















          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







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Jun 29 '10 at 15:18

























          answered Jun 28 '10 at 21:21









          tony rothtony roth

          3,4911211




          3,4911211





















              1














              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






              share|improve this answer




















              • 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














              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






              share|improve this answer




















              • 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








              1







              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






              share|improve this answer















              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







              share|improve this answer














              share|improve this answer



              share|improve this answer








              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












              • 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











              0














              Try this



              WMIC /node:COMPUTER process call create “cmd.exe /c shutdown”





              share|improve this answer





























                0














                Try this



                WMIC /node:COMPUTER process call create “cmd.exe /c shutdown”





                share|improve this answer



























                  0












                  0








                  0







                  Try this



                  WMIC /node:COMPUTER process call create “cmd.exe /c shutdown”





                  share|improve this answer















                  Try this



                  WMIC /node:COMPUTER process call create “cmd.exe /c shutdown”






                  share|improve this answer














                  share|improve this answer



                  share|improve this answer








                  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



























                      draft saved

                      draft discarded
















































                      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.




                      draft saved


                      draft discarded














                      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





















































                      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







                      Popular posts from this blog

                      Wikipedia:Vital articles Мазмуну Biography - Өмүр баян Philosophy and psychology - Философия жана психология Religion - Дин Social sciences - Коомдук илимдер Language and literature - Тил жана адабият Science - Илим Technology - Технология Arts and recreation - Искусство жана эс алуу History and geography - Тарых жана география Навигация менюсу

                      Bruxelas-Capital Índice Historia | Composición | Situación lingüística | Clima | Cidades irmandadas | Notas | Véxase tamén | Menú de navegacióneO uso das linguas en Bruxelas e a situación do neerlandés"Rexión de Bruxelas Capital"o orixinalSitio da rexiónPáxina de Bruselas no sitio da Oficina de Promoción Turística de Valonia e BruxelasMapa Interactivo da Rexión de Bruxelas-CapitaleeWorldCat332144929079854441105155190212ID28008674080552-90000 0001 0666 3698n94104302ID540940339365017018237

                      What should I write in an apology letter, since I have decided not to join a company after accepting an offer letterShould I keep looking after accepting a job offer?What should I do when I've been verbally told I would get an offer letter, but still haven't gotten one after 4 weeks?Do I accept an offer from a company that I am not likely to join?New job hasn't confirmed starting date and I want to give current employer as much notice as possibleHow should I address my manager in my resignation letter?HR delayed background verification, now jobless as resignedNo email communication after accepting a formal written offer. How should I phrase the call?What should I do if after receiving a verbal offer letter I am informed that my written job offer is put on hold due to some internal issues?Should I inform the current employer that I am about to resign within 1-2 weeks since I have signed the offer letter and waiting for visa?What company will do, if I send their offer letter to another company