Similar to this post in 2012: http://powershell.com/cs/forums/p/9777/16289.aspx
I'm looking for a powershell script that will let me all the machines in an OU on my network and see what drives they have mapped, either by user or GP. I've tried running the second script down in the post and I'm getting the same error the previous question poster got:
----------------
Test-Connection : Cannot validate argument on parameter 'ComputerName'. The argument is null or empty. Supply an argume
nt that is not null or empty and then try the command again.
At line:22 char:33
+ if(Test-Connection -ComputerName <<<< $child.name -Count 1 -Quiet){
+ CategoryInfo : InvalidData: (:) [Test-Connection], ParameterBindingValidationException
+ FullyQualifiedErrorId : ParameterArgumentValidationError,Microsoft.PowerShell.Commands.TestConnectionCommand
----------------
If anyone can help get this script running or suggest a different solution I'd greatly appreciate it.
-Adam