Is your scripting might equal to the challenge? Put the power in your hands â download PowerGUI today
New-Grid -Rows 5 {
New-Label "Please Enter Your Name"
New-TextBox -Name YourName -Row 1
New-Label "Sex:" -Row 2
New-StackPanel -Row 3 {
New-RadioButton -Content "Male" -IsChecked $true
New-RadioButton -Content "Female" -Column 1
}
New-Button "Done" -Row 4 -On_Click {
$yourName = $window | Get-ChildControl YourName
$sex = $window |
Get-ChildControl |
Where-Object {
$_ -is [Windows.Controls.RadioButton] -and
$_.IsChecked
} |
Foreach-Object {
$_.Content
}
if (-not $yourName.Text) {
[Windows.Messagebox]::show("Who are you?")
}
$global:information = New-Object Object |
Add-Member NoteProperty Name $yourName.Text -PassThru |
Add-Member NoteProperty Sex $sex -PassThru
$window.Close()
}
} -show
Is your scripting might equal to the challenge? Put the power in your hands â download PowerGUI today
New-Grid -Rows 5 {
New-Label "Please Enter Your Name"
New-TextBox -Name YourName -Row 1
New-Label "Sex:" -Row 2
New-StackPanel -Row 3 {
New-RadioButton -Content "Male" -IsChecked $true
New-RadioButton -Content "Female" -Column 1
}
New-Button "Done" -Row 4 -On_Click {
$yourName = $window | Get-ChildControl YourName
$sex = $window |
Get-ChildControl |
Where-Object {
$_ -is [Windows.Controls.RadioButton] -and
$_.IsChecked
} |
Foreach-Object {
$_.Content
}
if (-not $yourName.Text) {
[Windows.Messagebox]::show("Who are you?")
}
$global:information = New-Object Object |
Add-Member NoteProperty Name $yourName.Text -PassThru |
Add-Member NoteProperty Sex $sex -PassThru
$window.Close()
}
} -show
Tonight we are joined by PowerShell MVP Oisin Grehan to talk about managing SharePoint with PowerShell.
This segment is brought to you by Idera:
Is your scripting might equal to the challenge? Put the power in your hands â download PowerGUI today
Tips
PS > Get-Module -list | fl name, description
Tonight we are joined by PowerShell MVP Oisin Grehan to talk about managing SharePoint with PowerShell.
This segment is brought to you by Idera: