Share via

Get-ClientAccessRule doesn't seem to be available as a cmdlet today?

Anonymous
2024-05-20T13:28:59+00:00

Hi.
I'm trying to update a client access rule (as it is blocking a user), but when I try to list the rules I get...

PS C:> Connect-ExchangeOnline

PS C:> Get-ClientAccessRule

Get-ClientAccessRule : The term 'Get-ClientAccessRule' 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 again.

At line:1 char:1                                                                                                        + Get-ClientAccessRule                                                                                                  + ~~~~~~~~~~~~~~~~~~~~                                                                                                      + CategoryInfo          : ObjectNotFound: (Get-ClientAccessRule:String) [], CommandNotFoundException                    + FullyQualifiedErrorId : CommandNotFoundException

I have run the following before trying again, but get the same error...

PS C:> Uninstall-Module ExchangeOnlineManagement -AllVersions

PS C:> Install-Module ExchangeOnlineManagement

PS C:> Import-Module ExchangeOnlineManagement

Can I please check if I am missing something?
Set-ClientAccessRule, New-ClientAccessRule are also unavailable.

Microsoft 365 and Office | Install, redeem, activate | For business | Other

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

8 answers

Sort by: Most helpful
  1. Anonymous
    2024-06-05T15:28:45+00:00

    Hi, Shawn.

    Just to let you know that Microsoft had to switch the Client Access Rule cmdlets back on for the tenant.
    Once enabled, I was able to go through and delete off all the Client Access Rules.

    Kind regards

    Ian

    1 person found this answer helpful.
    0 comments No comments
  2. Anonymous
    2024-05-21T12:39:50+00:00

    Thank you, Bertrand.

    I know that Client Access Rules are being retired, so it probably isn't worth up-voting the thread.
    I'll log a ticket with Microsoft to see what can be done.
    I assume they will probably delete the active rules.

    Kind regards

    Ian

    0 comments No comments
  3. Anonymous
    2024-05-20T20:22:07+00:00

    Hello Ian Rogers2

    Thanks for the feedback. We thoroughly checked from out end and the (Get-ClientAccessRule) is under development. If you don't mind, could you

    please submit your comments and vote to make this thread superior content and help any other users in the community who may be facing a

    similar scenario to easily find this thread/post?

    Sincerely,

    Bertrand

    0 comments No comments
  4. Anonymous
    2024-05-20T18:45:43+00:00

    Thank you for the suggestion, Bertrand.

    The module appears to be listed...

    PS C:> Get-Module -ListAvailable

    Directory: C:\Program Files\WindowsPowerShell\Modules 
    

    ModuleType Version Name ExportedCommands


    Binary 2.0.2.182 AzureAD {Add-AzureADApplicationOwner, Get-AzureADApplication, Get-...

    Manifest 2.0.0.4 DSCParser {ConvertTo-DSCObject, ConvertFrom-DSCObject}

    Script 3.5.0 ExchangeOnlineManagement {Add-VivaModuleFeaturePolicy, Get-ConnectionInformation, G...

    Script 2.19.0 Microsoft.Graph.Applications {Add-MgApplicationKey, Add-MgApplicationPassword, Add-MgSe...

    .

    .

    .

    Also, other commands like Get-Mailbox and Get-OrganizationConfig seem to be working fine.
    It's as if the Client Access Rule commands have been removed.

    Kind regards

    Ian

    0 comments No comments
  5. Anonymous
    2024-05-20T15:56:27+00:00

    Hello Rogers Ian

    We welcome you to Microsoft community.

    It appears Get-ClientAccessRule isn't available in CMDLET. Did you run the Get-Module -ListAvailable to **** ensure that the Exchange Online Management

    module is installed and available on cloud. You can check the available modules and raise a query to PowerShell script community Microsoft PowerShell Community to investigate further.

    Hope this helps! Please feel free to reach out if you need any further assistance from our side, we will be happy to help you further.

    Sincerely,

    Bertrand

    0 comments No comments