#Requires -Version 3 #Requires -module ActiveDirectory #alan dot Kaplan at VA dot GOV, 12/27/13 function Get-ClipboardText { #http://www.nivot.org/post/2009/10/14/PowerShell20GettingAndSettingTextToAndFromTheClipboard $command = { add-type -an system.windows.forms [System.Windows.Forms.Clipboard]::GetText() } powershell -sta -noprofile -command $command } $(Get-ClipBoardText).split("", [StringSplitOptions]'RemoveEmptyEntries') | Out-GridView -Title "Review Computer Accounts to Delete" -PassThru | Get-ADComputer| Remove-ADComputer