Diff
checker
Text
Text
Bilder
Dokumente
Excel
Ordner
Legal
Enterprise
Desktop-App
Preise
Einloggen
Diffchecker Desktop herunterladen
Texte vergleichen
Finde den Unterschied zwischen zwei Textdateien
Werkzeuge
Verlauf
Anzeige
Ansicht
Zweispaltig
Einspaltig
Live-Editor
Leerzeichen ausblenden
Gleiches ausblenden
Zeilenumbruch aus
Vergleichsgenauigkeit
Intelligent
Syntax
Keine
Darstellung ändern
Verarbeitung
Ignorieren
Text umwandeln
Zur ersten Änderung
Eingabe bearbeiten
Diffchecker Desktop
Der sicherste Weg, Diffchecker zu nutzen. Hol dir die Desktop-App: Deine Diffs verlassen nie deinen Computer!
Desktop holen
powershell shell diff
Erstellt
vor 7 Jahren
Diff läuft nie ab
Löschen
Exportieren
Teilen
Erklären
87 Entfernungen
Zeilen
Gesamt
Entfernt
Zeichen
Gesamt
Entfernt
Um diese Funktion weiterhin zu nutzen, aktualisiere auf
Diff
checker
Pro
Preise anzeigen
95 Zeilen
Kopieren
67 Hinzufügungen
Zeilen
Gesamt
Hinzugefügt
Zeichen
Gesamt
Hinzugefügt
Um diese Funktion weiterhin zu nutzen, aktualisiere auf
Diff
checker
Pro
Preise anzeigen
82 Zeilen
Kopieren
Kopieren
Kopiert
Kopieren
Kopiert
function Get-
S
POFolderFiles
function Get-
s
POFolderFiles
{
{
Kopieren
Kopiert
Kopieren
Kopiert
param
(
param
(
[Parameter(Mandatory
=
$true,Position
=
1)]
[Parameter(Mandatory
=
$true,Position
=
1)]
[string]$Username,
[string]$Username,
[Parameter(Mandatory
=
$true,Position
=
2)]
[Parameter(Mandatory
=
$true,Position
=
2)]
[string]$Url,
[string]$Url,
[Parameter(Mandatory
=
$true,Position
=
3)]
[Parameter(Mandatory
=
$true,Position
=
3)]
$password,
$password,
[Parameter(Mandatory
=
$true,Position
=
4)]
[Parameter(Mandatory
=
$true,Position
=
4)]
[string]$ListTitle
,
[string]$ListTitle
[Parameter(Mandatory=$true,Position=5)]
[string]$CSVPath
)
)
Kopieren
Kopiert
Kopieren
Kopiert
$ctx
=
New-Object Microsoft.SharePoint.Client.ClientContext
($Url)
$ctx
=
New-Object Microsoft.SharePoint.Client.ClientContext
($Url)
$ctx.Credentials = New-Object Microsoft.SharePoint.Client.SharePointOnlineCredentials
($Username,
$password)
$ctx.Credentials = New-Object Microsoft.SharePoint.Client.SharePointOnlineCredentials
($Username,
$password)
$ctx.Load($ctx.Web)
$ctx.Load($ctx.Web)
$ctx.ExecuteQuery()
$ctx.ExecuteQuery()
Kopieren
Kopiert
Kopieren
Kopiert
$ll
=
$ctx.Web.Lists.GetByTitle($ListTitle)
$ll
=
$ctx.Web.Lists.GetByTitle($ListTitle)
$ctx.Load($ll)
$ctx.Load($ll)
$ctx.ExecuteQuery()
$ctx.ExecuteQuery()
$spqQuery = New-Object Microsoft.SharePoint.Client.CamlQuery
$spqQuery = New-Object Microsoft.SharePoint.Client.CamlQuery
Kopieren
Kopiert
Kopieren
Kopiert
$spqQuery.ViewXml =
"<View Scope='RecursiveAll'
/
>";
$spqQuery.ViewXml =
"<View Scope='RecursiveAll'
><RowLimit>100</RowLimit></View
>";
$itemki
=
$ll.GetItems($spqQuery)
do {
$itemki
=
$ll.GetItems($spqQuery)
$ctx.Load($itemki)
$ctx.Load($itemki)
$ctx.ExecuteQuery()
$ctx.ExecuteQuery()
Kopieren
Kopiert
Kopieren
Kopiert
foreach
($item in $itemki)
foreach
($item in $itemki)
{
{
Kopieren
Kopiert
Kopieren
Kopiert
Write-Host $item["FileRef"]
Write-Host $item["FileRef"]
$file =
$file =
$ctx.Web.GetFileByServerRelativeUrl($item["FileRef"]);
$ctx.Web.GetFileByServerRelativeUrl($item["FileRef"]);
$ctx.Load($file)
$ctx.Load($file)
$ctx.Load($file.Versions)
$ctx.Load($file.Versions)
$ctx.ExecuteQuery()
$ctx.ExecuteQuery()
if ($file.Versions.Count -eq 0)
if ($file.Versions.Count -eq 0)
{
{
$obj
=
New-Object PSObject
$obj
=
New-Object PSObject
$obj | Add-Member NoteProperty ServerRelativeUrl
($file.ServerRelativeUrl)
$obj | Add-Member NoteProperty ServerRelativeUrl
($file.ServerRelativeUrl)
$obj | Add-Member NoteProperty FileLeafRef
($item["FileLeafRef"])
$obj | Add-Member NoteProperty FileLeafRef
($item["FileLeafRef"])
$obj | Add-Member NoteProperty Versions
("No Versions Available")
$obj | Add-Member NoteProperty Versions
("No Versions Available")
$obj | export-csv -Path $CSVPath -Append
}
}
else
else
{
{
$file.Versions.DeleteAll()
$file.Versions.DeleteAll()
Kopieren
Kopiert
Kopieren
Kopiert
try { $ctx.ExecuteQuery()
try { $ctx.ExecuteQuery()
$obj
=
New-Object PSObject
$obj
=
New-Object PSObject
$obj | Add-Member NoteProperty ServerRelativeUrl
($file.ServerRelativeUrl)
$obj | Add-Member NoteProperty ServerRelativeUrl
($file.ServerRelativeUrl)
$obj | Add-Member NoteProperty FileLeafRef
($item["FileLeafRef"])
$obj | Add-Member NoteProperty FileLeafRef
($item["FileLeafRef"])
$obj | Add-Member NoteProperty Versions
($file.Versions.Count + " versions were deleted")
$obj | Add-Member NoteProperty Versions
($file.Versions.Count + " versions were deleted")
$obj | export-csv -Path $CSVPath -Append
}
}
catch {
catch {
$obj
=
New-Object PSObject
$obj
=
New-Object PSObject
$obj | Add-Member NoteProperty ServerRelativeUrl
($file.ServerRelativeUrl)
$obj | Add-Member NoteProperty ServerRelativeUrl
($file.ServerRelativeUrl)
$obj | Add-Member NoteProperty FileLeafRef
($item["FileLeafRef"])
$obj | Add-Member NoteProperty FileLeafRef
($item["FileLeafRef"])
$obj | Add-Member NoteProperty Versions
($file.Versions.Count + " versions. Failed to delete")
$obj | Add-Member NoteProperty Versions
($file.Versions.Count + " versions. Failed to delete")
$obj | export-csv -Path $CSVPath -Append
}
}
}
}
Kopieren
Kopiert
Kopieren
Kopiert
Kopieren
Kopiert
Kopieren
Kopiert
}
}
$spqQuery.ListItemCollectionPosition = $itemki.ListItemCollectionPosition
} while ($itemki.ListItemCollectionPosition)
}
}
#Paths to SDK
#Paths to SDK
Kopieren
Kopiert
Kopieren
Kopiert
Add-Type -Path "
c:\Program Files\Common Files\microsoft shared\Web Server Extensions\15\ISAPI
\Microsoft.SharePoint.Client.dll"
Add-Type -Path "
.\Lib
\Microsoft.SharePoint.Client.dll"
Add-Type -Path "
c:\Program Files\Common Files\microsoft shared\Web Server Extensions\15\ISAPI
\Microsoft.SharePoint.Client.Runtime.dll"
Add-Type -Path "
.\Lib
\Microsoft.SharePoint.Client.Runtime.dll"
#Enter the data
#Enter the data
Kopieren
Kopiert
Kopieren
Kopiert
$AdminPassword=Read-Host -Prompt "Enter password" -AsSecureString
$Url
=
"https://
TODO-my
.sharepoint.com/
personal/TODO_SITE_NAME"
$username="trial@trialtrial125.onmicrosoft.com"
$Url
=
"https://
trialtrial125
.sharepoint.com/
sites/teamsitewithlibraries"
$ListTitle="Not-Empty-Document-Library"
$csvPath="C:\Users\ivo\Desktop\testpath114.csv"
Kopieren
Kopiert
Kopieren
Kopiert
$username = "TODO_USERNAME"
$AdminPassword = ConvertTo-SecureString -String "TODO_PASSWORD" -AsPlainText -Force
#$AdminPassword=Read-Host -Prompt "Enter password" -AsSecureString
Kopieren
Kopiert
Kopieren
Kopiert
Get-sPOFolderFiles -User
n
ame $username -Url $Url -password $AdminPassword -ListTitle $ListTitle
-CSVPath $csvPath
#$ListTitle = "文档"
$ListTitle="Documents"
Get-sPOFolderFiles -User
N
ame $username -Url $Url -password $AdminPassword -ListTitle $ListTitle
Gespeicherte Diffs
Originaltext
Datei öffnen
function Get-SPOFolderFiles { param ( [Parameter(Mandatory=$true,Position=1)] [string]$Username, [Parameter(Mandatory=$true,Position=2)] [string]$Url, [Parameter(Mandatory=$true,Position=3)] $password, [Parameter(Mandatory=$true,Position=4)] [string]$ListTitle, [Parameter(Mandatory=$true,Position=5)] [string]$CSVPath ) $ctx=New-Object Microsoft.SharePoint.Client.ClientContext($Url) $ctx.Credentials = New-Object Microsoft.SharePoint.Client.SharePointOnlineCredentials($Username, $password) $ctx.Load($ctx.Web) $ctx.ExecuteQuery() $ll=$ctx.Web.Lists.GetByTitle($ListTitle) $ctx.Load($ll) $ctx.ExecuteQuery() $spqQuery = New-Object Microsoft.SharePoint.Client.CamlQuery $spqQuery.ViewXml ="<View Scope='RecursiveAll' />"; $itemki=$ll.GetItems($spqQuery) $ctx.Load($itemki) $ctx.ExecuteQuery() foreach($item in $itemki) { Write-Host $item["FileRef"] $file = $ctx.Web.GetFileByServerRelativeUrl($item["FileRef"]); $ctx.Load($file) $ctx.Load($file.Versions) $ctx.ExecuteQuery() if ($file.Versions.Count -eq 0) { $obj=New-Object PSObject $obj | Add-Member NoteProperty ServerRelativeUrl($file.ServerRelativeUrl) $obj | Add-Member NoteProperty FileLeafRef($item["FileLeafRef"]) $obj | Add-Member NoteProperty Versions("No Versions Available") $obj | export-csv -Path $CSVPath -Append } else { $file.Versions.DeleteAll() try { $ctx.ExecuteQuery() $obj=New-Object PSObject $obj | Add-Member NoteProperty ServerRelativeUrl($file.ServerRelativeUrl) $obj | Add-Member NoteProperty FileLeafRef($item["FileLeafRef"]) $obj | Add-Member NoteProperty Versions($file.Versions.Count + " versions were deleted") $obj | export-csv -Path $CSVPath -Append } catch { $obj=New-Object PSObject $obj | Add-Member NoteProperty ServerRelativeUrl($file.ServerRelativeUrl) $obj | Add-Member NoteProperty FileLeafRef($item["FileLeafRef"]) $obj | Add-Member NoteProperty Versions($file.Versions.Count + " versions. Failed to delete") $obj | export-csv -Path $CSVPath -Append } } } } #Paths to SDK Add-Type -Path "c:\Program Files\Common Files\microsoft shared\Web Server Extensions\15\ISAPI\Microsoft.SharePoint.Client.dll" Add-Type -Path "c:\Program Files\Common Files\microsoft shared\Web Server Extensions\15\ISAPI\Microsoft.SharePoint.Client.Runtime.dll" #Enter the data $AdminPassword=Read-Host -Prompt "Enter password" -AsSecureString $username="trial@trialtrial125.onmicrosoft.com" $Url="https://trialtrial125.sharepoint.com/sites/teamsitewithlibraries" $ListTitle="Not-Empty-Document-Library" $csvPath="C:\Users\ivo\Desktop\testpath114.csv" Get-sPOFolderFiles -Username $username -Url $Url -password $AdminPassword -ListTitle $ListTitle -CSVPath $csvPath
Bearbeitung
Datei öffnen
function Get-sPOFolderFiles { param( [Parameter(Mandatory = $true,Position = 1)] [string]$Username, [Parameter(Mandatory = $true,Position = 2)] [string]$Url, [Parameter(Mandatory = $true,Position = 3)] $password, [Parameter(Mandatory = $true,Position = 4)] [string]$ListTitle ) $ctx = New-Object Microsoft.SharePoint.Client.ClientContext ($Url) $ctx.Credentials = New-Object Microsoft.SharePoint.Client.SharePointOnlineCredentials ($Username,$password) $ctx.Load($ctx.Web) $ctx.ExecuteQuery() $ll = $ctx.Web.Lists.GetByTitle($ListTitle) $ctx.Load($ll) $ctx.ExecuteQuery() $spqQuery = New-Object Microsoft.SharePoint.Client.CamlQuery $spqQuery.ViewXml = "<View Scope='RecursiveAll'><RowLimit>100</RowLimit></View>"; do { $itemki = $ll.GetItems($spqQuery) $ctx.Load($itemki) $ctx.ExecuteQuery() foreach ($item in $itemki) { Write-Host $item["FileRef"] $file = $ctx.Web.GetFileByServerRelativeUrl($item["FileRef"]); $ctx.Load($file) $ctx.Load($file.Versions) $ctx.ExecuteQuery() if ($file.Versions.Count -eq 0) { $obj = New-Object PSObject $obj | Add-Member NoteProperty ServerRelativeUrl ($file.ServerRelativeUrl) $obj | Add-Member NoteProperty FileLeafRef ($item["FileLeafRef"]) $obj | Add-Member NoteProperty Versions ("No Versions Available") } else { $file.Versions.DeleteAll() try { $ctx.ExecuteQuery() $obj = New-Object PSObject $obj | Add-Member NoteProperty ServerRelativeUrl ($file.ServerRelativeUrl) $obj | Add-Member NoteProperty FileLeafRef ($item["FileLeafRef"]) $obj | Add-Member NoteProperty Versions ($file.Versions.Count + " versions were deleted") } catch { $obj = New-Object PSObject $obj | Add-Member NoteProperty ServerRelativeUrl ($file.ServerRelativeUrl) $obj | Add-Member NoteProperty FileLeafRef ($item["FileLeafRef"]) $obj | Add-Member NoteProperty Versions ($file.Versions.Count + " versions. Failed to delete") } } } $spqQuery.ListItemCollectionPosition = $itemki.ListItemCollectionPosition } while ($itemki.ListItemCollectionPosition) } #Paths to SDK Add-Type -Path ".\Lib\Microsoft.SharePoint.Client.dll" Add-Type -Path ".\Lib\Microsoft.SharePoint.Client.Runtime.dll" #Enter the data $Url = "https://TODO-my.sharepoint.com/personal/TODO_SITE_NAME" $username = "TODO_USERNAME" $AdminPassword = ConvertTo-SecureString -String "TODO_PASSWORD" -AsPlainText -Force #$AdminPassword=Read-Host -Prompt "Enter password" -AsSecureString #$ListTitle = "文档" $ListTitle="Documents" Get-sPOFolderFiles -UserName $username -Url $Url -password $AdminPassword -ListTitle $ListTitle
Unterschied finden