Powershell脚本从远程PC获取.NET Framework版本
我有以下脚本。 Get-Content comps.csv | Get-ChildItem 'HKLM:\SOFTWARE\Microsoft\NET Framework Setup\NDP' -recurse | Get-ItemProperty -name Version,Release -EA 0 | Where { $_.PSChildName -match '^(?!S)\p{L}'} | Select PSChildName, Version, Release 我的comps.csv内容 Name,Type,Description, ALYTAUS-PC,Computer,, AUGUSTE-PC,Computer,, AUSRA-PC,Computer,, BIRZU-PC,Computer,, VYTAUTO-PC1,Computer,,我得到了csv中的每个对象的消息: Get-ChildItem : The input object cannot be bound to any parameters for the command either because the command does n ot take […]