User Profile
CheisCheis
Copper Contributor
Joined Oct 10, 2023
User Widgets
Recent Discussions
Re: Access denied to subsite using PowerShell
Hi LeonPavesic, unfortunately this method didn't work, this user is both the owner of the site and the subsite. Perhaps there are settings that need to be changed to enable this step. (These "settings" could be in Powershell, or in Sharepoint, or in the Microsoft 365 account, I don't know) Thank you for your prompt reply:)9.5KViews0likes0CommentsAccess denied to subsite using PowerShell
Hi, when i run the Code 2 i have this error: Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)) Code 1: $url="Url_SubSite_in" Connect-PnPOnline -Url $url -Interactive Get-PnPSiteTemplate -Configuration "C:\Users\configu.json" -Out "C:\Users\template.xml" Disconnect-PnPOnline Code 2: $url="Url_SubSite_out" Connect-PnPOnline -Url $url -Interactive Invoke-PnPSiteTemplate -Path "C:\Users\template.xml" Disconnect-PnPOnline I run both scripts using the credentials of the sharepoint subsite owner. This problem has never occurred when using sites and not subsites. When i run the code i see that the error occur when powershell is trying to apply navigation things; i think the problem is about linkless headers (labels). What should I do? There are some default settings that I have to change? Thanks a lot to everyone:)11KViews0likes2Comments
Recent Blog Articles
No content to show