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.comWhen 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