Skip to content

Commit 7cbcd0a

Browse files
author
Robin Stolpe
committed
ADded $null to current user validation so it
1 parent 7c33d01 commit 7cbcd0a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

MaintainModule/MaintainModule.psm1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ Function Update-RSModule {
150150
Param(
151151
[Parameter(Mandatory = $false, HelpMessage = "Specify modules that you want to update, if this is empty all of the modules that are installed on the system will get updated")]
152152
[string]$Module,
153-
[ValidateSet("CurrentUser", "AllUsers")]
153+
[ValidateSet("CurrentUser", "AllUsers", $null)]
154154
[Parameter(Mandatory = $true, HelpMessage = "Choose either AllUsers or CurrentUser depending on which layer you want to update/Install/uninstall the module on")]
155155
[string]$Scope = "CurrentUser",
156156
[Parameter(Mandatory = $false, HelpMessage = "Imports all of the modules that are specified in the Module parameter in the end of the script")]

0 commit comments

Comments
 (0)