Skip to content

Congratulations and Improvement (perhaps) #1

@Rapidhands

Description

@Rapidhands

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions