I am using following command to get the users of Active Directory Global Group.
dsquery group -name "Groupname" |dsget group -members
But, this is piped command and it's not working in Visual Studio, Please suggest me any alternative DOS command without using pipe which can work on standalone server.