0 votes

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.

by (40 points)

1 Answer

0 votes
by (216k points)

Hello Erkan,

Starting from Adaxes 2013.1, you can access Exchange functions with Adaxes ADSI API. To disable the Exchange mailbox of the user, on which the Custom Command is executed, you can use the following script:


Related questions

0 votes
1 answer

Hi, we have replaced our local Exchange server with installation of Exchange Management Tools (EMT) installed directly on Adaxes server. And my question is: How can I force ... this is how 'Set External Senders' option looks in Adaxes config Thanks in advance

asked Apr 1 by KIT (910 points)
0 votes
1 answer

Or is there another solution to solve this?

asked Sep 15, 2022 by boris (430 points)
0 votes
1 answer

We are currently working on automating the property patterns. So far we were able to add all the needed properties to a Property Pattern via PowerShell script apart from the ... 't quite match the "should be" screenshot. Any help would be much appriciated.

asked Apr 30, 2020 by MichaelM (60 points)
0 votes
1 answer

Hi, In the SDK I find information on how to use Powershell to read and create scripts in custom commands and business rules, but I can not find the same for ... information like the embedded scripts for the report and custom columns? -- Morten A. Steien

asked Jul 27 by Morten A. Steien (300 points)
0 votes
1 answer

Occationally Service Desk staff need to clear a DNS record when a desktop has been reimaged but is keeping the same name as loses the ability to manage its original DNS ... running in ADAXES. Can I just install the applet on the ADAXES server using powershell?

asked Jan 17 by stevehalvorson (70 points)
3,164 questions
2,868 answers
505,924 users