Jan 07 2020 09:00 AM
Jan 07 2020 12:15 PM
Hello@emalac !
You could try and use the PNP mdule
#Variables
$Cred = Get-Credential
$SiteURL = "https://domain.sharepoint.com"
$FileLocation ="/Documents/File.docx"
#Connect to PNP Online
Connect-PnPOnline -Url $SiteURL -Credentials $Cred
#Check In a File
Set-PnPFileCheckedIn -Url $FileLocation-CheckinType MajorCheckIn -Comment "Checked In at $(Get-Date)"