Forum Discussion

Dustin Deppe's avatar
Dustin Deppe
Copper Contributor
Aug 09, 2017

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 unlicensed account so that the AIP module prompts for credentials?

    • Dustin Deppe's avatar
      Dustin Deppe
      Copper 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's avatar
        VasilMichev
        MVP

        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.

         

         

         

Resources