I have a strange issue with PowerShell and the AIP module (Azure Information Protection), and I don’t find the solution.
I have a service account that I use to encrypt documents on the fly that are uploaded to an FTP server installed on Windows.
For this I use a token created on Azure which allows not to authenticate each time I launch the script.
The scenario is as follows:
- The service for FTP is launched with the service account
- A user uploads a file to the FTP
- The FTP server automatically launches a script and encrypts the document
This method works for two servers, so I can validate that my script works perfectly. However, for another server, I get this error:
Get-AIPFileStatus: The term ‘Get-AIPFileStatus’ is not recognized as the name of a cmdlet, function, script file, or
operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try
However, when I start the script manually with this account, I have no problem. The error only occurs when the script is automatically launched by the FTP server.
I cannot understand why it does not recognize the command when it is clearly installed via the AIP module.
Someone have a miracle solution please ?
Thanks in advance.