Steps Involved:
Powershell script: ## Input Parameters required to check in a file in SharePoint 2010 documnet library$uri="http://serverName:10736/sites/ECT/_vti_bin/Lists.asmx" ## File Url that has to be checked in[string] $pageUrl="http://serverName:10736/sites/ECT/Shared Documents/BIVisioDiagram.vsd"## Check in comments[string] $comment="File checked in using web service"## CheckInType values 0, 1 or 2, where 0 = MinorCheckIn, 1 = MajorCheckIn, and 2 = OverwriteCheckIn[String]$CheckinType="0"$listWebServiceReference = New-WebServiceProxy -Uri $uri -UseDefaultCredential$listWebServiceReference.CheckInFile($pageUrl,$comment,$CheckinType)
## Input Parameters required to check in a file in SharePoint 2010 documnet library$uri="http://serverName:10736/sites/ECT/_vti_bin/Lists.asmx" ## File Url that has to be checked in[string] $pageUrl="http://serverName:10736/sites/ECT/Shared Documents/BIVisioDiagram.vsd"## Check in comments[string] $comment="File checked in using web service"## CheckInType values 0, 1 or 2, where 0 = MinorCheckIn, 1 = MajorCheckIn, and 2 = OverwriteCheckIn[String]$CheckinType="0"$listWebServiceReference = New-WebServiceProxy -Uri $uri -UseDefaultCredential$listWebServiceReference.CheckInFile($pageUrl,$comment,$CheckinType)
You need to be a premium member to use this feature. To access it, you'll have to upgrade your membership.
Become a sharper developer and jumpstart your career.
$0
$
. 00
monthly
For Basic members:
$20
For Premium members:
$45
For Elite members: