Skip to main content

Windows

Windows plugin has been designed to perform actions on a Windows machine. Compatibility: Windows 7, Windows Server 2008

Prerequisites:

• Enable WinRM Protocol and set trusted host list value to * on local as well as target system, refer Appendix 6: Power Shell Remote Connection. • WMI access on local and target machine (Required for Windows: Create Event Log, Restart Machine and Shutdown Machine steps). This is discussed below. • PowerShell version 5 and above. This is discussed below.

Following are the steps to provide WMI access on local and target machines.

  1. Under Control Panel click Windows Firewall

CP

  1. Click the link – Allow a program or feature through Windows Firewall.

CP2

  1. Enable to allow Windows Management Instrumentation (WMI) at all levels as shown below.

CP3

Following are the steps to setup Power Shell version 5 or above, A. Set PowerShell Execution Policy:

  1. Open PowerShell command prompt in Run as administrator mode (Go to Start-> Search PowerShell -> Right Click on Windows PowerShell -> Click Run as administrator option)
  2. Change execution policy of computer to allow running PowerShell scripts by using below: command: Set-ExecutionPolicy unrestricted –Force
  3. Check if execution policy is changed by using below command: command: Get-ExecutionPolicy

B. Updating PowerShell Version:

  1. Download Windows Management Framework from below url: (to update to Windows PowerShell version 5.1or higher) https://www.microsoft.com/en-us/download/details.aspx?id=54616

System requirements:

  • WMF 5.1 requires Microsoft .NET Framework 4.5 or above. You can install Microsoft .NET Framework 4.5 or above by following the instructions at Installing the .NET Framework.
  • Use a 64-bit version of Windows.
  • Need to restart machine once “Windows Management Framework 5.1“installation is completed.

Note: Open PowerShell by right clicking and select Run As Administrator

  1. Check if PowerShell version is updated to 5.1 or higher using below command: Command: $PSVersionTable

Expected output:

NameValue
PSVersion5.1.14409.1005
PSEditionDesktop
PSCompatibleVersions1.0, 2.0, 3.0, 4.0...
BuildVersion10.0.14409.1005
CLRVersion4.0.30319.42000
WSManStackVersion3.0
PSRemotingProtocolVersion2.3
SerializationVersion1.1.0.1