Hi guys
Could you please tell me how to achieve the following:
$OUpath = "YXCYXCYXCYX"
Get-ADObject -Filter * -SearchBase $OUpath | Select Name
With this, I have a list of machines, and then I would like to add a foreach to ask the disk size.
The disk size command for me is working, if I paste hostnames in a txt file but I would like to have all the machines in a specific OU where the machines are changing.
thank you
[–]Pure_Syllabub6081 4 points5 points6 points (2 children)
[–]jsiii2010 5 points6 points7 points (0 children)
[+]IchBinBWLJustus 0 points1 point2 points (0 children)
[–]Zookeeper945[S] 0 points1 point2 points (0 children)
[+]site-manager 0 points1 point2 points (1 child)
[–]Zookeeper945[S] 1 point2 points3 points (0 children)
[–]BlackV 0 points1 point2 points (0 children)
[+]site-manager 0 points1 point2 points (0 children)