-
Notifications
You must be signed in to change notification settings - Fork 1
Description
Hi Kieran,
First, congratulation for this module veru useful and beaufiful display.
I appreciated Switch NoPreview, check PSVersion, ExectuionContext, RunasAdmin, and Setting Neet.securityProtocol = TLS1.2 (in reality, this param is already in my profile, but I put it in all my scripts too), and error handling
Question : Why do you use this
$InstalledModules = Get-InstalledModule |
Where-Object -FilterScript {
($_.name -notmatch 'PackageManagement|PowerShellGet|Az\.|AzureRM\.|Azure\.|PSReadline')
Any reason to skip these particular modules ?
Later (line 259), you use UpdateModule ... -Scope "AllUsers". Any reason to do this ? I have some module in my User scope, on other in AllUsers scope. By this, All modules will be updated, and the updated modules will be in AllUsers Scope ... unless I misunderstood how the code works.
Generally, First, i install a new module in my user scope, read the code, tests, and if it could be useful for my teammate, I install it in AllUsers scope. This break my rule. :-) Another way to do this ? In a perfect word, il would like module will be updated in their own scope.
Regards
Olivier