want a script to check in all the documents from subsite

sns 9,226 Reputation points
2020-07-23T13:04:47.23+00:00

want a power shell script to check in all the documents from sub site. Please help.

SharePoint Server
SharePoint Server
A family of Microsoft on-premises document management and storage systems.
2,221 questions
0 comments No comments
{count} vote

3 answers

Sort by: Most helpful
  1. T. Kujala 8,701 Reputation points
    2020-07-24T03:34:20.69+00:00

  2. Lisa Chen-MSFT 1 Reputation point
    2020-07-24T09:44:44.257+00:00

    You can use PowerShell to loop through all document libraries in a site and then check in all documents.

    PowerShell to Find All Checked Out Files and Check-in from a Web Application for your reference (you need to make some change to achieve your requirement):

    https://www.sharepointdiary.com/2013/02/find-all-checked-out-files-and-check-in.html

    0 comments No comments

  3. sns 9,226 Reputation points
    2020-07-27T13:43:16.42+00:00

    HI Lisa,

    Please help me in changes for the script for only subsite, I am not sure on where to change.
    Thanks
    sns