Posts

Showing posts from August, 2016

Starting/Stopping a thread of the SCCM executive

So it has been a while since I've posted. Here is something a bit nifty for you. Have you ever needed to programmatically start (or restart) an individual thread in SCCM and you don't want to mess with the Service Control GUI in the console? Well here is a nifty little script for you. You can also find the thread status in that same registry location. ----------------------------------- param( [string] $thread = "SMS_DMP_DOWNLOADER", [string] $action = "Start" ) $registryPath = "HKLM:\Software\Microsoft\SMS\Components\SMS_Executive\Threads\$thread" $registryName = "Requested Operation" #$key = Get-ItemProperty -Path $registryPath -Name $registryName Set-ItemProperty -Path $registryPath -Name $registryName -Value $action --------------------------------