Episode 9 of PowerScripting podcast is out. It’s been a while since I mentioned it on the blog – but it is really a great way to get synced on the latest developments in the PowerShell community.
See the PowerScripting web site for information on what’s in the podcast. It does include a few topics related to this blog: namely, the PowerShell namespaces debate and Jonathan’s story on using AD cmdlets to copy user accounts to another domain (could be useful when creating test environments).
Tags: PowerShell, podcast
Subscribe by email




Hi Dmitry,
Thanks for mentioning the podcast again. It really helps to get the word out. I have a question for you. Would it be possible for New-QADUser to attempt to map it’s parameters from matching properties of the input object? This would allow me to do something like:
Connect-QADService -service ‘domain.dev’
$users – GetQADUser -SearchRoot ‘OU=Users,DC=domain,DC=dev’
Disconnect-QADService
Connect-QADService -service ‘domain.tst’
$users | new-qaduser
instead of having to do something like:
Connect-QADService -service ‘domain.dev’
$users – GetQADUser -SearchRoot ‘OU=Users,DC=domain,DC=dev’
Disconnect-QADService
Connect-QADService -service ‘domain.tst’
$users | %{new-qaduser -name $_.Name -ParentContainer ‘OU=Users,DC=domain,DC=tst’ -SamAccountName $_.LogonName -description $_.description -displayname $_.DisplayName -firstName $_.firstname -lastname $_.lastname -UserPrincipalName $_.name}
Thank you for all of your work on this project the Quest AD cmdlets are a huge help to me.
Jonathan
Jonathan,
I think it is a great feature request. We are finalizing 1.0 now and will then start working on the feature set for 1.1 so requests like this one come at a good time!
To your question – this actually can be done already with a PowerShell script. If you install PowerGUI and import the Active Directory pack from PowerGUI library, check out the “Create from CSV file” action on the Users node – it looks like it does what you need. You can see the code if you look the action’s properties.
Dmitry