Cannot run "Connect-AipService"

AT 5 Reputation points
2024-04-26T15:27:49.8766667+00:00

This is the error I get after runinng these commands

Update-Module -Name AIPService

PS /home/aggie> (Get-Module AIPService –ListAvailable).Version

Major Minor Build Revision


3 0 0 1

The following error I get when I run "Connect-AipService" is

Connect-AipService

Connect-AipService: The 'Connect-AipService' command was found in the module 'AIPService', but the module could not be loaded due to the following error: [Could not load file or assembly 'System.Web.Services, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. The system cannot find the file specified.

]

For more information, run 'Import-Module AIPService'.

I run import module aipservice then get

PS /home/aggie> Import-Module AIPService

Import-Module: Could not load file or assembly 'System.Web.Services, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. The system cannot find the file specified.

I've done (Get-Module AIPService –ListAvailable).Version , Update-Module -Name AIPService and nothing happens

Azure Information Protection
Azure Information Protection
An Azure service that is used to control and help secure email, documents, and sensitive data that are shared outside the company.
560 questions
Windows for business Windows Server User experience PowerShell
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,930 questions
Microsoft Security Microsoft Purview
{count} vote

1 answer

Sort by: Most helpful
  1. Vasil Michev 119.5K Reputation points MVP Volunteer Moderator
    2024-04-26T16:01:37.41+00:00

    Are you installing this on PowerShell 7+? As noted in the official documentation, this module is only supported on Windows devices/Windows PowerShell: https://learn.microsoft.com/en-us/azure/information-protection/install-powershell


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.