posts - 12,comments - 0,trackbacks - 0
  • List all WMI object in powershell:
       gwmi -list

 

  • List those WMI object by keywords in Powershell
      gwmi -list | where{$_.Name -like "win32_*Product*"}|ft name -autosize

 

  • List member of a specified WMI object
       gwmi win32_windowsproductactivation | get-member

 

  • How to check all machines remain time before activation expired:
       $Names = get-content ("d:\labclient.txt")
       foreach ($name in $names) {gwmi win32_windowsproductactivation -computername $name | ft Servername,RemainingGracePeriod -autosize}
posted on 2007-04-29 10:35 GuangMing Lan 阅读(402) 评论(0)  编辑 收藏 引用
只有注册用户登录后才能发表评论。