#Author:pako
#Email:zealzpc@gmail.com
主要使用Get-WmiObject 命令,Get-WmiObject只用方法 见http://technet.microsoft.com/en-us/library/ee176860.aspx
Get-WmiObject [-类] <string> [[-Property] <string[]>] [-Authority <string>] [-DirectRead] [-Filter <string>] [-Amended] [-AsJob] [-Authentication {<Default> | <None> | <Connect> | <Call> | <Packet> | <PacketIntegrity> | <PacketPrivacy> | <Unchanged>}] [-ComputerName <string[]>] [-Credential <PSCredential>] [-EnableAllPrivileges] [-Impersonation {<Default> | <Anonymous> | <Identify> | <Impersonate> | <Delegate>}] [-Locale <string>] [-命名空间 <string>] [-ThrottleLimit <int>] [<CommonParameters>]
简单点说就是 Get-WmiObject 后面跟类名 和属性
事例:
查看总内存数
Get-WmiObject win32_OperatingSystem TotalVisibleMemorySize
查看剩余内存数
Get-WmiObject win32_OperatingSystem FreePhysicalMemory
查看cpu信息
Get-WmiObject win32_Processor
查看所有分区信息
Get-WmiObject win32_logicaldisk
WmiObject 的列表
http://msdn.microsoft.com/en-us/library/aa394084(v=vs.85).aspx
#Author:pako
#Email:zealzpc@gmail.com
- 大小: 32 KB
- 大小: 94.2 KB
分享到:
相关推荐
卸载以前版本的 Windows PowerShell 和 Windows 远程管理
通过java和powershell对windows进行操作:关机、重启、调整音量、启动程序、关闭进程
WindowsServer 2003 x86 PowerShell 1.0 WindowsServer 2003 x64 PowerShell 1.0 WindowsServer2003-KB926139-v2-x86-ENU WindowsServer2003.WindowsXP-KB926139-v2-x64-ENU
PowerShell(包括Windows PowerShell和PowerShell Core)是微软公司开发的任务自动化和配置管理框架。 UNIX系统一直有强大的壳程序(shell),Windows PowerShell的诞生就是要提供功能相当于UNIX系统的命令行壳程序...
windows下powershell实时查看日志文件内容
Windows PowerShell 建立在 .NET Framework 的基础上,IT 专业人员可通过命令或脚本来治理计算机,从而通过系统自动化来提高工作效率。 Windows PowerShell 包括: * 129 个命令行工具(称为“cmdlet”),用于执行...
Windows Server 2003的32位PowerShell2.0下载
windows powershell
powershell4.0完整升级包(windows powershell升级补丁系统4.0版本) windows08R2 powershell升级到4.0的完整升级包,包含所有需要的依赖包。 注意:只适用于08R2系统; 另外:powershell4.0功能强大 可以批量添加AD域...
Windows PowerShell每周提示
Windows.PowerShell应用手册中文版,powershell进阶资料。
Windows PowerShell实战指南 第2版
Windows Powershell In Action
在Windows Server 2012中使用PowerShell添加和删除Windows角色和功能非常方便,但是在windows 8.1上启用和禁用Windows选项却略显鸡肋。 比如Get-WindowsOptionalFeature获取当前所有的Windows功能选项: 代码如下: ...
Windows PowerShell(KB926140) 在安装SQLSERVER2008 Express版本 出现 Windows PowerShell没有安装
Windows PowerShell应用手册,有兴趣的人看两次吧,建议
Windows PowerShell™ 入门指南
《精通Windows Server 2008命令行与PowerShell》的内容简介回到顶部↑ 本书全面地介绍了windows server 2008命令行、powershell和脚本的使用,包括文件和文件夹的管理、磁盘管理、系统管理、活动目录管理、网络管理...
WindowsPowerShell v1.0 强大的支持面向对象方式脚本执行工具终端打包,如果Windows下power shell损坏可以下载,原版自带