TechEd Australia 2013 - PowerShell for ConfigMgr 2012 SP1 - Demo 1
Demo 1: Three Minute Intro to PowerShell
Display all Bluetooth services
Get-Service –DisplayName “*Bluetooth*”
Store all services into a variable
$AllServices = Get-Service
Display a count of all the systems services
$AllServices.Count
Display a count of all the Bluetooth services
$BluetoothServices = Get-Service –DisplayName “*Bluetooth*”
$BluetoothServices.Count
Stop all Bluetooth services
$BluetoothServices | Stop-Service
Start all Bluetooth services
$BluetoothServices | Start-Services