• No results found

Exchange server

3.10.1. Script Action: List mailbox databases (Exchange 2007)

Function

Retrieve one or more mailbox database objects from a storage group, server or organization. The action returns a table with rows for each mailbox database.

Properties

Property Name Description Typical setting Remarks

Server Optional value. The Server

parameter specifies the name of the server from which to retrieve mailbox database information. If this parameter is specified, the command will retrieve information about all of the mailbox databases on that server.Use the Fully qualified domain name or the NetBIOS name.

'servername.tools4ever.com', 'SERVERNAME'

Storage group Optional value. The 'Storage group' parameter specifies the name of the storage group from which to retrieve mailbox database information. If this parameter is specified, the command will retrieve information about all of the mailbox databases on the storage group.

'EXCHSERVER\First Storage Group', 'First Storage Group'

Domain controller Optional value. The name of the domain controller that retrieves data from Active Directory. Use the fully qualified domain name (FQDN) of the domain controller you want to use.

EXCHSERVER.tools4ever.com

Identity Optional value. The Identity parameter identifies the mailbox database.

'EXCHSERVER\First Storage Group\Mailbox Database', 'EXCHSERVER\Mailbox Database', 'First Storage Group\Mailbox Database'

176

Output Properties

When the action is run, the actual value of the properties are determined at run time, and the action is executed using these values. Generally these values are not stored for later usage.

By default the following properties are saved in a variable for usage in other scripts. Properties that are exported are shown with an image with a green arrow in the properties list.

Property Description Default variable

name Remarks

DatabaseTable The resulting table with columns for Name,

StorageGroupName, Server,

DistinguishedName, Identity and

Description for each mailbox database.

%DatabaseTable%

DatabaseTableAdvanced The resulting table with many columns for each mailbox database.

The columns available are:

Name, StorageGroupName, Server, DistinguishedName, Identity, Description, Organization, ExchangeLegacyDN, EdbFilePath, PublicFolderDatabase, AdministrativeGroup, IssueWarningQuota, ProhibitSendReceiveQuota, ProhibitSendQuota, WhenChanged, WhenCreated, ExchangeVersion.

3.11.

Out-Of-Office

3.11.1. Script Action: Get Out-Of-Office info (Exchange 2007)

Function

Retrieve the Out Of Office settings of a mailbox on Exchange 2007. The action returns all properties of the Out Of Office settings dialog in Outlook 2007.

This action can only work properly with Exchange Web Services. Learn how to use this action by reading topic Using the

Exchange Web Services with UMRA on page Fout! Bladwijzer niet gedefinieerd.

177

Property Name Description Typical setting Remarks

Session ID The Powershell session id. You dan create a powershell session ID by adding the 'Setup Powershell Agent server session' to your script. Do not forget to release the Powershell session with the 'Release Powershell Agent server session' action

%PowershellAgentSessionId% In the Action tree, navigate to Powershell - Agent service session - Setup Powershell Agent server session.

Email address The email address of the mailbox on

the Exchange server [email protected]

Output Properties

When the action is run, the actual value of the properties are determined at run time, and the action is executed using these values. Generally these values are not stored for later usage.

By default the following properties are saved in a variable for usage in other scripts. Properties that are exported are shown with an image with a green arrow in the properties list.

Property Description Default variable

name Remarks

Out Of

Office state The Out Of Office state of the specified mailbox. Possible values are: Disabled, Enabled, Scheduled

Out Of Office internal reply

The Out Of Office internal reply text of the specified mailbox. Note that this text is created with HTML to keep its formatting.

Out Of Office scheduled start date

The Out Of Office scheduled start date of the specified mailbox.

Out Of Office scheduled end date

The Out Of Office scheduled end date of the specified mailbox.

Out Of Office external reply state

The Out Of Office external reply state of the specified mailbox. Possible values are: None, Known, All.

When 'None' is specified, only the contacts within your organization are receiving the message. If 'Known' is specified, the external text is only send to the users which are in your 'Contacts' folder in Outlook.

Out Of Office external reply text

The Out Of Office external reply text of the specified mailbox. Note that this text is created with HTML to keep its formatting.

178

3.11.2. Script Action: Set Out-Of-Office info (Exchange 2007)

Function

Set the Out Of Office settings of a mailbox on Exchange 2007. The action sets all properties of the Out Of Office settings dialog in Outlook 2007.

This action can only work properly with Exchange Web Services. Learn how to use this action by reading topic Using the

Exchange Web Services with UMRA on page Fout! Bladwijzer niet gedefinieerd.

Properties

Property Name Description Typical setting Remarks

Session ID The Powershell session id. You dan create a

powershell session ID by adding the 'Setup Powershell Agent server session' to your script. Do not forget to release the Powershell session with the 'Release Powershell Agent server session' action

%PowershellAgentSessionId% In the Action tree, navigate to Powershell - Agent service session - Setup Powershell Agent server session.

Email address The email address of the mailbox on the Exchange server

[email protected]

Out Of Office state The Out Of Office state of the specified mailbox. Possible values are: Disabled, Enabled, Scheduled

Out Of Office

internal reply The Out Of Office internal reply text of the specified mailbox. Note that this text is created with HTML to keep its formatting.

Outlook will accept text that has no HTML format, previous formatting will be erased though!

Out Of Office

scheduled start date The Out Of Office scheduled start date of the specified mailbox.

Note that the end date cannot be before the scheduled start date. No error will occur, but the End Date, Start Date and Out Of Office State are not set!

Out Of Office

scheduled end date The Out Of Office scheduled end date of the specified mailbox.

Note that the end date cannot be before the scheduled start date. No error will occur, but the End Date, Start Date and Out Of Office State are not set!

179

Out Of Office

external reply state The Out Of Office external reply state of the specified mailbox. Possible values are: None, Known, All. Out Of Office

external reply text The Out Of Office external reply text of the specified mailbox. Note that this text is created with HTML to keep its formatting.

Outlook will accept text that has no HTML format, previous formatting will be erased.

180