-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMIM.05.Create-SPFarm.ps1
More file actions
30 lines (24 loc) · 922 Bytes
/
MIM.05.Create-SPFarm.ps1
File metadata and controls
30 lines (24 loc) · 922 Bytes
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
Import-Module .\FormActions.psm1
Import-Module .\Get-FileName.psm1
.\LoadDialog.ps1 -XamlPath ‘.\Forms\Create-SPFarm.xaml’
#EVENT Handlers
$btnExit.add_Click({
$xamGUI.Close()
})
$btnClear.add_click({
$txtInstance.Clear()
$txtDatabaseServer.Clear()
$passPassPrase.clear()
$txtSPServiceAccount.Clear()
$txtInstallAccount.Clear()
})
$btnConfigure.add_click({
.\Deployment\Create-SPFarm.ps1 -InstanceIn $txtInstance.Text `
-DatabaseServerIn $txtDatabaseServer.Text `
-PassPhraseIn $passPassPhrase.Password.ToString() `
-InstallAccountIn $txtInstallAccount.Text `
-SPServiceAccountIn $txtSPServiceAccount.Text | Out-Host
})
#Launch the window
$xamGUI.Title = "Create SharePoint Farm"
$xamGUI.ShowDialog() | out-null