pnp / PnP-PowerShell

SharePoint PnP PowerShell CmdLets
https://pnp.github.io/powershell
Other
990 stars 663 forks source link

[FEATURE] GetLatestVersion should be made opt-out on Connect #2818

Open DennisGaida opened 4 years ago

DennisGaida commented 4 years ago

In https://github.com/pnp/PnP-PowerShell/blob/master/Commands/Base/ConnectOnline.cs the latest PnP-PowerShell version is always checked var latestVersion = PnPConnectionHelper.GetLatestVersion();.

Whereas this feature is nice, I want to disable it. Checking an external URL every time I call Connect is not efficient and not necessary. Especially in on-premises systems this is annoying because internet-access on the executing machine might be restricted and/or slow due to company policies/virus scanners etc.

I want a parameter for Connect that skips this update check, e.g. -SkipUpdateCheck.