Hello,
This is the command I've already tried as stated in the first post. It's not working. I tried appending distinguished name onto the end of the variable. It doesn't seem to make any difference.
Just to be clear, based on the command I initially posted it should create a DDG that only has users that are in both the Database; Staff-Mail Store and are present under the Users List OU in the AD. Is this correct? If it is, and the code is correct, I'm not sure where I'm going wrong. Any help would be great thanks.