question

sns1 avatar image
1 Vote"
sns1 asked ·

want a script to check in all the documents from subsite

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

office-sharepoint-server-itpro
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.

TKujala avatar image
0 Votes"
TKujala answered ·
· 1 ·
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 Kujala,
That is for online, I am looking for on premises for subsite only.
Thanks
SK

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

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

·
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.

sns1 avatar image
0 Votes"
sns1 answered ·

HI Lisa,

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

· 1 ·
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.