Set-CMClientSettings - Error : Could not find the ConfigMgr UI installation directory

Hi Fellas,

While trying to use the Set-CMClientSetting cmdlet, I am getting the Error "Could not find the ConfigMgr UI installation directory".

Any idea why this is happening ? below is the whole code .......btw it doesn't set the $Error variable so used try {} Catch {} to get the detailed error.

PS DEX:\>New-CMClientSetting -Name "Custom Client Device Settings" -Type Device
# above one does create the require client setting
#but when I try to customize it 
PS DEX:\> try { Set-CMClientSetting  -Name "Custom Client Device Settings" -PolicyPollingInterval 5  -EnableUserPolicyPo
lling $true -EnableUserPolicyOnInternet $false } catch { $_ | fl * -Force }


PSMessageDetails      :
Exception             : System.NotSupportedException: Could not find the ConfigMgr UI installation directory
                           at
                        Microsoft.ConfigurationManagement.AdminConsole.Common.UtilityClass.ReadSmsRootBinDirectory()
                           at Microsoft.ConfigurationManagement.Cmdlets.ClientSettings.Commands.GetClientSettingCommand
                        .LoadClientSettings(DialogType dialogType)
                           at Microsoft.ConfigurationManagement.Cmdlets.ClientSettings.Commands.SetClientSettingCommand
                        .SetIndividualClientSettingsProperties(IResultObject resultObject)
                           at Microsoft.ConfigurationManagement.Cmdlets.ClientSettings.Commands.SetClientSettingCommand
                        .ProcessRecord()
                           at System.Management.Automation.CommandProcessor.ProcessRecord()
TargetObject          :
CategoryInfo          : NotSpecified: (:) [Set-CMClientSetting], NotSupportedException
FullyQualifiedErrorId : System.NotSupportedException,Microsoft.ConfigurationManagement.Cmdlets.ClientSettings.Commands.
                        SetClientSettingCommand
ErrorDetails          :
InvocationInfo        : System.Management.Automation.InvocationInfo
ScriptStackTrace      : at <ScriptBlock>, <No file>: line 1
PipelineIterationInfo : {}

Just wondering is this the Right way to set the Client Settings ? As per the help it should be working. Tried few web searches but nothing

Using SCCM 2012 R2 Preview.

Thanks for your valuable time in ad

February 26th, 2014 11:16am

I have just tested your powershell commands and they both work ok. I would say the Problem is the CM12 R2 Version you are running. Can be that the CM12 R2 Preview Version is already expired. Why don't you install a CM12 R2 Trial Version instead?
Free Windows Admin Tool Kit Click here and download it now
February 27th, 2014 6:39am

Install CM12 R2 Evaluation version and test the same.

If the documented steps still don't work, and you've tried searching the knowledge base, then all I'd be able to suggest is CSS.

February 27th, 2014 6:52am

"Could not find the ConfigMgr UI installation directory" the error means the Admin Console Directory cannot be found. You need to check whether the console is installed properly. Try removing the current Console and reinstalling.
Free Windows Admin Tool Kit Click here and download it now
February 27th, 2014 8:59am

I have just tested your powershell commands and they both work ok. I would say the Problem is the CM12 R2 Version you are running. Can be that the CM12 R2 Preview Version is already expired. Why don't you install a CM12 R2 Trial Version instead?
  • Edited by dekac99 Thursday, February 27, 2014 11:35 AM
February 27th, 2014 2:35pm

I have just tested your powershell commands and they both work ok. I would say the Problem is the CM12 R2 Version you are running. Can be that the CM12 R2 Preview Version is already expired. Why don't you install a CM12 R2 Trial Version instead?
  • Edited by dekac99 Thursday, February 27, 2014 11:35 AM
  • Marked as answer by DexterPOSH 5 hours 43 minutes ago
Free Windows Admin Tool Kit Click here and download it now
February 27th, 2014 2:35pm

I have just tested your powershell commands and they both work ok. I would say the Problem is the CM12 R2 Version you are running. Can be that the CM12 R2 Preview Version is already expired. Why don't you install a CM12 R2 Trial Version instead?
  • Edited by dekac99 Thursday, February 27, 2014 11:35 AM
  • Marked as answer by DexterPOSH Saturday, March 01, 2014 6:30 AM
February 27th, 2014 2:35pm

Thanks Juke,

But the same error persists even after a re-install. I think it had to do something with the PowerShell module shipped with ConfigMgr 12 R2 Preview version. So downloaded the 2012 R2 Eval version and just did a re-install of the Console. Now the PowerShell module works but the UI is not able to connect to the Site Server throwing below error in the SmsAdminUI.log :

 'The Configuration Manager Administrator console could not connect to the Configuration Manager site database. Verify the version of the console is compatible with the version of the site server you are connecting to and then try to connect again.'

This is just a workaround and beats installing the CM12 Eval version from scratch again.

Thanks everyone for the suggestions.

{EDIT} - I voted each reply as he

Free Windows Admin Tool Kit Click here and download it now
March 1st, 2014 1:07am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics