You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am creating an English site on a subsite of a Japanese site collection.
When I use the pnp script to get the list name, the Japanese name is displayed.
This discussion was converted from issue #3327 on August 03, 2023 07:18.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I am creating an English site on a subsite of a Japanese site collection.
When I use the pnp script to get the list name, the Japanese name is displayed.
Is it possible to get the English listing names?
Script
===============================================
Param($Url,[switch]$Recurse)
Connect-PnPOnline -Url $Url -Credentials $Credentials
if ($Recurse.IsPresent -eq "True") {
$Webs = Get-PnPSubWeb -IncludeRootWeb -Recurse -Includes Lists | Sort-Object -Property ServerRelativeUrl
} else {
$Webs = Get-PnPWeb -Includes Lists
}
Foreach ($Web in $Webs) {
Connect-PnPOnline -Url $Web.Url -Credentials $Credentials
Foreach($List in $Web.Lists | Where-Object {$_.Hidden -eq $False}) {
"{0}t{1}t{2}" –f $Web.Url, $List.Title, $List.TitleResource.GetValueForUICulture("en-US")
$List.Context.Dispose()
}
$Web.Context.Dispose()
}
$Webs.Context.Dispose()
Beta Was this translation helpful? Give feedback.
All reactions