You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: MaintainModule/MaintainModule.psm1
-31Lines changed: 0 additions & 31 deletions
Original file line number
Diff line number
Diff line change
@@ -195,10 +195,6 @@ Function Update-rsModule {
195
195
The parameter -Scope don't effect the uninstall-module function this is because of limitation from Microsoft.
196
196
- Scope effect Install/update module function.
197
197
198
-
.PARAMETERImportModule
199
-
If this switch are used the module will import all the modules that are specified in the Module parameter at the end of the script.
200
-
This only works if you have specified modules in the Module parameter
201
-
202
198
.PARAMETERUninstallOldVersion
203
199
If this switch are used all of the old versions of your modules will get uninstalled and only the current version will be installed
204
200
@@ -241,8 +237,6 @@ Function Update-rsModule {
241
237
[Parameter(Mandatory=$false,HelpMessage="Enter CurrentUser or AllUsers depending on what scope you want to change your modules, default is CurrentUser")]
242
238
[ValidateSet("CurrentUser","AllUsers")]
243
239
[string]$Scope="CurrentUser",
244
-
[Parameter(Mandatory=$false,HelpMessage="Import modules that has been entered in the module parameter at the end of this function")]
245
-
[switch]$ImportModule=$false,
246
240
[Parameter(Mandatory=$false,HelpMessage="Uninstalls all old versions of the modules")]
247
241
[switch]$UninstallOldVersion=$false,
248
242
[Parameter(Mandatory=$false,HelpMessage="Install all of the modules that has been entered in module that are not installed on the system")]
@@ -319,31 +313,6 @@ Function Update-rsModule {
319
313
Write-Verbose"$($_module.name) are not installed, you have not chosen to install missing modules"
320
314
}
321
315
}
322
-
323
-
if ($ImportModule-eq$true) {
324
-
# Collect all of the imported modules.
325
-
Write-Verbose"Collecting all of the installed modules..."
326
-
$ImportedModules=Get-Module|Select-Object Name, Version
0 commit comments