pnp / pnp/pnpframework

Invoke-PnPSiteTemplate access denied on Server OS 2022 and 2016

Open
#523 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C#
Stars
259
Forks
161
Avg merge
10h 33m
Merged PRs (30d)
1

Description

When running the Invoke-PnPSiteTemplate cmdlet on a Windows Server 2016 Standard or Windows 2022 Standard machine it is failing with an access denied error.

Exception details -

Invoke-PnPSiteTemplate : Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))

The OS build info is as follows:

OS info server 1: OS Name: Microsoft Windows Server 2022 Standard
OS Version: 10.0.20348 N/A Build 20348
OS Manufacturer: Microsoft Corporation
OS Configuration: Member Server

OS info server2: OS Name: Microsoft Windows Server 2016 Standard
OS Version: 10.0.14393 N/A Build 14393
OS Manufacturer: Microsoft Corporation
OS Configuration: Member Server

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing Invoke-PnPSiteTemplate on Windows Server 2016 and Windows Server 2022 using the reported OS builds, then trace where the E_ACCESSDENIED exception originates. Compare the behavior and required permissions across both systems; done means the cmdlet completes successfully on the affected server versions.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp, powershell
Domain
operating-systems, tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.