Powershell脚本来审计OU中的所有映射驱动器

类似于这篇文章: http : //powershell.com/cs/forums/p/9777/16289.aspx我正在寻找一个PowerShell脚本,可以让我查询我的networking中的一个OU的所有机器,看看有什么驱动器他们已经由用户或GP映射。 我已经尝试在post中运行第二个脚本,并得到上一个问题海报得到的同样的错误:

testing连接:无法validation参数“ComputerName”上的参数。 参数是空或空的。 提供一个非null或空的argument,然后再次尝试该命令。 在行:22 char:33 if(testing连接-ComputerName <<<< $ child.name -Count 1 -Quiet){CategoryInfo:InvalidData:(:) [Test-Connection],ParameterBindingValidationException FullyQualifiedErrorId:ParameterArgumentValidationError,Microsoft.PowerShell .Commands.TestConnectionCommand

如果任何人可以帮助得到这个脚本运行或build议一个不同的解决scheme,我将不胜感激。 -亚当