I would like to start PS Job using a CM cmdlet but I am unable to get it to work. I am trying to remove drivers from a driver package and start-job would work great but it never processes the command and not sure why. I am using the [Remove-CMDriverFromDriverPackage] command and feeding in the drivers like this;
Start-Job -InputObject $Drivers -ScriptBlock {Remove-CMDriverFromDriverPackage -DriverId $Input.CI_ID -DriverPackageName "ABC Driver Package" -Force}
Unfortunately it completes without error and the driver is not removed... The command by itself works fine so i know that is not the problem. I have tried added a working directory as maybe it's not starting in the ConfigMgr Directory?
Start-Job -InputObject $Drivers -ScriptBlock {Remove-CMDriverFromDriverPackage -DriverId $Input.CI_ID -DriverPackageName "ABC Driver Package" -Force} -WorkingDirectory "ABC:\"
... and nothing. Start-Job works great for all other commands just not ConfigMgr commands. I figure I am missing something so any help is appreciated.
PS: As a side note the "technet.microsoft.com" forums are being moved over here and I cannot locate the ConfigMgr section nor does the tags allow me to choose ConfigMgr or a powershell the is logical.