Oct 19 2022 02:56 PM - edited Oct 19 2022 03:25 PM
hi,
While using a pnp script I got a warning as below. Can you advise how to remove the warning
WARNING: Parameter 'Web' is obsolete. The -Web parameter will be removed in a future release.
thanks
Oct 19 2022 03:56 PM
Add the WarningAction parameter to your Set-PnPGroupPermissions statement.
-WarningAction:SilentlyContinue
If that doesn't work for this particular command, you can pipe the warning stream (using 3>) to $null:
Set-PnPGroupPermission -blah -blah 3> $null;
Cheers,
Lain
Oct 19 2022 04:28 PM
Oct 19 2022 04:38 PM
Unfortunately, I don't work with SharePoint at all meaning I can't troubleshoot SharePoint-related scripts beyond the parts relating specifically to PowerShell (i.e. I can't look at SharePoint errors or why SharePoint isn't doing something it should, etc.)
There's a couple of other contributors in this channel who do work extensively with SharePoint though, so hopefully they can stop by and offer some assistance.
Cheers,
Lain