zoukankan      html  css  js  c++  java
  • Powershell操作wmi

    Get-WmiObject -Namespace ROOTCIMV2 -Class Win32_Share #共享
    Get-WmiObject -Namespace ROOTCIMV2 -Class CIM_DataFile #⽂件/⽬录列表
    Get-WmiObject -Namespace ROOTCIMV2 -Class Win32_Volume #磁盘卷列表
    Get-WmiObject -Namespace ROOTCIMV2 -Class Win32_Process #当前进程
    Get-WmiObject -Namespace ROOTCIMV2 -Class Win32_Service #列举服务
    Get-WmiObject -Namespace ROOTCIMV2 -Class Win32_NtLogEvent #⽇志
    Get-WmiObject -Namespace ROOTCIMV2 -Class Win32_LoggedOnUser #登陆账户
    Get-WmiObject -Namespace ROOTCIMV2 -Class Win32_QuickFixEngineering #补丁
    Get-WmiObject -Namespace rootSecurityCenter2 -Class AntiVirusProduct #杀毒软件
    ###操作系统相关信息 Get
    -WmiObject -Namespace ROOTCIMV2 -Class Win32_OperatingSystem Get-WmiObject -Namespace ROOTCIMV2 -Class Win32_ComputerSystem Get-WmiObject -Namespace ROOTCIMV2 -Class Win32_BIOS ###
    ###注册表操作 Get
    -WmiObject -Namespace ROOTDEFAULT -Class StdRegProv
    Push
    -Location HKLM:SOFTWAREMicrosoftWindowsCurrentVersionRun Get-ItemProperty OptionalComponents
  • 相关阅读:
    开发技术--Numpy模块
    开发技术-IPython介绍
    开发--Deepin系统安装
    开发--CentOS-7安装及配置
    开发技术--设计模式
    English--音标重难点
    English--音标拼读
    English--辅音
    jQuery火箭图标返回顶部代码
    jQuery火箭图标返回顶部代码
  • 原文地址:https://www.cnblogs.com/yyxianren/p/15238622.html
Copyright © 2011-2022 走看看