Microsoft
Software
Hardware
Network
Question : dsquery / dsget - different results, not able to pass results to dsget
Hi there,
it's really mistery - ok normally I used the follwoing command to get all useraccounts starting with an u:
dsquery user -samid u* -limit 0
but when I used this syntax I get even more useraccounts (and that is the correct result):
dsquery * domainroot -filter "(&(&(objectcategory=user)
(samaccoun
tname=u*))
)" -attr samaccountname -limit 0
Do anybody know why?
It's not so a big overhead to work with the second command, but the bad thing is, the results of the second command can't be piped to deget. I think this comes because dsquery named it in the output samaccountname and not samid...
Is there a possible workaround?
Thanks guys... cheers
Answer : dsquery / dsget - different results, not able to pass results to dsget
Actually I may have misread your question.
If you run
dsquery user domainroot -samid u* -limit 0
Is this not returning all the right accounts?
Random Solutions
Conditional formatting based on previous record detail
Saving the html file from the web browser control in VB.NET
Access List Box Form Controls
Auto-attach to process '[4152] w3wp.exe' on machine '[machine name]' failed. Error code 0x8013134b.
Excel workbook opens read only w/ error "Excel Workbook open by 256 Users"
Loop through and delete an item from a combo box
open pdf or jpg inside access
HELP! Windows Server 2003 stuck in install loop!
"The Active Directory Services Installaion Wizard is not supported on this SKU"
Open Folder path and place in TextBox