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

3 thoughts on “Install MSI on remote machine using wmi

  1. 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 )

Google+ photo

You are commenting using your Google+ 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 )

Connecting to %s