Enable AutoProvision Policy with Powershell
Hello,
Are you working with Out of Band Management (OOB) in ConfigMgr / SCCM? Instead of waiting for SCCM policy to apply to a client, would you like to force the auto-provisioning policy to apply on-demand? If so, then you've come to the right place. Here is some Powershell code that will enable auto-provisioning on an SCCM client.
$OobSettings = [wmiclass]ā€¯root\ccm\policy\machine\actualconfig:CCM_OutOfBandManagementSettingsā€¯
$OobSettingsInstance = $OobSettings.CreateInstance()
$OobSettingsInstance.AutoProvision = $True
$OobSettingsInstance.SiteSettingsKey = 1
$OobSettingsInstance.Put()-Trevor Sullivan