I am using SharePoint 2016 and want to hide created, created by, modified and modified by fields. This is in the document library view and not the new, edit or display forms (i.e. if you click on a Documents document library).

I need to do it via Powershell as part of a migration script but have had no luck. Can anyone assist?

Many thanks!

2 Answers 2


Remove Field from View using PowerShell in SharePoint for your reference:


  • You can add details from the link. Links may break in future, content in your answer will add value.
    – Asad Refai
    Aug 1, 2018 at 6:16

You can remove columns out of a view by powershell.

Copy this code and paste to a text file you rename to filename.ps1.

Add-PSSnapin Microsoft.SharePoint.PowerShell -erroraction SilentlyContinue
$web = Get-SPWeb https://siteurl
$list = $web.Lists["put list name here"];
$view = $list.Views | ? { $_.Title -eq 'All items' }

The script gets web -> list -> view. Then it removes ceated and modified from the view. You can add more columns as you want. With update it updates the list.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.