Shutdown a Windows machine from Linux

net rpc shutdown -I ipAddressOfWindowsPC -U username%password
This will issue a shutdown command to the Windows machine. username must be an administrator on the Windows machine. Requires samba-common package installed. Other relevant commands are: net rpc shutdown -r : reboot the Windows machine net rpc abortshutdown : abort shutdown of the Windows machine Type: net rpc to show all relevant commands

117
By: LrdShaper
2009-05-31 07:18:01

What Others Think

Would be good, but does not work for me (remote machine is Windows XP Pro): Shutdown of remote machine failed result was: DOS code 0x00000015
ok · 623 weeks and 2 days ago
works great
linuxrawkstar · 619 weeks and 1 day ago
How can I do the same thing using a Mac to Shutdown XP Pro Machine. I have a MacBook Please, Please any help would help
netguykb · 606 weeks and 4 days ago
Ok I tried this net rpc shutdown -I 192.168.0.6 -U mycomputer%mypassword mypassword has admin rights but got this: Could not connect to server 192.168.0.6 Connection failed: NT_STATUS_CONNECTION_REFUSED Could not connect to server 192.168.0.6 Connection failed: NT_STATUS_CONNECTION_REFUSED
netguykb · 606 weeks and 4 days ago
Ok I tried this net rpc shutdown -I 192.168.0.6 -U mycomputer%mypassword mypassword has admin rights but got this: Could not connect to server 192.168.0.6 Connection failed: NT_STATUS_CONNECTION_REFUSED Could not connect to server 192.168.0.6 Connection failed: NT_STATUS_CONNECTION_REFUSED
netguykb · 606 weeks and 4 days ago
Ok I tried this net rpc shutdown -I 192.168.0.6 -U mycomputer%mypassword mypassword has admin rights but got this: Could not connect to server 192.168.0.6 Connection failed: NT_STATUS_CONNECTION_REFUSED Could not connect to server 192.168.0.6 Connection failed: NT_STATUS_CONNECTION_REFUSED
netguykb · 606 weeks and 4 days ago
File/folder sharing needs to be enabled on the XP Machine
LrdShaper · 606 weeks and 3 days ago
worked awesome for me (Mac OS X 10.6.3) ... also if you aren't sure what the IP address is you can try the hostname (using -S) per the help: Valid targets: choose one (none defaults to localhost) -S or --server= server name -I or --ipaddress= address of target server -w or --workgroup= target workgroup or domain I've been using: net rpc shutdown -r -f -C "shutting down" -S hostname -U admin%adminpass and it works well for me :)
IsraelTorres · 580 weeks ago
I am happy for the commands you have provided here above. THese are extremely helpful to me to practice them on my top 10 essay writing services blogs and been looking forward to it for eh outcome.
MarilynMiller · 48 weeks and 2 days ago
The ip address what you have shared in this post seems to be different class ip`s. Generally one company takes any of the class is in the 4 types of ip address. I have seen is essayshark reliable writing service blog is using class ip address to their website to communicate in internet.
DanielSnyder · 45 weeks and 1 day ago
Love you, so don't let me down If I swam the longest river just to call your name happy wheels super smash flash 2
havenhaven · 43 weeks and 2 days ago
I beginning late went over the long haul your blog and have been taking a gander at along http://www.24escorts.uk/"> Escorts London I figured I would leave my first remark. I don't have the foggiest idea what to state with the striking capacity of that.
lilysmiths · 28 weeks and 4 days ago
I ought to thank you for the endeavors you have made recorded as a printed approach this article http://www.24escorts.uk/ I am trusting in a near best work from you later on other than.
lilysmiths · 28 weeks and 4 days ago
This is a wonderful article. Best Hedge trimmers 2021
maria002 · 28 weeks and 3 days ago
Don’t feel like doing your college papers? Go to WritePaperFor.Me and stop wasting your time on homework.
AmandaBrooks · 27 weeks and 2 days ago
Positive page, where did u set up the data on this posting?I have disposed of a few articles on your site now https://www.hotescortsjaipur.com/ and I genuinely like your style.
gaurigupta · 26 weeks and 5 days ago
As I followed on your web log even while changing in reality a little submits http://www.jaipurescorts.co.in/ Help out structure for by at that point, We are book-meandering at one time handle ones own entire goes up.
gaurigupta · 26 weeks and 5 days ago
Positive site page, where did u set up the data on this posting?http://www.jaipurescorts.net.in/ I have inspected a couple of the articles on your page now, and I genuinely like your style.
gaurigupta · 26 weeks and 5 days ago
howdy I revealed your page looking at the web http://www.escortsservicesjaipur.in/ I expected to reveal to you I respect the presence of things around here. Keep it up will bookmark unmistakably.
gaurigupta · 26 weeks and 5 days ago
Positive page, where did u set up the data on this posting?I have disposed of a few articles on your site now Bangalore" rel="nofollow">http://www.kiaescorts.com/bangalore-escorts>Bangalore escorts" and I genuinely like your style. https://kiasharma123.blogspot.com/2020/11/hot-independent-bangalore-escorts-call.html
kiasharma · 25 weeks and 1 day ago
Positive page, where did u set up the data on this posting?I have disposed of a few articles on your site now http://www.kiaescorts.com/bangalore-escorts and I genuinely like your style. https://kiasharma123.blogspot.com/2020/11/hot-independent-bangalore-escorts-call.html
kiasharma · 25 weeks and 1 day ago
Thanks for sharing your nice post, If you are thinking to visit Jaipur, Ajmer, Udaipur, Kota, Jodhpur, Delhi, you can not manage to skip the love and affection of the city's pretty escorts. Your tour will not be complete without the help of this town's beautiful Jaipur escort girls. Meet VIP Girls Meet VIP Girls
meetvipgirls · 20 weeks and 6 days ago
Good information, thanks for sharing. This timeshare data for a dating site people are lonely in his life. With the help of this site, you can find your best dating girl. Escorts In Jaipur, Escort Service In Jaipur. https://sites.google.com/view/kokaqueen/callgirlsinjaipur https://kokaqueen177.godaddysites.com/ https://kokaqueen177.cabanova.com/ http://kokaqueen177.idea.informer.com/ https://amos.ukf.sk/blog/index.php?userid=8413 http://kokaqueen177.simplesite.com/446924172 https://koka-queen.tumblr.com/post/631856121468043264/benefits-of-spending-time-together-along-with-our https://diigo.com/0iog20 https://5df3615ec7491.site123.me/blog/call-me-whenever-you-happily-spend-time-with-me-vip-call-girls-in-malviya-nagar-jaipur
kokaqueen177 · 18 weeks and 3 days ago
https://5df3615ec7491.site123.me/ https://escorts-in-jaipur-39.webselfsite.net/ https://sites.google.com/view/kokaqueen/callgirlsinjaipur https://kokaqueen177.godaddysites.com/ https://kokaqueen177.cabanova.com/ http://kokaqueen177.idea.informer.com/ https://amos.ukf.sk/blog/index.php?userid=8413
kokaqueen177 · 18 weeks and 3 days ago
Thank you to this amazing read that is really Useful for me. Continue the fantastic work. Another fantastic post from you thanks so much. Fantastic hints I am going to have try and see the impact... http://jaipurcallgirlescorts.mystrikingly.com http://www.arpitachowdhary.com
arpita997 · 18 weeks and 1 day ago
I really love following this blog. We also recommend our users on https://fixablestuff.com to visit such blogs and engage with their content
edroberts446 · 17 weeks and 5 days ago
I really love following this blog. We also recommend our users on http://fixablestuff.com to visit such blogs and engage with their content
edroberts446 · 17 weeks and 5 days ago
I'll be amazingly glad that you basically Have made this structure out of site that is great. I truly like it and I'll be inclined to bookmark it. https://www.alishaoberoi.com/gurgaon-escort-service.html https://www.alishaoberoi.com/udaipur-escort-service.html
arpita997 · 14 weeks and 6 days ago
Much obliged it's a phenomenal post intended for Most of the net watchers; they will get edge from it I am certain. I've prescribed this to buddies alongside my relatives and cherished perusing your post. Udaipur escort service Gurgaon escort service
arpita997 · 14 weeks and 6 days ago
The Bhopal escort girl is available all the time easily. For that, one condition to settle on a decision to us and the arrangement gets reserved for them for their preferred escort. The interest for school young call girls is extremely tremendous in Bhopal among the adolescent. These escorts are proficient, experienced, and flexible commonly. These escorts empower their customers to have made a few dreams and have some awesome time with them. The prestigious call young ladies in Bhopal guarantee that they never request any responsibility from their customers in lieu of investing energy with them. These young ladies are known for their security and no obstruction in the existence of their customers, as they never open up the record of their customers in open that may represent a pessimistic impact on the individual just as public activity of their customers. [url=http://www.alisharoy.biz/Madhya-Pradesh/bhopal-escorts.html]Escorts in Bhopal[/url] | [url=http://www.alisharoy.biz/Rajasthan/kota-escorts.html]Escorts in Kota[/url] | [url=http://www.alisharoy.biz/Gujarat/rajkot-escorts.html]Escorts in Rajkot[/url] | [url=http://www.alisharoy.biz/Andhra-Pradesh/visakhapatnam-escorts.html]Escorts in Visakhapatnam[/url] | [url=http://www.alisharoy.biz/Andhra-Pradesh/vijayawada-escorts.html]Escorts in Vijayawada[/url] | [url=http://www.alisharoy.biz/Bihar/aurangabad-escorts.html]Escorts in Aurangabad[/url] | [url=http://www.alisharoy.biz/Bihar/patna-escorts.html]Escorts in Patna[/url] | [url=http://www.alisharoy.biz/Rajasthan/ajmer-escorts.html]Escorts in Ajmer[/url] | [url=http://www.alisharoy.biz/Rajasthan/bikaner-escorts.html]Escorts in Bikaner[/url] | [url=http://www.alisharoy.biz/Rajasthan/bhilwara-escorts.html]Escorts in Bhilwara[/url] | [url=http://www.alisharoy.biz/Rajasthan/barmer-escorts.html]Escorts in Barmer[/url] | [url=http://www.alisharoy.biz/Rajasthan/alwar-escorts.html]Escorts in Alwar[/url] | [url=http://www.alisharoy.biz/Rajasthan/jodhpur-escorts.html]Escorts in Jodhpur[/url] | [url=http://www.alisharoy.biz/Rajasthan/jaisalmer-escorts.html]Escorts in Jaisalmer[/url] | [url=http://www.alisharoy.biz/Rajasthan/jaipur-escorts.html]Escorts in Jaipur[/url] | [url=http://www.alisharoy.biz/Rajasthan/bikaner-escorts.html]Escorts in Bikaner[/url] | [url=http://www.alisharoy.biz/Rajasthan/udaipur-escorts.html]Escorts in Udaipur[/url] | [url=http://www.alisharoy.biz/Chhattisgarh/bhilai-escorts.html]Escorts in Bhilai[/url] | [url=http://www.alisharoy.biz/Chhattisgarh/raipur-escorts.html]Escorts in Raipur[/url] | [url=http://www.alisharoy.biz/Gujarat/surat-escorts.html]Escorts in Surat[/url] | [url=http://www.alisharoy.biz/Gujarat/vadodara-escorts.html]Escorts in Vadodara[/url] | [url=http://www.alisharoy.biz/Gujarat/daman-escorts.html]Escorts in Daman[/url] | [url=http://www.alisharoy.biz/Gujarat/diu-escorts.html]Escorts in Diu[/url] | [url=http://www.alisharoy.biz/Uttra-Pradesh/allahabad-escorts.html]Escorts in Allahabad[/url] | [url=http://www.alisharoy.biz/Uttra-Pradesh/greater-noida-escorts.html]Escorts in Greater Noida[/url] | [url=http://www.alisharoy.biz/Uttra-Pradesh/kanpur-escorts.html]Escorts in Kanpur[/url] | [url=http://www.alisharoy.biz/Uttra-Pradesh/ghaziabad-escorts.html]Escorts in Ghaziabad[/url] | [url=http://www.alisharoy.biz/Uttra-Pradesh/lucknow-escorts.html]Escorts in Lucknow[/url] | [url=http://www.alisharoy.biz/Uttra-Pradesh/noida-escorts.html]Escorts in Noida[/url] | [url=http://www.alisharoy.biz/Uttra-Pradesh/varanasi-escorts.html]Escorts in Varanasi[/url] | [url=http://www.alisharoy.biz/Haryana/gurgaon-escorts.html]Escorts in Gurgaon[/url] | [url=http://www.alisharoy.biz/Madhya-Pradesh/jabalpur-escorts.html]Escorts in Jabalpur[/url] | [url=http://www.alisharoy.biz/Madhya-Pradesh/indore-escorts.html]Escorts in Indore[/url] | [url=http://www.alisharoy.biz/Madhya-Pradesh/gwalior-escorts.html]Escorts in Gwalior[/url] | [url=http://www.alisharoy.biz/Madhya-Pradesh/ratlam-escorts.html]Escorts in Ratlam[/url] | [url=http://www.alisharoy.biz/Madhya-Pradesh/ujjain-escorts.html]Escorts in Ujjain[/url] | [url=http://www.alisharoy.biz/Uttrakhand/dehradun-escorts.html]Escorts in Dehradun[/url] | [url=http://www.alisharoy.biz/Uttrakhand/nainital-escorts.html]Escorts in Nainital[/url] | [url=http://www.alisharoy.biz/Uttrakhand/haridwar-escorts.html]Escorts in Haridwar[/url] | [url=http://www.alisharoy.biz/Uttrakhand/mussoorie-escorts.html]Escorts in Mussoorie[/url] | [url=http://www.alisharoy.biz/Uttrakhand/rishikesh-escorts.html]Escorts in Rishikesh[/url] | [url=http://www.alisharoy.biz/Maharashtra/aurangabad-escorts.html]Escorts in Aurangabad[/url] | [url=http://www.alisharoy.biz/Maharashtra/nagpur-escorts.html]Escorts in Nagpur[/url] | [url=http://www.alisharoy.biz/Maharashtra/kolhapur-escorts.html]Escorts in Kolhapur[/url] | [url=http://www.alisharoy.biz/Maharashtra/nashik-escorts.html]Escorts in Nashik[/url] | [url=http://www.alisharoy.biz/Punjab/amritsar-escorts.html]Escorts in Amritsar[/url] | [url=http://www.alisharoy.biz/Punjab/jalandhar-escorts.html]Escorts in Jalandhar[/url] | [url=http://www.alisharoy.biz/Punjab/ludhiana-escorts.html]Escorts in Ludhiana[/url] | [url=http://www.alisharoy.biz/Punjab/pathankot-escorts.html]Escorts in Pathankot[/url] | [url=http://www.alisharoy.biz/Punjab/patiala-escorts.html]Escorts in Patiala[/url]
bookalisharoy · 14 weeks and 4 days ago
http://www.alisharoy.biz/Madhya-Pradesh/bhopal-escorts.html http://www.alisharoy.biz/Rajasthan/kota-escorts.html http://www.alisharoy.biz/Gujarat/rajkot-escorts.html http://www.alisharoy.biz/Andhra-Pradesh/visakhapatnam-escorts.html http://www.alisharoy.biz/Andhra-Pradesh/vijayawada-escorts.html http://www.alisharoy.biz/Bihar/aurangabad-escorts.html http://www.alisharoy.biz/Bihar/patna-escorts.html http://www.alisharoy.biz/Rajasthan/ajmer-escorts.html http://www.alisharoy.biz/Rajasthan/bikaner-escorts.html http://www.alisharoy.biz/Rajasthan/bhilwara-escorts.html http://www.alisharoy.biz/Rajasthan/barmer-escorts.html http://www.alisharoy.biz/Rajasthan/alwar-escorts.html http://www.alisharoy.biz/Rajasthan/jodhpur-escorts.html http://www.alisharoy.biz/Rajasthan/jaisalmer-escorts.html http://www.alisharoy.biz/Rajasthan/jaipur-escorts.html http://www.alisharoy.biz/Rajasthan/bikaner-escorts.html http://www.alisharoy.biz/Rajasthan/udaipur-escorts.html http://www.alisharoy.biz/Chhattisgarh/bhilai-escorts.html http://www.alisharoy.biz/Chhattisgarh/raipur-escorts.html http://www.alisharoy.biz/Gujarat/surat-escorts.html http://www.alisharoy.biz/Gujarat/vadodara-escorts.html http://www.alisharoy.biz/Gujarat/daman-escorts.html http://www.alisharoy.biz/Gujarat/diu-escorts.html http://www.alisharoy.biz/Uttra-Pradesh/allahabad-escorts.html http://www.alisharoy.biz/Uttra-Pradesh/greater-noida-escorts.html http://www.alisharoy.biz/Uttra-Pradesh/kanpur-escorts.html http://www.alisharoy.biz/Uttra-Pradesh/ghaziabad-escorts.html http://www.alisharoy.biz/Uttra-Pradesh/lucknow-escorts.html http://www.alisharoy.biz/Uttra-Pradesh/noida-escorts.html http://www.alisharoy.biz/Uttra-Pradesh/varanasi-escorts.html http://www.alisharoy.biz/Haryana/gurgaon-escorts.html http://www.alisharoy.biz/Madhya-Pradesh/jabalpur-escorts.html http://www.alisharoy.biz/Madhya-Pradesh/indore-escorts.html http://www.alisharoy.biz/Madhya-Pradesh/gwalior-escorts.html http://www.alisharoy.biz/Madhya-Pradesh/ratlam-escorts.html http://www.alisharoy.biz/Madhya-Pradesh/ujjain-escorts.html http://www.alisharoy.biz/Uttrakhand/dehradun-escorts.html http://www.alisharoy.biz/Uttrakhand/nainital-escorts.html http://www.alisharoy.biz/Uttrakhand/haridwar-escorts.html http://www.alisharoy.biz/Uttrakhand/mussoorie-escorts.html http://www.alisharoy.biz/Uttrakhand/rishikesh-escorts.html http://www.alisharoy.biz/Maharashtra/aurangabad-escorts.html http://www.alisharoy.biz/Maharashtra/nagpur-escorts.html http://www.alisharoy.biz/Maharashtra/kolhapur-escorts.html http://www.alisharoy.biz/Maharashtra/nashik-escorts.html http://www.alisharoy.biz/Punjab/amritsar-escorts.html http://www.alisharoy.biz/Punjab/jalandhar-escorts.html http://www.alisharoy.biz/Punjab/ludhiana-escorts.html http://www.alisharoy.biz/Punjab/pathankot-escorts.html http://www.alisharoy.biz/Punjab/patiala-escorts.html
bookalisharoy · 14 weeks and 4 days ago
Sheena Daas Goa escorts offer elite call girls and female Escort services at a cheap and affordable rate. We are indeed the most popular Goa Escorts Agency with various sizzling models available at our gallery section. http://www.goamodelescort.com https://www.goaescorts4u.net http://www.v2goaescortscom.com https://www.goacompanion.com http://www.hotjesicca.com http://www.goaescortshub.com http://www.arpitaagarwal.net http://www.indra-singh.com http://www.riya-mehra.in
sheenadaas34 · 14 weeks and 1 day ago
Bitdefender is a robust cybersecurity suite which caters to users of varied needs. It offers complete protection for assorted operating systems such as Windows, Mac, Android, and iOS. https://bitdefender-bitdefender.com/ | https://bitdefender-bitdefender.com/bitdefender-central/ | https://bitdefender-bitdefender.com/bitdefender-login/
zarawilson6578 · 11 weeks and 2 days ago
Bitdefender is a robust cybersecurity suite which caters to users of varied needs. It offers complete protection for assorted operating systems such as Windows, Mac, Android, and iOS. http://bitdefender-bitdefender.com/ | http://bitdefender-bitdefender.com/bitdefender-central/ | http://bitdefender-bitdefender.com/bitdefender-login/
zarawilson6578 · 11 weeks and 2 days ago
You might ask our call girls to have an overseas massage, too. So it’s a golden opportunity for you to take advantage of the agency of our escort as our escorts provide their customer with hot massage and sexual pleasure. All you have to do is book our escort service in Vidhyadhar Nagar Jaipur, so hurry up and make it happen now.
sdsdfsdf · 7 weeks and 6 days ago
I tried to implement the code but I am getting an error message. Could it be because I am not using the latest version of Samba. ||IT support at [url=https://myhomeworkdoer.com/] take my online class [/url].
elvisj · 3 weeks and 2 days ago
I tried to implement the code but I am getting an error message. Could it be because I am not using the latest version of Samba. ||IT support at take my online class .
elvisj · 3 weeks and 2 days ago

What do you think?

Any thoughts on this command? Does it work on your machine? Can you do the same thing with only 14 characters?

You must be signed in to comment.

What's this?

commandlinefu.com is the place to record those command-line gems that you return to again and again. That way others can gain from your CLI wisdom and you from theirs too. All commands can be commented on, discussed and voted up or down.

Share Your Commands



Stay in the loop…

Follow the Tweets.

Every new command is wrapped in a tweet and posted to Twitter. Following the stream is a great way of staying abreast of the latest commands. For the more discerning, there are Twitter accounts for commands that get a minimum of 3 and 10 votes - that way only the great commands get tweeted.

» http://twitter.com/commandlinefu
» http://twitter.com/commandlinefu3
» http://twitter.com/commandlinefu10

Subscribe to the feeds.

Use your favourite RSS aggregator to stay in touch with the latest commands. There are feeds mirroring the 3 Twitter streams as well as for virtually every other subset (users, tags, functions,…):

Subscribe to the feed for: