• Home
  • Consulting
  • Contact Us
    • About this site
    • Contact Wayne
    • Media Room
    • Wayne’s Bio

SBSFAQ.COM

Supporting IT Pro's & MSP's since 2000

  • Blog
  • FAQs
  • Reviews
  • Downloads

Powershell Tip #1 – Handling Services on a Computer

May 31, 2011 by Wayne Small Leave a Comment

imageI’m doing more and more with Powershell and whilst I’m no programmer, I’m going to post a few tips that I find along the way that make it easy to deal with things.  Todays tip is about Services and how to handle them.  Here are a few that I’ve used today whilst onsite doing work for a client to deal with their servers service configurations.  We needed to stop and start a number of services.

So firstly we make sure we have the right service. 

I used Get-Service msexchangesa |fl which shows me as a Formatted List (the FL parameter) the information about this service as you can see below.

image

Then we can use the Stop-Service command, then a few other commands to do what we wanted to do and then Start-Service to start the service once more.  Simple when you know how Smile

Here’s the Microsoft command references for these services.

Set-Service

Start-Service

Stop-Service

Get-Service

Restart-Service

Share this:

  • Click to share on Facebook (Opens in new window)
  • Click to share on Twitter (Opens in new window)
  • Click to share on LinkedIn (Opens in new window)
  • Click to share on Reddit (Opens in new window)
  • Click to print (Opens in new window)

Filed Under: Blog Tagged With: Powershell, Powershell Tips, Programming, SBS 2011, SBS 2011 Essentials, SBS 2011 Standard, Scripts, Windows Server 2008 R2

About The Author

Wayne has been working with Microsoft Server products in the SMB market for over 20 years. He has a passion for technology and been a Microsoft MVP for over 15 years. Read More…

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Search

Connect Online With Us

  • Facebook
  • Twitter

Reviews

Splashtop – Cost Effective Remote Control Software

September 22, 2017 By Wayne Small 2 Comments

Western Digital DL4100 NAS

March 3, 2015 By Wayne Small Leave a Comment

SBS 2011 Configuring Certification Guide (70-169)

August 7, 2012 By Wayne Small 4 Comments

Site News

Exchange Bug Stops Mail Delivery in 2022

January 2, 2022

Huge bug found in Intel CPU that could permit hackers to steal your data

January 4, 2018

Recent Posts

  • New Teams Preview – Missing ability to add tabs to a Team
  • New Teams Preview – Missing Create a Team
  • World Backup Day – What does it mean to Australians?
  • New Teams update finally allows easy cross organisation switching
  • MS Exchange Zero Day and RemotePowerShell Disabling on Admin accounts

Tags

Antivirus Backup Business Focus Cloud Computing Community Conferences Disaster Recovery Exchange 2010 Exchange Server Future Products Hyper-V Installation Microsoft Migration Patches Personal Rants SBS 4.5 SBS 2000 SBS 2000 SP1 SBS 2003 SBS 2003 Premium SBS 2003 R2 SBS 2003 R2 Premium SBS 2003 R2 Standard SBS 2003 SP1 Premium SBS 2003 SP1 Standard SBS 2003 Standard SBS 2008 SBS 2008 R2 SBS 2011 SBS 2011 Essentials SBS 2011 Standard Security Service Packs ShadowProtect Software Software I use StorageCraft Training TrendMicro Troubleshooting Virtualisation Windows Server 2012 Windows Server 2012 Essentials

Terms of Use

Privacy Policy

Copyright © 2023 · Magazine Pro Theme on Genesis Framework · WordPress · Log in