-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMIM.07.Create-MIMPortalandService.ps1
More file actions
58 lines (48 loc) · 1.84 KB
/
MIM.07.Create-MIMPortalandService.ps1
File metadata and controls
58 lines (48 loc) · 1.84 KB
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
Import-Module .\FormActions.psm1
Import-Module .\Get-FileName.psm1
.\LoadDialog.ps1 -XamlPath ‘.\Forms\Create-MIMServiceandPortal.xaml’
#EVENT Handlers
$btnExit.add_Click({
$xamGUI.Close()
})
$btnClear.add_click({
$txtDBAilais.Clear()
$txtLogFile.Clear()
$txtMSI.Clear()
$txtServiceAccountEmail.Clear()
$txtSPName.Clear()
$txtSyncServer.Clear()
$txtSyncServiceAccount.Clear()
$txtSSPRRegistrationUrl.Clear()
$txtUrl.Clear()
})
$btnSelectMSI.add_click({
$txtMSI.Text = Get-FileName "C:\"
})
$btnSelectLogFile.add_click({
$txtLogFile.Text = Get-FileName "C:\"
})
$btnConfigure.add_click({
if($rbNo.IsChecked)
{
[int]$existingDatabase = 0
}
else
{
[int]$existingDatabase = 1
}
.\Deployment\Create-MIMPortalandService.ps1 -urlIn $txtUrl.Text `
-serviceAccountEmailIn $txtServiceAccountEmail.Text `
-mailServerIn $txtEmailServer.Text `
-syncserviceAcctIn $txtSyncServiceAccount.Text `
-syncServerIn $txtSyncServer.Text `
-registrationPortalIn $txtSSPRRegistrationUrl.Text `
-LogFileIn $txtLogFile.Text `
-MsiIn $txtMSI.Text `
-DBAliasIn $txtDBAlias.Text `
-existingDatabaseIn $existingDatabase | Out-Host
})
#Launch the window
$xamGUI.Title = "Create Portal and Service"
$xamGUI.ShowDialog() | out-null