1..1000 | ForEach-Object { "I am at $_" $isDown = [Windows.Input.Keyboard]::IsKeyDown([System.Windows.Input.Key]::LeftShift) if ($isDown) { Write-Warning"ABORTED!!" break }
Name : Rsat.ActiveDirectory.DS-LDS.Tools~~~~0.0.1.0 State : NotPresent DisplayName : RSAT: Active Directory Domain Services and Lightweight Directory Services Tools Description : Active Directory Domain Services (AD DS) and Active Directory Lightweight Directory Services (AD LDS) Tools include snap-ins and command-line tools for remotely managing AD DS and AD LDS on Windows Server. DownloadSize : 5230337 InstallSize : 17043386
$objRecordset.Open("SELECT System.ItemPathDisplay FROM SYSTEMINDEX WHERE Contains('""$FilterText""') AND SCOPE='$Path'", $objConnection) While (!$objRecordset.EOF ) { $objRecordset.Fields.Item("System.ItemPathDisplay").Value $null = $objRecordset.MoveNext() } }