Deploying the Windows Management Framework Core Package

Deploying the Windows Management Framework Core package is performed using an N-able N-central script.

The Microsoft Support reference for the Windows Management Framework Core package is KB968930.

N-able N-central includes two VBS scripts to assist in deploying KB968930 on remote networks:

  • Download and Install PowerShell from Microsoft
  • Download and Install PowerShell from a Network Share

Deploy a script to download and install PowerShell from Microsoft

  1. Sign in to N-able N-central.
  2. Select the appropriate Service Organization in the View Selection Menu.
  3. Click ViewsAll Devices.
  4. Click Filter.
  5. In the Filter by drop-down menu, select Devices without PowerShell.
  6. Click anywhere in the Content Pane to close the window.
  7. Select the check box next to the Customer/Site column heading to select all of the devices listed.
  8. Expand Actions in the left navigation pane.
  9. Click Run a Script.
  10. Enter a "Task Name" (optional)
  11. In the Location field of the Scripting Task screen, select From N-able N-central's Script Repository.
  12. In the Repository Item drop-down menu, select Install PowerShell 2.0 From Microsoft.
  13. Click Save.

Deploy a script to download and install PowerShell 3.0 from a network share

The PowerShell script will be deployed through N-able N-central. It causes remote devices to connect directly to a specified network share to install the specified variant of PowerShell. The InstallPowerShell2.0FromAShare.vbs script requires:

  • PowerShell 3.0 installers to be placed within a network share, and
  • N-able N-central Filters to target devices that do not have PowerShell 3.0 installed based on their operating system and architecture type.
  1. Sign in to N-able N-central.
  2. Select the appropriate Service Organization.
  3. Click Reports > Asset > Asset Site.
  4. Download all relevant versions of PowerShell 3.0 to be placed on a network share local to the network. This process assumes you have configured a network share to which all devices within the network can have access.

Create N-able N-central Filters to Target Devices Requiring PowerShell 3.0

  1. Click ConfigurationFilters.
  2. In the Action column next to the Devices without PowerShell Filter, click Clone.
  3. In the Name field, type a new name used to identify the Filter based upon the operating system as follows:
    Microsoft Windows VariantNew Name of Cloned Filter
    Windows Vista 64-bitWindows Vista x64 Devices without PowerShell V3
    Windows Vista 32-bitWindows Vista x86 Devices without PowerShell V3
    Windows Server 2008 64-bitWindows Server 2008 x64 Devices without PowerShell V3
    Windows Server 2008 32-bitWindows Server 2008 x86 Devices without PowerShell V3
    Windows Server 2003 64-bitWindows Server 2003 x64 Devices without PowerShell V3
    Windows Server 2003 32-bitWindows Server 2003 x86 Devices without PowerShell V3
    Windows XP 32-bitWindows XP x86 Devices without PowerShell V3
  4. Click Save.
  5. In the Name column, click the cloned filter.
  6. In the is available to drop-down menu of the Edit Filter screen, select Everyone.
  7. Select Show in Drop-Down.
  8. Modify the Find devices where field to create specific Custom Expressions for each Windows variant as follows:
    Microsoft Windows VariantNew Custom Expression
    Windows Vista 64-bitY AND Z
    Windows Vista 32-bitY AND Z
    Windows Server 2008 64-bitX AND Y AND Z
    Windows Server 2008 32-bitX AND Y AND Z
    Windows Server 2003 64-bitX AND Y AND Z
    Windows Server 2003 32-bitX AND Y AND Z
    Windows XP 32-bitY AND Z
  9. Click Generate.
  10. Modify the Custom Expressions for each Windows variant as follows:
    Microsoft Windows VariantVariable XVariable YVariable Z
    Windows Vista 64-bitn/aOS > Reported Name > CONTAINS > VistaOS > Architecture > CONTAINS > 64
    Windows Vista 32-bitn/aOS > Reported Name > CONTAINS > VistaOS > Architecture > DOES NOT CONTAIN > 64
    Windows Server 2008 64-bitClass > EQUAL TO > Server - WindowsOS > Reported Name > CONTAINS > 2008OS > Architecture > CONTAINS > 64
    Windows Server 2008 32-bitClass > EQUAL TO > Server - Windows OS > Reported Name > CONTAINS > 2008OS > Architecture > DOES NOT CONTAIN > 64
    Windows Server 2003 64-bitClass > EQUAL TO > Server - Windows OS > Reported Name > CONTAINS > 2003OS > Architecture > CONTAINS > 64
    Windows Server 2003 32-bitClass > EQUAL TO > Server - Windows OS > Reported Name > CONTAINS > 2003OS > Architecture > DOES NOT CONTAIN > 64
    Windows XP 32-bitn/aOS > Reported Name > CONTAINS > XPOS > Architecture > DOES NOT CONTAIN > 64
  11. Click Save.

Deploy Scripts to Download and Install PowerShell 3.0 from a Network Share

This stage of the procedure will need to be repeated for each of the variants of Windows that apply.

  1. Click Views All Devices.
  2. Click Filter.
  3. In the Filter by drop-down menu, select the appropriate cloned Filter that you created in the first stage of this procedure. Refer to the names you used in In the Name field, type a new name used to identify the Filter based upon the operating system as follows: Microsoft Windows VariantNew Name of Cloned FilterWindows Vista 64-bitWindows Vista x64 Devices without PowerShell V3Windows Vista 32-bitWindows Vista x86 Devices without PowerShell V3Windows Server 2008 64-bitWindows Server 2008 x64 Devices without PowerShell V3 Windows Server 2008 32-bitWindows Server 2008 x86 Devices without PowerShell V3 Windows Server 2003 64-bitWindows Server 2003 x64 Devices without PowerShell V3 Windows Server 2003 32-bitWindows Server 2003 x86 Devices without PowerShell V3 Windows XP 32-bitWindows XP x86 Devices without PowerShell V3 to select the correct Filter.
  4. Click anywhere in the Content Pane to close the Filter window.
  5. Select the check box next to the Customer/Site column heading to select all of the devices listed.
  6. Click More Actions.
  7. Click Run a Script.
  8. In the Location field of the Scripting Task screen, select From N-able N-central's Script Repository.
  9. In the Repository Item drop-down menu, select Install PowerShell 3.0 From A Share.
  10. In the Command Line Parameters field, type the applicable values for: <remote-computer-sharename> <installername> <domain\user> <password>.

    \\192.168.1.100\PowerShellV2 WindowsXP-KB968930-x86-ENG.exe ABCDomain\admin Password

    The credentials provided in the Command Line Parameters will be used to access the network share.

  11. Click Save.