I have the following command but it doesn't work when put into a batch file:
dsquery group DC=domain,DC=com -name "Group Name" | dsget group -members | dsget user -display >> "Group Name.txt"
If I execute through cmd line it works fine but not when executed from within a batch, what am I missing?
(Note: Powershell isn't an option otherwise I would use that believe me !)