I want to pass the output of this dsquery cmd:
dsquery user -samid SomeUser
output is:
"CN=SomeUser,OU=Users,OU=ThisCompany,DC=MYDOM,DC=com"[/color red]
to another instance of the dsquery command:
dsquery * "CN=SomeUser,OU=Users,OU=ThisCompany,DC=MYDOM,DC=com"[/color red] -scope base -attr *
Each of these commands works correctly from my command line; however, I can't seem to figure out how to pass the output of the first to the second so the second instance can output the info for that specific AD user.
Thanks for any help
Dave
dsquery user -samid SomeUser
output is:
"CN=SomeUser,OU=Users,OU=ThisCompany,DC=MYDOM,DC=com"[/color red]
to another instance of the dsquery command:
dsquery * "CN=SomeUser,OU=Users,OU=ThisCompany,DC=MYDOM,DC=com"[/color red] -scope base -attr *
Each of these commands works correctly from my command line; however, I can't seem to figure out how to pass the output of the first to the second so the second instance can output the info for that specific AD user.
Thanks for any help
Dave