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
- Sign in to N-able N-central.
- Select the appropriate Service Organization in the View Selection Menu.
- Click Views > All Devices.
- Click Filter.
- In the Filter by drop-down menu, select Devices without PowerShell.
- Click anywhere in the Content Pane to close the window.
- Select the check box next to the Customer/Site column heading to select all of the devices listed.
- Expand Actions in the left navigation pane.
- Click Run a Script.
- Enter a "Task Name" (optional)
- In the Location field of the Scripting Task screen, select From N-able N-central's Script Repository.
- In the Repository Item drop-down menu, select Install PowerShell 2.0 From Microsoft.
- 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.
- Sign in to N-able N-central.
- Select the appropriate Service Organization.
- Click Reports > Asset > Asset Site.
- 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
- Click Configuration > Filters.
- In the Action column next to the Devices without PowerShell Filter, click Clone.
- In the Name field, type a new name used to identify the Filter based upon the operating system as follows:
Microsoft Windows Variant New Name of Cloned Filter Windows Vista 64-bit Windows Vista x64 Devices without PowerShell V3 Windows Vista 32-bit Windows Vista x86 Devices without PowerShell V3 Windows Server 2008 64-bit Windows Server 2008 x64 Devices without PowerShell V3 Windows Server 2008 32-bit Windows Server 2008 x86 Devices without PowerShell V3 Windows Server 2003 64-bit Windows Server 2003 x64 Devices without PowerShell V3 Windows Server 2003 32-bit Windows Server 2003 x86 Devices without PowerShell V3 Windows XP 32-bit Windows XP x86 Devices without PowerShell V3 - Click Save.
- In the Name column, click the cloned filter.
- In the is available to drop-down menu of the Edit Filter screen, select Everyone.
- Select Show in Drop-Down.
- Modify the Find devices where field to create specific Custom Expressions for each Windows variant as follows:
Microsoft Windows Variant New Custom Expression Windows Vista 64-bit Y AND Z Windows Vista 32-bit Y AND Z Windows Server 2008 64-bit X AND Y AND Z Windows Server 2008 32-bit X AND Y AND Z Windows Server 2003 64-bit X AND Y AND Z Windows Server 2003 32-bit X AND Y AND Z Windows XP 32-bit Y AND Z - Click Generate.
- Modify the Custom Expressions for each Windows variant as follows:
Microsoft Windows Variant Variable X Variable Y Variable Z Windows Vista 64-bit n/a OS > Reported Name > CONTAINS > Vista OS > Architecture > CONTAINS > 64 Windows Vista 32-bit n/a OS > Reported Name > CONTAINS > Vista OS > Architecture > DOES NOT CONTAIN > 64 Windows Server 2008 64-bit Class > EQUAL TO > Server - Windows OS > Reported Name > CONTAINS > 2008 OS > Architecture > CONTAINS > 64 Windows Server 2008 32-bit Class > EQUAL TO > Server - Windows OS > Reported Name > CONTAINS > 2008 OS > Architecture > DOES NOT CONTAIN > 64 Windows Server 2003 64-bit Class > EQUAL TO > Server - Windows OS > Reported Name > CONTAINS > 2003 OS > Architecture > CONTAINS > 64 Windows Server 2003 32-bit Class > EQUAL TO > Server - Windows OS > Reported Name > CONTAINS > 2003 OS > Architecture > DOES NOT CONTAIN > 64 Windows XP 32-bit n/a OS > Reported Name > CONTAINS > XP OS > Architecture > DOES NOT CONTAIN > 64 - 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.
- Click Views > All Devices.
- Click Filter.
- 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.
- Click anywhere in the Content Pane to close the Filter window.
- Select the check box next to the Customer/Site column heading to select all of the devices listed.
- Click More Actions.
- Click Run a Script.
- In the Location field of the Scripting Task screen, select From N-able N-central's Script Repository.
- In the Repository Item drop-down menu, select Install PowerShell 3.0 From A Share.
- 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.
- Click Save.