What am I missing? How can I run get-qadcomputer and pass a username/password through it?
$secUN = convertto-securestring "xxx.com\Service-Account" -AsPlaintext -force $secPW = convertto-securestring "password!" -AsPlaintext -force $MyCreds = New-Object System.Management.Automation.PSCredential ($secUN, $secPW) connect-qadservice xxx.com =credential $MyCreds -ConnectionPassword $MyCreds get-qaduser -searchroot 'xxx.com/workstations/staging/' -sizelimit 0 | select-object name, description | export-csv c:\install\staging\staging.csv disconnect-qadservice
Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.
”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.