powershell: [BUG] Get-PnPTenantSite: The property or field 'AuthContextStrength' has not been initialized. It has not been requested or the request has not been executed. It may need to be explicitly requested.
I don’t know since when exactly, but recently the command Get-PnPTenantSite started failing with the following error:
The property or field ‘AuthContextStrength’ has not been initialized. It has not been requested or the request has not been executed. It may need to be explicitly requested.
I have not changed anything in my PS script, nor did I update my PnP.PowerShell module.
Expected behavior
Get-PnPTenantSite should return the tenant site as expected.
Actual behavior

Steps to reproduce behavior
Connect-PnPOnline -Url $variables.Get_Item("AdminUrl") -ClientId $variables.Get_Item("AppClientId") -Tenant $variables.Get_Item("TenantName") -CertificatePath "$($variables.Get_Item("CertificatePath"))" -CertificatePassword $certificatePassword -ErrorAction Stop
Get-PnPTenantSite -Identity "[site url here]" -Detailed
Even without the detailed switch, the same error is thrown.
What is the version of the Cmdlet module you are running?
1.6.0
Which operating system/environment are you running PnP PowerShell on?
- Windows
- Linux
- MacOS
- Azure Cloud Shell
- Azure Functions
- Other : please specify
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Reactions: 1
- Comments: 18 (1 by maintainers)
@fikryGaf - I’m gonna stop you right there.
First, in case you didn’t know, this is a Community driven repository. This means that we do that on our personal time, and we also have day jobs.
Second, this command is using CSOM in the background, which is not something we - as repo maintainers - are creating. If you have any complaints, please redirect them to Microsoft directly.
Third, a fix has been committed today by @erwinvanhunen & @gautamdsheth, and will be available with the
-nightlyrelease tomorrow. Not sure you’ll find a plethora of repos with the same turnaround.And finally, just in case this is still not fast enough for you, you have other alternatives like CSOM or the SharePoint Management Shell.
Hope it clarifies expectations.
it’s still giving the same error !
… terSPList = Get-PnPTenantSite -Detailed -Filter "Url -like 'https:/ … | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | The property or field ‘AuthContextStrength’ has not been initialized. It has not been requested or the request has not been executed. It may need to be explicitly requested.
Confirmed, issue resolved after installing 1.6.44-nightly, using Install-Module -Name PnP.PowerShell -AllowPrerelease -Force -SkipPublisherCheck
Closing this issue, if you are facing this error please update to the latest
1.6.44-nightly.@sathya-bhat Nah, I have solved the issue myself. Apparently, there is something wrong with the SupportedUILanguages handler in the template. So I just added -ExcludeHandlers SupportedUILanguages at the end of the command and disabled the multilingual features manually afterwards through:
$Web = Get-PnPWeb -Includes IsMultilingual -Connection $newSiteConnection$Web.IsMultilingual = $false$Web.Update()Invoke-PnPQuery@kpinel , the build 1.6.43 does not contain Eric’s fix (9 hours ago) https://github.com/pnp/powershell/commit/22985f6f3d15c0d23919a24288d7f92a175c2ab9 . We may need to wait for tonight’s build?
Still the same issue, unfortunately
Also logging a job with MS
Same here. This Issue seems to be solved by this commit: https://github.com/pnp/powershell/commit/22985f6f3d15c0d23919a24288d7f92a175c2ab9.