<ryanlsanders@gmail.com> wrote in message
news:1180555213.973716.171960@q69g2000hsb.googlegroups.com...
>I have this script (yes I am using some stuff from Quest)
>
> $VAR = 0
> while ($VAR -ne 10)
> {
> $VAR++
> New-QADUser -ParentContainer 'OU=Test,DC=domain,DC=local' -Name
> "Test User$var"
> }
>
>
> How can I prevent the script from showing a line for each user added.
> I just want a output line when the script has run.
>
You have a couple of options:
$results = New-QADUser -ParentContainer 'OU=Test,DC=domain,DC=local' -Name
"Test User$var"
if you want to keep the output of this cmdlet. If you don't want the output
at all then you could also do this:
New-QADUser -ParentContainer 'OU=Test,DC=domain,DC=local' -Name "Test
User$var" > $null
--
Keith