I have created a script that pull the H: drive home directory of a user down from the Active Directory. It looks like this: \\TTTT-S-3-01\johndoe$. I need to only get the server name from the string using array function or some other technique that can do this. Basically, I need to cut the Johndoe$ out and only get the : \\TTTT-S-3-01.
How do I do this?