2

you can use this script: This script takes 2 arguments: Web URL - This is a fully qualified URL to the site. Content Type Name - This is the content type name. So using the script would look like the following: Find-Content-Types.ps1 "http://SPURL/SITE" "CONTENT TYPE NAME" Hope it helps! Add-PSSnapin "Microsoft.SharePoint.PowerShell" $webUrl=$args[0] $...


2

Example $webapp = Get-SPWebApplication "http://webapp" $webapp.SuiteNavBrandingText = "Intranet" $webapp.Update()


2

There is a way. Although it's theoretical. Modify your PowerShell script so that it also hosts a mini-web server. You can use two PowerShell modules for that: Import-Module Polaris -Verbose Import-Module PSHTML -Verbose Add-Type -AssemblyName System.Web http://chen.about-powershell.com/2018/09/exploring-pshtml-for-polaris-yet-another-way-to-build-forms-...


1

There are a few ways to do this in PowerShell (on the SharePoint box). All of the below examples will result with https://teams.SharePoint.com/sites/site The best way is to call the Root Site Collection's Web: $web = Get-SPWeb "https://teams.SharePoint.com/sites/site/communities/subsite" $web.Site You can try calling the Parent Web for each web (not as ...


1

Powershell: Either cast to an [uri] type and (re-)assemble the parts > [uri]"https://teams.SharePoint.com/sites/site/communities/subsite" AbsolutePath : /sites/site/communities/subsite AbsoluteUri : https://teams.sharepoint.com/sites/site/communities/subsite LocalPath : /sites/site/communities/subsite Authority : teams.sharepoint.com ...


1

Use &lt; instead of less than symbol. You can try below: "verb": "addSPFieldXml", "schemaXml": "<Field Type=\"Calculated\" ResultType=\"Text\" Name=\"CalcProbability\" DisplayName=\"Probability\" Required=\"FALSE\">. <Formula>=IF([Probability Value]&lt;0.5,\"Rare\",\"Likely\")</Formula></Field>"


1

You need to request the sub-sub child data again using Get-PnPNavigationNode command. Modify your code as below: $TopNavs = Get-PnPNavigationNode -Location TopNavigationBar |Select Title,Url, Id foreach($TopNav in $TopNavs) { $node = Get-PnPNavigationNode -Id $TopNav.Id Write-Host Write-Host "TopNav_Id: [" $TopNav.Id "]" "Title: " $TopNav....


1

If your custom solutions were delivered as .wsp files, you can export them from the old farm with the following PowerShell: (Get-SPFarm).Solutions | ForEach-Object{$var = (Get-Location).Path + “\” + $_.Name; $_.SolutionFile.SaveAs($var)} You can install them in the new farm with Add-SPSolution and Install-SPSolution. This approach won't fix any ...


1

Multiple things that seems of with your code. "Exported" has a ) in it's name. Followed by . + the string to check against. You need to declare $ListItemCollection as an array to be able to push multiple values to it. But I think you already have but it's not in the part of your script that you provided. It's always good to set the parameters delimiter ...


1

We can use the PowerShell below to achieve it. $ct = @() $Web = Get-SPWeb "http://subsiteurl" foreach($list in $Web.Lists) { if($list.BaseTemplate -eq "DocumentLibrary") { if(-not ($systemlibs -Contains $list.Title)) { if ($list.AllowContentTypes -eq $true) { foreach ($item ...


Only top voted, non community-wiki answers of a minimum length are eligible