You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SYNOPSIS
Unregisters object identifier (OID) information from local computer, Active Directory or both sources.
-------------------------- Example 1 --------------------------
PS C:\> Unregister-ObjectIdentifier -Value "Remote Desktop Authentication" -UseActiveDirectory
Unregisters a custom OID that was previously registered in Active Directory.
Could not get UnRegister-ObjectIdentifier to work; unclear how to actually switch "from local computer, Active Directory or both sources." as stated?
Steps taken:
Create OID in AD using Register-ObjectIdentifier function:
Now try and delete this OID using UnRegister-ObjectIdentifier function:
From example it seems -Value argument should take the -FriendlyName argument we used to create the OID:
Unregister-ObjectIdentifier : Cannot process argument transformation on parameter 'Value'. Cannot convert the "Contoso
Pharmaceuticals smart card policy" value of type "System.String" to type "SysadminsLV.PKI.Cryptography.Oid2".
At line:1 char:36
For troubleshoot tried using the OID value instead of friendlyname for -Value argument (tried with double quotes, single quotes and no quotes, always same result):
Unregister-ObjectIdentifier : Cannot process argument transformation on parameter 'Value'. Cannot convert the
"1.3.6.1.4.1.50095.1.1.1.1.0" value of type "System.String" to type "SysadminsLV.PKI.Cryptography.Oid2".
At line:1 char:36
PS C:\Windows\system32> get-help Unregister-ObjectIdentifier -Examples
NAME
Unregister-ObjectIdentifier
SYNOPSIS
Unregisters object identifier (OID) information from local computer, Active Directory or both sources.
Could not get UnRegister-ObjectIdentifier to work; unclear how to actually switch "from local computer, Active Directory or both sources." as stated?
Steps taken:
Register-ObjectIdentifier -FriendlyName "Contoso Pharmaceuticals smart card policy" -Value "1.3.6.1.4.1.50095.1.1.1.1.0" -OidGroup IssuancePolicy -CPSLocation "http://www.contoso.com/cps/documents/scpolicy.pdf" -UseActiveDirectory
From example it seems -Value argument should take the -FriendlyName argument we used to create the OID:
PS C:\Windows\system32> Unregister-ObjectIdentifier -Value "Contoso Pharmaceuticals smart card policy" -UseActiveDirectory
Unregister-ObjectIdentifier : Cannot process argument transformation on parameter 'Value'. Cannot convert the "Contoso
Pharmaceuticals smart card policy" value of type "System.String" to type "SysadminsLV.PKI.Cryptography.Oid2".
At line:1 char:36
ception
PS C:\Windows\system32> Unregister-ObjectIdentifier -Value 1.3.6.1.4.1.50095.1.1.1.1.0 -UseActiveDirectory
Unregister-ObjectIdentifier : Cannot process argument transformation on parameter 'Value'. Cannot convert the
"1.3.6.1.4.1.50095.1.1.1.1.0" value of type "System.String" to type "SysadminsLV.PKI.Cryptography.Oid2".
At line:1 char:36
ception
The text was updated successfully, but these errors were encountered: