List Information About the Binary Files Used by an Application

Returns the name and product code of binary information
 (such as bitmaps, icons, executable files, and so on) used 
by a Windows Installer application. This script requires both
 Windows PowerShell and the corresponding version of 
the .NET Framework. For more information on downloading 
these items see the Windows PowerShell download page (right). 


代码如下:

$strComputer = "."

$colItems = get-wmiobject -class "Win32_Binary" -namespace "root\CIMV2" `
-computername $strComputer

foreach ($objItem in $colItems) {
      write-host "Caption: " $objItem.Caption
      write-host "Data: " $objItem.Data
      write-host "Description: " $objItem.Description
      write-host "Name: " $objItem.Name
      write-host "ProductCode: " $objItem.ProductCode
      write-host "SettingID: " $objItem.SettingID
      write-host
}

(0)

相关推荐

  • Android开发 -- setTag的妙用和The key must be an application-specific resource id 异常

    tag是view的一个属性,也可以说是view用于存放参数的一个map,对于提高性能和参数传递都有妙用,比如提高listview的性能: 用于缓存item的view 复制代码 代码如下: public View getView(final int position, View convertView, ViewGroup parent) {      ItemViewHolder holder; if (convertView == null) {          holder = new I

  • The specified CGI application misbehaved by not returning a complete set of HTTP headers

    是错误报告: The specified CGI application misbehaved by not returning a complete set of HTTP headers 意思是:(http协议的CGI模式运行不正确) 因为perl脚本的第一句中不支持 -wT 参数,将所有的 -wT 替换成 -w 即可 即:将 #!/usr/bin/perl –wT 替换为:将 #!/usr/bin/perl –w 这是代表php是以CGI模试运行的 在php.ini找到 gi.force_

  • The application has failed...(应用程序配置不正确)

    在我们开发工程中,可能有些情况下,不能在本机进行调试.这个时候我们一般会使用VM(vmware)建立一个虚拟机环境,然后把编译过的程序放在该虚拟机环境下执行调试.可是在某些情况下,不管我们编译的是debug还是release版本,在虚拟机环境中都会报"由于应用程序配置不正确,应用程序未能启动.重新安装应用程序可能会纠正这个问题."(The application has failed to start because its side-by-side configuration is

  • List Information About the Binary Files Used by an Application

    Returns the name and product code of binary information (such as bitmaps, icons, executable files, and so on) used by a Windows Installer application. This script requires both Windows PowerShell and the corresponding version of the .NET Framework. F

  • 使用innodb_force_recovery解决MySQL崩溃无法重启问题

    一 背景 某一创业的朋友的主机因为磁盘阵列损坏机器crash,重启MySQL服务时 报如下错误: 复制代码 代码如下: InnoDB: Reading tablespace information from the .ibd files... InnoDB: Restoring possible half-written data pages from the doublewrite InnoDB: buffer... InnoDB: Doing recovery: scanned up to

  • MySQL PXC构建一个新节点只需IST传输的方法(推荐)

    需求场景:原有的pxc环境数据量已经比较大,新买的服务器要加入此集群中,如何让其用IST的方式传输,而不是SST. PXC传输数据有两种方式: IST:Incremental State Transfer 增量同步 SST:State Snapshot Transfer 全量同步 IST 发生的条件:This is done using caching mechanism on nodes (即只发生在之前集群里的节点数据还有在缓存中) 判断方法: mysql> show global stat

  • 完美解决mysql启动后随即关闭的问题(ibdata1文件损坏导致)

    机房一台服务器上的mysql运行一段时间了,突然出现了一个很奇怪的现象:重启后无法恢复了!准确情况是:启动mysql后随即就又关闭了. 查看mysql错误日志如下: 160920 22:41:41 mysqld_safe Starting mysqld daemon with databases from /home/MysqlData/ 2016-09-20 22:41:41 0 [Note] /Data/app/mysql5.6.25/bin/mysqld (mysqld 5.6.25-lo

  • APACHE 配置文件中文版 httpd.conf FOR Apache 2.2.13

    # # This is the main Apache HTTP server configuration file. It contains the # configuration directives that give the server its instructions. # See <URL:http://httpd.apache.org/docs/2.2/> for detailed information. # In particular, see # <URL:http

  • Apache服务器主配置文件httpd.conf详解

    apache 2.2 # This is the main Apache server configuration file. It contains the # configuration directives that give the server its instructions. # See <URL:http://httpd.apache.org/docs/2.2/> for detailed information. # In particular, see # <URL:

  • 一次编写,随处运行

    关于 PHP 的数据库 API 对于不同的数据库有不同的函数,一直以来就有人尝试使用 PHP 的面向对象的功能进行一些封装.其中有比较著名的ADODB,PHPLIB.后来举世瞩目的 PEAR 项目中的 PEAR DB 更是其中的佼佼者.这些用面向对象对数据库 API 进行的封装的包一般称为数据库抽象层. 本文介绍的是 PEAR 中对 PEAR DB 进行融合 Metabase 库的一些优秀功能之后产生的注重效率,而且简单易用,功能非常强大的 MDB 的一个非常好的介绍.作者就是 MDB 的主创人

  • Linux常用命令之grep命令用法详解

    1.官方简介 grep是linux的常用命令,用于对文件和文本执行重复搜索任务的Unix工具,可以通过grep命令指定特定搜索条件来搜索文件及其内容以获取有用的信息. Usage: grep [OPTION]... PATTERN [FILE]... Search for PATTERN in each FILE or standard input. PATTERN is, by default, a basic regular expression (BRE). Example: grep -

  • mariadb 在低配 VPS 上崩溃问题处理方案

    引言 最近博客又抽风了,打开主页后提示 Error Establishing a Database Connection .仔细想想,应该就是数据库服务器 mariadb 挂了:以前也遇到过类似的问题.经过分析日志,并结合网上的资料最终解决了问题. 日志 以下是 mariadb 服务器挂掉时的比较关键的日志信息,从下面的日志信息中,我们可以很容易地看出由于内存不足,从而导致数据库服务器启动时崩溃. InnoDB: Starting crash recovery. InnoDB: Reading

  • IIS UNICODE Bug

    一.存在的漏洞1. 微软IIS 4.0 / 5.0 存在扩展UNICODE目录遍历漏洞,该漏洞既是一远程漏洞,同时也是一本地漏洞. 受影响的版本: Microsoft IIS 5.0 + Microsoft Windows NT 2000 Microsoft IIS 4.0 + Microsoft Windows NT 4.0 + Microsoft BackOffice 4.5 - Microsoft Windows NT 4.0 + Microsoft BackOffice 4.0 - Mi

随机推荐