Quantcast
Channel: Exchange Server 2013 - Administration, Monitoring, and Performance 论坛
Viewing all articles
Browse latest Browse all 8719

Exchange Power Shell Limited Commands

$
0
0

Hi,

I have a weird issue of Exchange Power Shell. I login to the server as administrator by Remote Desktop. I open the Exchange Power Shell. I can only run a small number of commands as compared to before.For example, I can run:

Get-Command -Noun Mailbox

but cannot run Set-DistributionGroup. PS returns the following message:

[PS] C:\Windows\system32> Set-DistributionGroup
Set-DistributionGroup : The term 'Set-DistributionGroup' 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:2
+  Set-DistributionGroup
+  ~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (Set-DistributionGroup:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

I tried to run Get-ManagementRoleAssignment too but get the same not-recognized message.

Also the returns of some commands seem to be limited too. For example, when I run

Get-Command -Noun Mailbox

I only get two commands:

[PS] C:\Windows\system32>Get-Command -Noun Mailbox

CommandType     Name                                               ModuleName
-----------     ----                                               ----------
Function        Get-Mailbox                                        myserver.mydomin.com
Function        Set-Mailbox                                   myserver.mydomin.com

When I run

Get-Mailbox

I got only one mailbox of a regular user (user1). It looks to me my login is messed up with user1.

What should I do to resolve this issue? Your help is very much appreciated!

Frank


Viewing all articles
Browse latest Browse all 8719

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>