Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tools4everbv/helloid-task-sa-target-exchangeonpremises-roommailboxcreate
Exchange On Premises - Room Mailbox create
https://github.com/tools4everbv/helloid-task-sa-target-exchangeonpremises-roommailboxcreate
delegated-form exchange-on-premises powershell product service-automation task
Last synced: about 1 month ago
JSON representation
Exchange On Premises - Room Mailbox create
- Host: GitHub
- URL: https://github.com/tools4everbv/helloid-task-sa-target-exchangeonpremises-roommailboxcreate
- Owner: Tools4everBV
- Created: 2023-10-03T13:00:28.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-01-15T12:59:15.000Z (11 months ago)
- Last Synced: 2024-01-15T16:41:35.764Z (11 months ago)
- Topics: delegated-form, exchange-on-premises, powershell, product, service-automation, task
- Language: PowerShell
- Homepage:
- Size: 82 KB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# HelloID-Task-SA-Target-ExchangeOnPremises-RoomMailboxCreate
## Prerequisites
Before using this snippet, verify you've met with the following requirements:- [ ] User defined variables: `$ExchangeAdminUsername`, `$ExchangeAdminPassword` and `$ExchangeConnectionUri` created in your HelloID portal. [See also Custom Variables](https://docs.helloid.com/en/variables/custom-variables.html)
## Description
This code snippet executes the following tasks:
1. Define a hash table `$formObject`. The keys of the hash table represent the properties of the `New-Mailbox` cmdlet, while the values represent the values entered in the form.
> To view an example of the form output, please refer to the JSON code pasted below.
```json
{
"RoomName": "RoomMailbox1",
"PrimarySmtpAddress": "[email protected]",
"OrganizationalUnit": "connectors.com/Users",
"ResourceCapacity": 2,
"Password": "Xqdc3z#412ssg!h!dk3"
}
```> :exclamation: It is important to note that the names of your form fields might differ. Ensure that the `$formObject` hashtable is appropriately adjusted to match your form fields.
> More about the `New-Mailbox` Cmdlet: [See the Microsoft Docs page](https://learn.microsoft.com/en-us/powershell/module/exchange/new-mailbox?view=exchange-ps)1. Constructs a PowerShell credential object from the supplied administrative username and password
2. Connects with the credentials to the Exchange on premises environment by means of the `New-PSSession` cmdlet
3. Calls the `New-Mailbox` cmdlet with the switch `-Room` to create the new RoomMailbox
4. Disconnects from the Exchange session by means of the `Remove-PsSession` cmdlet