我有一个庞大的核对箱子清单,我制造了我需要一个 but子来清除所有检查物品。 在这方面,我已经:
$btnResetGroups_Click = {
foreach ($chkbox in $chklistGroups)
{
$chkbox.ClearSelected() # I tried to do $chkbox.Checked = $false but it doesn t recognize checked as a property
}
# $chklistGroups.ClearSelected()
}
为什么不工作?
http://www.un.org。 该守则载有检查箱清单:
$formPTINewUserCreation_Load={
Import-Module ActiveDirectory
# read in the XML files
[xml]$NewUserXML = Get-Content -LiteralPath \papertransport.comfilesUserDocumentsmneisCodeXMLNewUserTest.xml
# popoulate the checklist with the groups from active directory
$AD_ResourceGroups = Get-ADGroup -filter * -SearchBase "OU=Resource Groups,OU=Groups,OU=Paper Transport,DC=papertransport,DC=com"
$AD_ResourceGroups | ForEach-Object { $chklistGroups.Items.Add($_.name) }
}