question

ParthaSarathy-0406 avatar image
0 Votes"
ParthaSarathy-0406 asked azure-cxp-api edited

Unable to set aduser wbemPath attribute using powershell

I am using "Get-ADUser -Identity hernant -properties wbempath| select name, @{name=”wbemPath”;expression={$_.wbemPath}}" to get the wbemPath value but unable to set the value using powershell. I tried with "set-aduser -identity user - wbempath value" but no luck. Can someone please help me to fix this issue?

windows-active-directory
· 3
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@ParthaSarathy-0406 Can you please provide the error you are getting ?

0 Votes 0 ·

Error message: Set-ADUser : A parameter cannot be found that matches parameter name 'wbempath'.

0 Votes 0 ·

No Issues, i found an solution set-aduser samaccountname -add @{wbempath="value"}

0 Votes 0 ·
ParthaSarathy-0406 avatar image
1 Vote"
ParthaSarathy-0406 answered SaurabhSharma-msft edited

No Issues, i found an solution set-aduser samaccountname -add @{wbempath="value"}

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@ParthaSarathy-0406 Good to hear and thanks for sharing your solution as this would help other community members.



Please do not forget to "Accept the answer"

0 Votes 0 ·
YoungYang-MSFT avatar image
1 Vote"
YoungYang-MSFT answered

Hi,If you solved the problem yourself, don’t forget to mark it as an answer so that other members of this forum can get help with similar problems.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.