-
Notifications
You must be signed in to change notification settings - Fork 0
/
ServiceDesk.Menu.ps1
59 lines (57 loc) · 1.65 KB
/
ServiceDesk.Menu.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
function Show-Menu
{
param (
[string]$Title = 'Service Desk Menu'
)
cls
Write-Host "================ $Title ================"
Write-Host "[1] Create a new user"
Write-Host "[2] Create a new Distribution List"
Write-Host "[3] Create a new Shared Mailbox"
Write-Host "[4] Migrate On-Prem mailbox to Office365"
Write-Host "[5] Assign license to Office 365 mailbox"
Write-Host "[6] Synchronize Active Directory Servers"
Write-Host "[7] Disable User"
Write-Host "[Q] Quit Menu"
}
do
{
Show-Menu
$input = Read-Host "Select from the following"
switch ($input)
{
'1' {
cls
. "$PSScriptRoot\UserProvisioning.CreateUserAccount.ps1"
}
'2' {
cls
. "$PSScriptRoot\UserProvisioning.CreateDistributionList.ps1"
}
'3' {
cls
. "$PSScriptRoot\UserProvisioning.CreateSharedMailbox.ps1"
}
'4' {
cls
. "$PSScriptRoot\UserProvisioning.MigrateMailboxToO365.ps1"
}
'5' {
cls
. "$PSScriptRoot\UserProvisioning.AssignO365RegionAndLicense.ps1"
}
'6' {
cls
. "$PSScriptRoot\UserProvisioning.ForceAzureReplication.ps1"
}
'7' {
cls
. "$PSScriptRoot\UserProvisioning.DisableUserAccount.ps1"
}
'q' {
return
}
}
pause
}
until ($input -eq 'q')