Forum Discussion
Is Get-PrivacyManagementRule a valid powershell command ?
HI
I dont know about this. Can you share where did you find this cmdlet? maybe it's not a native Microsoft cmdlet and its related to a third-party module.
if you have the cmdlet in your PC , try to run get-command Get-PrivacyManagementRule
- prakharathreyaFeb 09, 2022Copper Contributor
farismalaeb I havent installed any 3rd party module.
See the output of that command below:
PS C:\Users\prakharathreya\Desktop> Get-Command Get-PrivacyManagementRule
CommandType Name Version Source
----------- ---- ------- ------ ----------- ---- ------- ----------------- ---- ------- ------
Function Get-PrivacyManagementRule 1.0 tmp_atkepqnj.kt1- farismalaebFeb 09, 2022Steel ContributorThis is because the command has a remote session to a service
try the following command
Get-PSSession- prakharathreyaFeb 09, 2022Copper Contributor
It's the ExchangeOnline session
Id Name ComputerName ComputerType State ConfigurationName Availability
-- ---- ------------ ------------ ----- ----------------- ------------
5 ExchangeOnli... nam10b.ps.co... RemoteMachine Opened Microsoft.Exchange Available