remove mail user in mail contact in exchange management shell
Posted on 2009-06-29
first I 'd like to find a script to remove mail user in mail contact in exchange management shell.
And I have script to enable a user mailbox.
Enable-MailUser -Identity 'AD.LOCAL/MIS/test' -Alias 'test' -ExternalEmailAddress 'SMTP:firstname.lastname@example.org'
I'd like to put them together and run in exchange management shell.
My questions is when I run test.ps1 it showed me a error message, "The term 'enable_mail_yantest.psl' is not recognized as a cmdlet, function, operable program, or script file. Verify the term and try again."