script to check in the documents only from subsite

sns 9,236 Reputation points
2020-08-10T09:38:40.897+00:00

script to check in the documents only from subsite , those documents showing already checked out option for many documents. Please help in sharing the script only for subsite

SharePoint Server Management
SharePoint Server Management
SharePoint Server: A family of Microsoft on-premises document management and storage systems.Management: The act or process of organizing, handling, directing or controlling something.
2,941 questions
0 comments No comments
{count} votes

Accepted answer
  1. Echo Du_MSFT 17,161 Reputation points
    2020-08-11T07:39:49.317+00:00

    You could using PowerShell to loop through all Documents in the specific subsite Documents Library, and then check in them.

    Please open Windows PowerShell as an SharePoint admin and run the following script.

    16888-script.txt


1 additional answer

Sort by: Most helpful
  1. sns 9,236 Reputation points
    2020-08-13T11:01:47.19+00:00

    Thank you. It worked.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.