Install MSI on remote machine using wmi

how to install MSI application using wmic?

1. run command (cmd) as Domain Administrator  runas /user:domainadmin@domain cmd

2. step in WMIC. (type wmic on command prompt)

3. for single machine use following

/node:exampleremotemachine product call install true,”” , “c:\PathToYour\File.msi”

Which will prompt us for confirmation in the following format:

Execute (Win32_Product)->Install() (Y/N)?

To which we must answer yes (y) to confirm. If your WMI compliant MSI package was successfully installed, you should see something like the following:

Method execution successful.
Out Parameters:
instance of __PARAMETERS
{
ReturnValue = 0;
};

4. For multiple files

> /node::@”c:\computers.txt” product call install true,”” , “c:\PathToYour\File.msi

[reference: http://community.spiceworks.com/how_to/show/211-using-a-command-line-to-install-software-on-remote-pcs]

Advertisements
About

hi there, I am software engineer, working in e-commerce company and passionate about all thing digital. On this blog, I share my experiments with different technology.

Posted in SQL Server
3 comments on “Install MSI on remote machine using wmi
  1. Sandeep says:

    What if we want to install using differnet parameters eg custom installation ??

  2. KL says:

    The following message displayed, and not able to install the software

    Method execution successful.
    Out Parameters:
    instance of __PARAMETERS
    {
    ReturnValue = 3;
    };

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

What people say about post?
seo hizmeti on Awesome wordpress ecommerce…

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 38 other followers

%d bloggers like this: