On our network we have computers in different Organizational Units which we call locations. Some of the OUs are called Main Hall, Office etc.
How would I go about getting the name of the OU the computer account is in and then displaying the OU name as a text label on a Windows Form?
How would I go about getting the name of the OU the computer account is in and then displaying the OU name as a text label on a Windows Form?