From 526dc8339eb04a79778c2f0fc49f36c89d4213c0 Mon Sep 17 00:00:00 2001 From: p0w3rsh3ll Date: Wed, 25 Nov 2020 20:21:56 +0100 Subject: [PATCH] Update README.md --- README.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index ee3adb3..af94037 100644 --- a/README.md +++ b/README.md @@ -12,11 +12,12 @@ This repository contains sample code and documentation for the Microsoft Securit Getting started with the MsrcSecurityUpdates module can be done like this: ```PowerShell ### Install the module from the PowerShell Gallery -### !! Requires minimum PowerShell version 5.1 Install-Module -Name MsrcSecurityUpdates -Scope CurrentUser -### Load the module -Import-Module -Name MsrcSecurityUpdates +### Load the module if PowerShell is at least version 5.1 +if ($PSVersionTable.PSVersion -gt [version]'5.1') { + Import-Module -Name MsrcSecurityUpdates +} ``` Once the module is loaded, check out our [PowerShell samples](https://github.com/Microsoft/MSRC-Microsoft-Security-Updates-API/blob/master/src/README.md)