Stop or Start (Restart) a Windows service from a Linux machine

net rpc -I ADDRESS -U USERNAME%PASSWORD service {stop|start} SVCNAME
Control (stop, start, restart) a Windows Service from a Linux machine which has the `net` command (provided by samba).
Sample Output
..
SVCNAME service is stopped.

4
By: f0rk
2010-06-29 17:12:36

What Others Think

Marvelous! Great post!
barrytrujillo · 750 weeks ago
Is it possible to enable/disable services using similar syntax? I don't know much about Linux commands but this is definitely helpful.
protix · 750 weeks ago
It says failed to start service, but it does start the service
hkbruvold · 747 weeks and 6 days ago
This is handy when the service in question is already enabled on the windows machine. Any idea of how to Enable a Disabled Service so you *can* start it?
ShadowCat8 · 682 weeks and 5 days ago
net rpc service list -I <ADDRESS> -U <USERNAME%PASSWORD> Get a list of running services
yellowspaced · 527 weeks ago
I know this is REALLY old, but man, after myriad attempts involving wmic and winexe, this solved my problem completely (and rather simply/elegantly.) Specifically useful for me to disable a service on a Windows app server while updating/refreshing a test/dev database on a Linux box. Thank you so much. (Note: on RHEL, the net command is part of samba-common-tools in yum.)
bakerzdosen · 293 weeks ago
Interesting PG SLOT promotions, don't miss out on what we have prepared for you. Modern ?????????online, attractive to play, with huge rewards within the game. playable on mobile
teerek1234 · 123 weeks and 4 days ago
Pgslot vs slotxo , what is the difference between these two game camps? What are some interesting games? Let's see. Collision from 2 online slot game camps. two famous camps Pounding on our websitePG-SLOT.GAME
teerek1234 · 123 weeks and 4 days ago
Pug Puppies for Sale Near Me pugs puppies for sale teacup pugs for sale pug puppies for sale by owner pug puppies ohio PUG PUPPY FOR SALE NEAR ME PUG PUPPIES FOR SALE pug puppies for sale in kentucky Pug Puppies for Sale Under $500 Near Me pug puppies for sale in texas pug puppies for sale $200 pugs for sale near me under $500 pugs for sale under $400 near me pugs for sale near me puppies for sale near me under $500 pug puppies for sale under $1,000 near me pug for sale pug puppies for sale under $300 Brindle Pug Pitbull Pug Mix Pugs for sale cheap Cheap pug affordable pug puppies for sale near me black pugs for sale near me White Pugs for sale pug dog for sale free pug puppies pug puppies for sale in my area mn pug breeders pug puppies indiana pugs for sale michigan PUG PUPPY ADOPTION Pug puppies for sale Pug puppies for sale near me Pug puppies near me Pug Puppies for Sale Under $500 Near Me Cute Pug Puppies Black pug puppies Black pug puppies for sale pug puppies for adoption black pug puppies for sale near me chihuahua pug mix puppies how much is a pug puppy teacup pug puppies baby pug puppies pictures of pug puppies pug puppies for sale in Ohio pug puppies price pug mix puppies teacup pug puppies for sale best food for pug puppy newborn pug puppies pug puppies craigslist pug puppies for sale craigslist adorable pug puppies how much does a pug puppy cost Pitbull pug mix puppies pug pit mix puppy pug puppies for sale $200 pug puppies for sale in NJ Pug puppies for sale in Wisconsin pug puppy cost pug puppy food royal canin pug puppy royal canin pug puppy food fawn pug puppy pug puppies for sale florida pug puppies for sale in Indiana pug puppies for sale in KY pug puppies for sale in NC pug dog puppy AKC Registered Pug Puppies For sale cheap pug puppies for sale near me cheap pug puppies for sale in California cheap pug puppies for sale in nj Black Pug Puppies for sale pugs puppies for sale pug puppies indiana Amazing! This blog looks just like my old one! It's on a completely different subject but it has pretty much the same layout and design. Wonderful choice of colors!
rahimhh21 · 114 weeks and 6 days ago
Pug Puppies for Sale Near Me pugs puppies for sale teacup pugs for sale pug puppies for sale by owner pug puppies ohio PUG PUPPY FOR SALE NEAR ME PUG PUPPIES FOR SALE pug puppies for sale in kentucky Pug Puppies for Sale Under $500 Near Me pug puppies for sale in texas pug puppies for sale $200 pugs for sale near me under $500 pugs for sale under $400 near me pugs for sale near me puppies for sale near me under $500 pug puppies for sale under $1,000 near me pug for sale pug puppies for sale under $300 Brindle Pug Pitbull Pug Mix Pugs for sale cheap Cheap pug affordable pug puppies for sale near me black pugs for sale near me White Pugs for sale pug dog for sale free pug puppies pug puppies for sale in my area mn pug breeders pug puppies indiana pugs for sale michigan PUG PUPPY ADOPTION Pug puppies for sale Pug puppies for sale near me Pug puppies near me Pug Puppies for Sale Under $500 Near Me USA USA USA USA USA USA Cute Pug Puppies Black pug puppies Black pug puppies for sale pug puppies for adoption black pug puppies for sale near me chihuahua pug mix puppies how much is a pug puppy teacup pug puppies baby pug puppies baby pug puppies for sale pictures of pug puppies pug puppies for sale in Ohio pug puppies price pug mix puppies teacup pug puppies for sale best food for pug puppy newborn pug puppies pug puppies craigslist pug puppies for sale craigslist adorable pug puppies how much does a pug puppy cost Pitbull pug mix puppies pug pit mix puppy pug puppies for sale $200 pug puppies for sale in NJ Pug puppies for sale in Wisconsin pug puppy cost pug puppy food royal canin pug puppy royal canin pug puppy food fawn pug puppy pug puppies for sale florida pug puppies for sale in Indiana pug puppies for sale in KY pug puppies for sale in NC pug dog puppy AKC Registered Pug Puppies For sale cheap pug puppies for sale near me cheap pug puppies for sale in California cheap pug puppies for sale in nj Black Pug Puppies for sale pugs puppies for sale
Perfecthomepugs · 106 weeks and 1 day ago
Perfect House Of Pugs acquired a passion for animals, and the Pug puppy in particular, at a young age since I grew up in a house with lots of dogs. It was a natural ability to know how to grow, nurture, and care for animals. I knew what the future held when I met my wife, who essentially had the same enthusiasm as I have. Being a breeder is more of a passion for me than a profession since I get to witness people's faces light up when they successfully adopt a pug puppy from our facility. It is not possible to find happiness in anything else. PLEASE VISIT OUR WEBSITE LINK BELLOW FOR MORE INFORMATION ABOUT PUG PUPPIES. PUG PUPPY ADOPTION Pug puppies for sale PUG PUPPIES FOR SALE NEAR ME PUG PUPPIES NEAR ME PUG PUPPIES FOR SALE UNDER 500 NEAR ME CUTE PUG PUPPIES BLACK PUG PUPPIES BLACK PUG PUPPIES FOR SALE PUG PUPPIES FOR ADOPTION BLACK PUG PUPPIES FOR SALE NEAR ME CHIHUAHUA PUG MIX PUPPIES TEACUP PUG PUPPIES HOW MUCH IS A PUG PUPPY BABY PUG PUPPIES PICTURES OF PUG PUPPIES PUG PUPPIES FOR SALE IN OHIO PUG PUPPIES FOR SALE IN PA PUG PUPPIES PRICE PUG MIX PUPPIES TEACUP PUG PUPPIES FOR SALE BABY PUG PUPPIES FOR SALE BEST FOOD FOR PUG PUPPY NEWBORN PUG PUPPIES PUG PUPPIES CRAIGSLIST PUG PUPPIES FOR SALE CRAIGSLIST WHITE PUG PUPPIES PUG PUPPIES FOR SALE IN MICHIGAN PUG PUPPIES FOR SALE UNDER 500 ADORABLE PUG PUPPIES BRINDLE PUG PUPPY HOW MUCH DOES A PUG PUPPY COST PITBULL PUG MIX PUPPIES PUGS FOR SALE NEAR ME PUG PUPPIES FOR SALE 200 PUG PUPPIES FOR SALE IN NJ PUG PUPPIES FOR SALE IN WISCONSIN PUG PUPPIES MICHIGAN PUG PUPPY COST MERLE PUG PUPPY FOR ADOPTION BEST PUG PUPPY FOOD ROYAL CANIN PUG PUPPY FOOD FAWN PUG PUPPY PUG PUPPIES FOR SALE FLORIDA PUG PUPPIES FOR SALE IN INDIANA PUG PUPPIES FOR SALE IN KY PUG PUPPIES FOR SALE IN NC PUG PUPPIES FOR SALE IN TEXAS PUG PUPPIES FOR SALE MN PUG DOG PUPPY AKC REGISTERED PUG PUPPIES FOR SALE PUG ALL BLACK CHEAP PUG PUPPIES FOR SALE NEAR ME PUGS PUPPIES FOR SALE CHEAP PUG PUPPIES FOR SALE IN CALIFORNIA MINIATURE PUG PUPPIES FOR SALE NEAR ME MINIATURE PUG PUPPIES FOR SALE CHEAP PUG PUPPIES FOR SALE IN NJ KNOWN FACTS ABOUT PUG PUPPIES ADOPT PUG PUPPIS RESCUE A PUG PUPPY PERFECT HOUSE OF PUGS PUG PUPPIES INSTAGRAM PINTEREST QUORA Google Page USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA
pugpuppies95 · 68 weeks and 2 days ago
Ij start canon is the website where you can find and download Canon printer drivers. Installing the correct drivers ensures that your printer functions properly with your computer or device. By visiting ij.start.canon and following the instructions provided, you can easily install the necessary drivers for your Canon printer. ij.start.canon is the website provided by Canon for users to set up, install, and manage their Canon printers and multifunction devices. It serves as a centralized platform to access various resources, tools, and services related to Canon printers.
alaxa09 · 20 weeks and 1 day ago
ij.start.canon is the website provided by Canon for users to set up, configure, and manage their Canon printers and multifunction devices. It's a dedicated website where users can find various resources and tools tailored to their Canon printer model. ij.start.canon is the website provided by Canon to assist users with the setup and management of their Canon printers and multifunction devices. It serves as a central hub for accessing various resources, tools, and services related to Canon printers.
alaxa09 · 20 weeks and 1 day ago
First, create a free account on Credit karma website or via their app in order to view your credit score. Using Credit karma to check your credit score is an easy process. Credit Karma provides this service so that you can take control of your finances and move in the direction of improvement. It's a simple, cost-free way to be informed about your credit status.
alaxa09 · 20 weeks and 1 day ago
Credit Karma is a website that offers free credit reports, credit monitoring, and tailored financial advice to assist customers in managing their money.Visit Credit karma webpage. A easy approach to check your credit score for free is to use Credit karma. You may obtain your credit score from TransUnion and Equifax, as well as credit monitoring and customized financial advice, by creating an account with Credit Karma. It's an easy-to-use yet practical tool for monitoring your credit health and comprehending the variables that influence your creditworthiness.
alaxa09 · 20 weeks and 1 day ago
Free access to your credit ratings from Equifax and TransUnion, which are updated on a regular basis, is offered by Credit Karma. This enables you to monitor your credit status without incurring any fees. Visit Credit karma website and select "Sign Up." Enter your name, email address, birthdate, Social Security number, and other personal data. A free online resource that provides credit reports, scores, and tailored financial advice is called Credit karma . It assists customers in keeping tabs on their credit situation and making wise financial choices.
alaxa09 · 20 weeks and 1 day ago
Credit reports, credit scores, and other financial tools and services are all freely accessible through Credit karma , a personal finance organization. It gives people information on the state of their credit and suggestions for enhancing their financial security. These are some of Credit Karma's salient characteristics. With the aim of managing and enhancing their financial well-being, Credit karma offers its members free access to financial tools, credit monitoring, credit ratings, and instructional materials.
alaxa09 · 20 weeks and 1 day ago
To access Account Hub, simply go to taxslayerpro login/my account and enter your username and password. From there, you can manage your business, apply for bank products, update your company's information, and much more. An all-inclusive tax preparation program is TaxSlayer Pro. There are several advantages to logging into your taxslayerpro login/my account , particularly if you are a tax professional or a person handling tax-related duties.
alaxa09 · 20 weeks and 1 day ago
TaxSlayer is a business that provides tax preparation services and software to corporations, tax professionals, and individuals. A secure login gateway, taxslayerpro login/my account , is provided by TaxSlayer Pro. Our platform is made to make tax preparation easier for you and to help you save time and energy. Put your trust in the taxslayerpro account for all of your filing requirements. You can have confidence knowing that your private data is secure. Create a more efficient tax preparation procedure by using taxslayerpro login/my account right now. TaxSlayer is a firm that provides tax preparation software. Their solutions are tailored for tax professionals, who can visit their website to access their taxslayerpro login/my account . This allows tax professionals to efficiently prepare and file tax returns for their clients.
alaxa09 · 20 weeks and 1 day ago
With a reputation for dependability and safety, American airlines book ticket offers dependable flight travel to locations all over the world. with a dedication to client satisfaction and a history of excellence. You can rely on American Airlines to get you there in comfort and on schedule whether you're traveling for work or pleasure. The term American airlines book ticket describes a platform or service that makes it easier to book tickets, particularly with American Airlines. This could be displayed as a welcome message on an airline's website, mobile application, or marketing collateral intended to assist passengers in making airline reservations. Its objective is to welcome visitors and inform them that they have come to the right place to start the American Airlines booking process.
alaxa09 · 20 weeks and 1 day ago
To conveniently book your flight, visit American airlines book ticket on your phone. Book your trip, choose a flight, enter passenger details, safely finish the payment process, and get a booking confirmation on your mobile right away. With a reputation for dependability and safety, American airlines book ticket offers flights to locations all over the world. We aim to make every flight experience remarkable, building on our tradition of excellence and dedication to client pleasure. You can depend on American Airlines to deliver you there in comfort and on schedule whether you're traveling for business or pleasure.
alaxa09 · 20 weeks and 1 day ago
You can quickly search for and reserve flights online using Priceline flights . Enter your trip information, evaluate airfares offered by different airlines, choose a flight, input passenger data, complete payment, and get an email confirming your reservation. Priceline flights flight booking platform is easy to use and offers low costs, making it a popular choice for travelers. You can easily locate and contrast different flight alternatives, apply preferences filters, and take advantage of sales and promos.
alaxa09 · 20 weeks and 1 day ago
expedia flights are programs that allow Dell hardware—such as laptops and printers—to interact with the operating system of your computer and guarantee proper operation." "Updating expedia flights is crucial for optimal performance, fixing bugs, and ensuring compatibility with the latest operating systems, enhancing the overall functionality of your Dell devices."
alaxa09 · 20 weeks and 1 day ago
Updating your Dell drivers improves your device's security, compatibility, and performance. It fixes problems, lessens system crashes, and enhances connectivity. Regular updates ensure that your hardware is running the most recent software. Update your Dell device to obtain the best possible performance. You may get Dell drivers from our website. For Dell PCs, laptops, printers, and other devices, we have drivers. It's easy to find and download the right drivers for your particular device with our website. With our most recent drivers, you can wave goodbye to compatibility problems and hello to better performance. Come see us right now to get the most out of your Dell gadget!"
alaxa09 · 20 weeks and 1 day ago
ticketmaster is a well-known international marketplace that makes it simple to purchase tickets for live entertainment events like concerts, sporting events, and more. The process of locating and organizing tickets bought through ticketmaster is made easier by our platform. You can quickly find and retrieve your event tickets from any location at any time. With Ticketmaster, bid adieu to anxiety surrounding tickets and hello to flawless event experiences.
alaxa09 · 20 weeks and 1 day ago
ticketmaster manages ticket sales, delivery, and customer service, offering a comprehensive service to both event organizers and attendees. They work in tandem with organizers and venues to optimize the ticketing process, guaranteeing seamless transactions and access control at events across the globe.
alaxa09 · 20 weeks and 1 day 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: