{$disk+= ($硬盘信息[$i].Caption)+"("+ ($硬盘信息[$i].Size/1000000000-as[int])+"GB)"} }else{$disk=$硬盘信息.Caption+"("+($硬盘信息.Size/1000000000-as[int])+"GB)"}$Computer|Add-Member -MemberType NoteProperty -Name 硬盘信息 -Value$disk#处理多条内存条的情况$Memory=""$allSize...
1$pc='PC03'23if((Get-HotFix -Id KB3191566 -ComputerName$pc)-ne$null){45Write-Warning"$pc 已经安装了PS 5.1补丁"67}else{89Write-Warning"$pc 需要更新!"1011Write-Warning"$pc 复制文件"12Copy-Item -Path '\\sccm01\G$\PowerShell\Win7AndW2K8R2-KB3191566-x64' -Destination \\$pc\D$ -...
1$pc='PC03'23if((Get-HotFix -Id KB3191566 -ComputerName$pc)-ne$null){45Write-Warning"$pc 已经安装了PS 5.1补丁"67}else{89Write-Warning"$pc 需要更新!"1011Write-Warning"$pc 复制文件"12Copy-Item -Path '\\sccm01\G$\PowerShell\Win7AndW2K8R2-KB3191566-x64' -Destination \\$pc\D$ -...
}$Computer|Add-Member -MemberType NoteProperty -Name '内存(GB)' -Value$allSize$Computer|Add-Member -MemberType NoteProperty -Name 内存详细信息 -Value$Memory$Computer|Add-Member -MemberType NoteProperty -Name 显卡 -Value$显卡名称.Name$Computer|Add-Member -MemberType NoteProperty -Name PowerShell...