Forum Discussion
Dustin Deppe
Aug 09, 2017Copper Contributor
How to Unprotect a Document with PowerShell
If you can't currently sign out of the AIP client, what is the best way to unprotect a document with an administrative account using PowerShell? Will I have to log into the computer with an unlicense...
Dustin Deppe
Aug 09, 2017Copper Contributor
Yes, I have seen that. The problem is that I don't get prompted for credentials. It is using the currently logged on user's credentials. I was wondering if I could use different credentials while still logged in with the licensed user (that doesn't have permission to unprotect the file).
VasilMichev
Aug 09, 2017MVP
Well, we dont have currently an option to sign out, you have to manually clear the token cache from registry (
HKEY_CURRENT_USER\Software\Classes\Local Settings\Software\Microsoft\MSIPC\pscmdlet\server_GUID) and the filesystem (%LocalAppData%\Microsoft\MSIPC\pscmdlet\Auth). Then you should be prompted for credentials.