Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Viewing all articles
Browse latest Browse all 6937

DistinguishedName

$
0
0

$GetName = (get-ItemProperty hklm:\SOFTWARE\Microsoft\MPSD\OSD).OSDComputerName

$Find = Get-ADComputer ($GetName).DistinguishedName

$Find

 

On line 2 above I've also tried  

 

$Find = Get-ADComputer $GetName.DistinguishedName

 

Both return all day and I only want the DistinguishedName

 

 


Viewing all articles
Browse latest Browse all 6937

Trending Articles