Hello,
I am trying to run a script that will query our active directory, and everything is working until it gets to a certain naming convention. I am trying to match an object is in our active directory corpadNet2001-CORPds-PositionCode, but when I enter in this object in VB it automatically adds space around the hyphens. Is there any way to stop VB from automatically adding spaces around the hyphens? For the query to work, it has to match exactly corpadNet2001-CORPds-PositionCode.
I am trying to run a script that will query our active directory, and everything is working until it gets to a certain naming convention. I am trying to match an object is in our active directory corpadNet2001-CORPds-PositionCode, but when I enter in this object in VB it automatically adds space around the hyphens. Is there any way to stop VB from automatically adding spaces around the hyphens? For the query to work, it has to match exactly corpadNet2001-CORPds-PositionCode.