我正在尝试创建一个PS窗体工具,该工具将查询远程计算机的Windows版本并在另一个文本框中返回结果
到目前为止,这是我所拥有的,我不希望它能起作用,但我是PSStudio的新手。
$Winver_Load={
#TODO: Initialize Form Controls here
}
$buttonQuery_Click={
Invoke-Command -Computername $SearchBox_TextChanged.Text -Scriptblock {
(Get-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion" -Name ReleaseID).ReleaseID | FT
}
}
$SearchBox_TextChanged={
#TODO: Place custom script here
}
$Results_TextChanged={
#TODO: Place custom script here
}