Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.
Upcoming SlideShare
What to Upload to SlideShare
What to Upload to SlideShare
Loading in …3
×
1 of 12

HOWTO: Use WMIC Remotely to Install Software on Windows OS Machines

0

Share

Download to read offline

WMI (Windows Management Instrumentation) is often used to manage Windows systems using different graphical utilities - an implementation of the object-oriented management standard WBEM. You can use wbemtest.exe as a GUI utility for working with WMI. To work with WMI from the console created wmic.exe. We will use WMIC remotely with domain administrator credentials to scan the list of nodes (PCs / laptops) and install software without interrupting user experience. Although there are several advanced ways to accomplish this task, we will consider the simplest method: the MSI installation file, which does not require options, is located on the local disk of each remote user.

Related Books

Free with a 30 day trial from Scribd

See all

Related Audiobooks

Free with a 30 day trial from Scribd

See all

HOWTO: Use WMIC Remotely to Install Software on Windows OS Machines

  1. 1. HOWTO: Use WMIC Remotely to Install Software on Windows OS Machines © Action1 Corporation. All rights reserved.
  2. 2. WMI (Windows Management Instrumentation) is often used to manage Windows systems using different graphical utilities - an implementation of the object-oriented management standard WBEM. You can use wbemtest.exe as a GUI utility for working with WMI. To work with WMI from the console created wmic.exe. We will use WMIC remotely with domain administrator credentials to scan the list of nodes (PCs / laptops) and install software without interrupting user experience. Although there are several advanced ways to accomplish this task, we will consider the simplest method: the MSI installation file, which does not require options, is located on the local disk of each remote user. action1.com
  3. 3. 1. Load up a Command Shell with Appropriate Access Permissions Although WMIC instructions can be provided with appropriate credentials before starting work, it is usually recommended to avoid clear-text typing the password(who looks over his shoulder;)). We will execute the runas command as follows: runas /user:DomainAdminAccount@DOMAIN cmd that will ask us for the credentials of our DomainAdminAccount. In the case of successful authentication, we will get a shell running on behalf of the administrator. action1.com Manually:
  4. 4. 2. Step into WMIC Remotely to Install Software One of the nice advantages of WMIC is that it can work from any machine. With our admin shell, we're going to type wmic and then push Enter button. (Note: we could go to WMIC directly from the runas command ... it just breaks the steps). action1.com Manually:
  5. 5. 3. Call the Installation (for a Single Machine) The main problem is that individual MSI packages will have different “options”. To simplify our example, we perform an installation with MSI, which does not require any options. We will enter the setup call as shown below. We’ll enter the install call like the following: > /node:exampleremotemachine product call install true,"" , "c:PathToYourFile.msi" action1.com Manually:
  6. 6. 3. Call the Installation (for a Single Machine) If we do not enter an wmic invalid node, we will be asked to confirm 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; }; action1.com Manually:
  7. 7. 4. Call the installation (for a list of machines): We will use the WMIC feature to process the flat text file as input to the nodes to perform this installation on the list of machines (in our example, stored on the local administrator’s hard disk in C: computers.txt) by running the following command: > /node::@"c:computers.txt" product call install true,"" , "c:PathToYourFile.msi action1.com Manually:
  8. 8. 4. Call the installation (for a list of machines): Which will iterate through the list in computers.txt… skipping over invalid nodes (eg: the machine is turned off), and asking for installation confirmation for each machine. Although there is an opinion about the rather scant wmic documentation, most of the users are sufficient instructions on the official Microsoft site to deploy software or to create wmic list installed software. action1.com Manually:
  9. 9. Also consider using Action1 to deploy software remotely if: - You need to perform this action on multiple (hundreds or even thousands) computers simultaneously. - Some of your endpoints are laptops not connected to corporate network at all times. action1.com With Action1 :
  10. 10. Other Relevant HOWTOs: action1.com How to Get a List of Active TCP Connections on Domain Computers Free Tool: Install Software Remotely (MSI Package) Free Tool: Remotely Install Windows Updates Free Tool: Sleep Remote Computer Free Tool: Wake Up Computer Remotely (Wake-On-LAN)
  11. 11. Sign Up for Action1 • Instant sign-up • No phone calls to activate • Quick configuration Go to action1.com/free
  12. 12. Free Help • Call 1-346-444-8530 • action1.com/contact_us.html • Free technical support action1.com

Editor's Notes

  • Introducing Action One. Cloud-based endpoint security management.
  • To get started, just go to Action One dot com slash free, enter your email, confirm it and you are in. Basic configuration takes only a few minutes.
  • Feel free to call us or contact via Action One dot com. We can you help you to get started at absolutely no cost to you.
  • ×