I ran into this issue in VB.NET code used to remove an ADS user from certain groups. One of the groups distinguishedName contained a '/' in the name (path).
For example LDAP://CN=HRUser,OU=H/R,DC=fabrikam,DC=com where the DN CN=HRUser,OU=H/R,DC=fabrikam,DC=com contains the forward slash (OU=H/R). This triggered a System.Runtime.InteropServices.COMException error 0x80005000 when executing the DirectoryEntry Remove method.
To resolve this, use an escape character in the DN. So once I had obtained the DN as a string, I then used strGroupDN = Replace(strGroupDN, "/", "\/") to get the escape '\' in before the '/'. This resolved the error.
Subscribe to:
Post Comments (Atom)
New beginner's guide to PowerShell on my GitHub page
I created a beginner's guide to PowerShell here: https://github.com/aamjohns/Powershell_Guide/blob/main/README.md I hope it helps someo...
-
I encountered this error using Office 2016 (32-bit) on Windows 7 x64. Logged on to the system as a User, I opened Control Panel>Mail...
-
Downloads MSI-Installer or Zip of Executable Instruction Manual PDF Description I started creating instructions similar to: Acc...
-
*****Transcode 360 will not work with MyMovies running on 64-bit operating systems. If you are using something like Vista Ultimate 64-bit yo...
No comments:
Post a Comment