Thought i should start sharing some tools in my little tool box, this is my Exchange Start-Services script.
In my Lab at home the Virtual Machines are running minimal specs so i am always encountering issues with automatic Exchange services not starting at boot up so i came up a little script to solve that issue. The script can be manipulated to be used for any service or services.
Just 4 lines of ‘code’ and that’s it, script can be run 30 minutes after server bootup as a scheduled task or on demand. Download script here
Syntax:
.\StartServices.ps1
Breakdown of script below
Script in action:
Script:
#Starting Exchange Services #Hannel Hazeley #hhazeley@outlook.com #Version 1.0 $list = (Get-WmiObject Win32_Service | ?{$_.Startmode -eq "Auto" -and $_.State -eq "Stopped" -and $_.Name -like "MSExchange*"}).name $list $list | Start-Service $list | Get-Service
—————————————————————-
One of numerous videos in my Two-Click (2C) series
2C YouTube Playlist: http://www.youtube.com/playlist?list=PLURKD77y7MK9f3vrr7SnQE_1L2QjzdMUM
Other 2C Article: http://hazelnest.com/blog/blog/tag/2c/
Other PowerShell Articles: http://hazelnest.com/blog/blog/tag/PowerShell/