I want to disable exchange mail account via script. This script will run in custom command.
I write a script like this.
"Disable-Mailbox -identity %mailNickname% -confirm:$false"
But i get an error message "The term disable-mailbox is not recognized as the name of a cmdlet ....."
I think that I must import a module that it is recognize this command.
Any one suggest something
Thanks in advanced.