question

sns1 avatar image
0 Votes"
sns1 asked ·

ALthough i gave correct input powershell output giving error

ALthough i gave correct input powershell output giving error

Iam trying to unlock the list view threshold (disable) but not sure where it is going wrong
I did it many times but this time it is coming up with error below . I tried to use get-spweb and get-spsite in the script but not use
please help 76265-capture.jpg


office-sharepoint-server-administration
capture.jpg (65.7 KiB)
· 2
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @sns1 ,

Would you tell me whether your issue has been resolved or have any update ?
I am looking forward to your reply.

Have a nice day!

0 Votes 0 ·

Hi @sns1 ,

Can you tell me whether your issue has been resolved or have any update?

I am looking forward to your reply.

0 Votes 0 ·

1 Answer

EchoDu-MSFT avatar image
0 Votes"
EchoDu-MSFT answered ·

Hi @sns1 ,

Please use the below PowerShell script as an administrator

 Add-PSSnapin Microsoft.SharePoint.PowerShell
 $web = Get-SPWeb http://SiteURL/
 $web.AllowUnsafeUpdates = $True
 $list = $web.Lists[“YourListName”]
 $list.EnableThrottling = $false
 $list.Update()
 $web.AllowUnsafeUpdates = $False
 $web.Update()
 $web.Dispose()

76400-powershell.png

Thanks,
Echo Du
=================
If an Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.





powershell.png (62.1 KiB)
· 9 ·
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi Echo DU,
I see following error message. Please help
76508-capture.jpg


0 Votes 0 ·
capture.jpg (89.6 KiB)

Hi @sns1 ,

The error indicates that there is no list named “Workflow History” on your site.

Please check the actual DisplayName of the list you specified.

 $Web = Get-SPWeb http://siterel 
 $ResultData = @()
 $ListCollection = $Web.lists | Where-Object  { ($_.hidden -eq $false) -and ($_.IsSiteAssetsLibrary -eq $false)}
 ForEach ($List in $ListCollection)
 {
     $ResultData+= New-Object PSObject -Property @{
         'List/Library Name' = $List.Title
         'List URL' = "$($Web.Url)/$($List.RootFolder.Url)"
     }
 }
 $ResultData 

76587-check-list.png

Thanks,
Echo Du

0 Votes 0 ·
check-list.png (20.0 KiB)
sns1 avatar image sns1 EchoDu-MSFT ·

HI Echo Du,

It appears to be no output, please find below screenshot
usually workflow history should be available right? why it is missing in this site?
76598-nooutput.jpg


0 Votes 0 ·
nooutput.jpg (58.9 KiB)
Show more comments