Azure AD Connect: PowerShell-Referenz zu ADSyncToolsAzure AD Connect: ADSyncTools PowerShell Reference
Die folgende Dokumentation enthält Referenzinformationen für das PowerShell-Modul „ADSyncTools.psm1“, das in Azure AD Connect enthalten ist.The following documentation provides reference information for the ADSyncTools.psm1 PowerShell Module that is included with Azure AD Connect.
Installieren des PowerShell-Moduls „ADSyncTools“Install the ADSyncTools PowerShell Module
Gehen Sie folgendermaßen vor, um das PowerShell-Modul ADSyncTools zu installieren:To install the ADSyncTools PowerShell Module do the following:
- Öffnen Sie Windows PowerShell mit Administratorrechten.Open Windows PowerShell with administrative priviledges
- Geben Sie den folgenden Befehl ein (Sie können ihn auch kopieren und einfügen):Type or copy and paste the following:
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 Install-PackageProvider -Name NuGet -MinimumVersion 2.8.5.201 -Force Import-module -Name "C:\Program Files\Microsoft Azure Active Directory Connect\Tools\AdSyncTools"
- Drücken Sie die EINGABETASTE.Hit enter.
- Um zu überprüfen, ob das Modul installiert wurde, geben Sie folgenden Befehl ein (Sie können ihn auch kopieren und einfügen):To verify the module was installed, enter or copy and paste the following"
Get-module AdSyncTools
- Jetzt sollten Informationen zum Modul angezeigt werden.You should now see information about the module.
Clear-ADSyncToolsConsistencyGuidClear-ADSyncToolsConsistencyGuid
ZUSAMMENFASSUNGSYNOPSIS
Löscht die mS-Ds-ConsistencyGuid von dem AD-Benutzer.Clear the mS-Ds-ConsistencyGuid from AD User
SYNTAXSYNTAX
Clear-ADSyncToolsConsistencyGuid [-User] <Object> [<CommonParameters>]
DESCRIPTIONDESCRIPTION
Löscht den Wert in mS-Ds-ConsistencyGuid für den AD-Zielbenutzer.Clear the value in mS-Ds-ConsistencyGuid for the target AD user
BEISPIELEEXAMPLES
BEISPIEL 1EXAMPLE 1
Example of how to use this cmdlet
BEISPIEL 2EXAMPLE 2
Another example of how to use this cmdlet
PARAMETERSPARAMETERS
-User-User
Festzulegender Zielbenutzer in AD.Target User in AD to set
Type: Object
Parameter Sets: (All)
Aliases:
Required: True
Position: 1
Default value: None
Accept pipeline input: True (ByPropertyName, ByValue)
Accept wildcard characters: False
CommonParametersCommonParameters
Dieses Cmdlet unterstützt diese gängigen Parameter: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction und -WarningVariable.This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. Weitere Informationen finden Sie unter "about_CommonParameters" (https://go.microsoft.com/fwlink/?LinkID=113216).For more information, see about_CommonParameters (https://go.microsoft.com/fwlink/?LinkID=113216).
Confirm-ADSyncToolsADModuleLoadedConfirm-ADSyncToolsADModuleLoaded
ZUSAMMENFASSUNGSYNOPSIS
{{Zusammenfassung eintragen}}{{Fill in the Synopsis}}
SYNTAXSYNTAX
Confirm-ADSyncToolsADModuleLoaded
DESCRIPTIONDESCRIPTION
{{Beschreibung eintragen}}{{Fill in the Description}}
BEISPIELEEXAMPLES
Beispiel 1Example 1
PS C:\> {{ Add example code here }}
{{ Hier Beispielbeschreibung hinzufügen }}{{ Add example description here }}
Connect-AdSyncDatabaseConnect-AdSyncDatabase
ZUSAMMENFASSUNGSYNOPSIS
{{Zusammenfassung eintragen}}{{Fill in the Synopsis}}
SYNTAXSYNTAX
Connect-AdSyncDatabase [-Server] <String> [[-Instance] <String>] [[-Database] <String>] [[-UserName] <String>]
[[-Password] <String>] [<CommonParameters>]
DESCRIPTIONDESCRIPTION
{{Beschreibung eintragen}}{{Fill in the Description}}
BEISPIELEEXAMPLES
Beispiel 1Example 1
PS C:\> {{ Add example code here }}
{{ Hier Beispielbeschreibung hinzufügen }}{{ Add example description here }}
PARAMETERSPARAMETERS
-Database-Database
{{Datenbankbeschreibung eintragen}}{{Fill Database Description}}
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-Instance-Instance
{{Instanzbeschreibung eintragen}}{{Fill Instance Description}}
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-Password-Password
{{Kennwortbeschreibung eintragen}}{{Fill Password Description}}
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 4
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-Server-Server
{{Serverbeschreibung eintragen}}{{Fill Server Description}}
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: 0
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-UserName-UserName
{{UserName-Beschreibung eintragen}}{{Fill UserName Description}}
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 3
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
CommonParametersCommonParameters
Dieses Cmdlet unterstützt diese gängigen Parameter: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction und -WarningVariable.This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. Weitere Informationen finden Sie unter "about_CommonParameters" (https://go.microsoft.com/fwlink/?LinkID=113216).For more information, see about_CommonParameters (https://go.microsoft.com/fwlink/?LinkID=113216).
Export-ADSyncToolsConsistencyGuidMigrationExport-ADSyncToolsConsistencyGuidMigration
ZUSAMMENFASSUNGSYNOPSIS
Exportiert den ConsistencyGuid-Bericht.Export ConsistencyGuid Report
SYNTAXSYNTAX
Export-ADSyncToolsConsistencyGuidMigration [-AlternativeLoginId] [-UserPrincipalName] <String>
[-ImmutableIdGUID] <String> [-Output] <String> [<CommonParameters>]
DESCRIPTIONDESCRIPTION
Generiert einen ConsistencyGuid-Bericht, basierend auf eine CSV-Importdatei von Import-ADSyncToolsImmutableIdMigration.Generates a ConsistencyGuid report based on an import CSV file from Import-ADSyncToolsImmutableIdMigration
BEISPIELEEXAMPLES
BEISPIEL 1EXAMPLE 1
Import-Csv .\AllSyncUsers.csv | Export-ADSyncToolsConsistencyGuidMigration -Output ".\AllSyncUsers-Report"
BEISPIEL 2EXAMPLE 2
Another example of how to use this cmdlet
PARAMETERSPARAMETERS
-AlternativeLoginId-AlternativeLoginId
Alternative Anmelde-ID (E-Mail) verwenden.Use Alternative Login ID (mail)
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
-UserPrincipalName-UserPrincipalName
UserPrincipalNameUserPrincipalName
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: 1
Default value: None
Accept pipeline input: True (ByPropertyName, ByValue)
Accept wildcard characters: False
-ImmutableIdGUID-ImmutableIdGUID
ImmutableIdGUIDImmutableIdGUID
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: 2
Default value: None
Accept pipeline input: True (ByPropertyName, ByValue)
Accept wildcard characters: False
-Output-Output
Ausgabedateiname für CSV- und LOG-Dateien.Output filename for CSV and LOG files
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: 3
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
CommonParametersCommonParameters
Dieses Cmdlet unterstützt diese gängigen Parameter: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction und -WarningVariable.This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. Weitere Informationen finden Sie unter "about_CommonParameters" (https://go.microsoft.com/fwlink/?LinkID=113216).For more information, see about_CommonParameters (https://go.microsoft.com/fwlink/?LinkID=113216).
Get-ADSyncSQLBrowserInstancesGet-ADSyncSQLBrowserInstances
ZUSAMMENFASSUNGSYNOPSIS
{{Zusammenfassung eintragen}}{{Fill in the Synopsis}}
SYNTAXSYNTAX
Get-ADSyncSQLBrowserInstances [[-hostName] <String>]
DESCRIPTIONDESCRIPTION
{{Beschreibung eintragen}}{{Fill in the Description}}
BEISPIELEEXAMPLES
Beispiel 1Example 1
PS C:\> {{ Add example code here }}
{{ Hier Beispielbeschreibung hinzufügen }}{{ Add example description here }}
PARAMETERSPARAMETERS
-hostName-hostName
{{hostName-Beschreibung eintragen}}{{Fill hostName Description}}
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 0
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Get-ADSyncToolsADuserGet-ADSyncToolsADuser
ZUSAMMENFASSUNGSYNOPSIS
Ruft Benutzer aus AD ab.Get user from AD
SYNTAXSYNTAX
Get-ADSyncToolsADuser [-User] <Object> [<CommonParameters>]
DESCRIPTIONDESCRIPTION
Gibt ein AD-Objekt zurück. AUFGABE: Unterstützung für mehrere GesamtstrukturenReturns an AD object TO DO: Multi forest support
BEISPIELEEXAMPLES
BEISPIEL 1EXAMPLE 1
Example of how to use this cmdlet
BEISPIEL 2EXAMPLE 2
Another example of how to use this cmdlet
PARAMETERSPARAMETERS
-User-User
Zielbenutzer in AD zum Festlegen von ConsistencyGuid.Target User in AD to set ConsistencyGuid
Type: Object
Parameter Sets: (All)
Aliases:
Required: True
Position: 1
Default value: None
Accept pipeline input: True (ByPropertyName, ByValue)
Accept wildcard characters: False
CommonParametersCommonParameters
Dieses Cmdlet unterstützt diese gängigen Parameter: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction und -WarningVariable.This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. Weitere Informationen finden Sie unter "about_CommonParameters" (https://go.microsoft.com/fwlink/?LinkID=113216).For more information, see about_CommonParameters (https://go.microsoft.com/fwlink/?LinkID=113216).
Get-ADSyncToolsConsistencyGuidGet-ADSyncToolsConsistencyGuid
ZUSAMMENFASSUNGSYNOPSIS
Ruft die mS-Ds-ConsistencyGuid von dem AD-Benutzer ab.Get the mS-Ds-ConsistencyGuid from AD User
SYNTAXSYNTAX
Get-ADSyncToolsConsistencyGuid [-User] <Object> [<CommonParameters>]
DESCRIPTIONDESCRIPTION
Gibt den Wert im Attribut „mS-Ds-ConsistencyGuid“ des AD-Zielbenutzers im GUID-Format zurück.Returns the value in mS-Ds-ConsistencyGuid attribute of the target AD user in GUID format
BEISPIELEEXAMPLES
BEISPIEL 1EXAMPLE 1
Example of how to use this cmdlet
BEISPIEL 2EXAMPLE 2
Another example of how to use this cmdlet
PARAMETERSPARAMETERS
-User-User
Festzulegender Zielbenutzer in AD.Target User in AD to set
Type: Object
Parameter Sets: (All)
Aliases:
Required: True
Position: 1
Default value: None
Accept pipeline input: True (ByPropertyName, ByValue)
Accept wildcard characters: False
CommonParametersCommonParameters
Dieses Cmdlet unterstützt diese gängigen Parameter: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction und -WarningVariable.This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. Weitere Informationen finden Sie unter "about_CommonParameters" (https://go.microsoft.com/fwlink/?LinkID=113216).For more information, see about_CommonParameters (https://go.microsoft.com/fwlink/?LinkID=113216).
Get-ADSyncToolsObjectGuidGet-ADSyncToolsObjectGuid
ZUSAMMENFASSUNGSYNOPSIS
Ruft die ObjectGuid vom AD-Benutzer ab.Get the ObjectGuid from AD User
SYNTAXSYNTAX
Get-ADSyncToolsObjectGuid [-User] <Object> [<CommonParameters>]
DESCRIPTIONDESCRIPTION
Gibt den Wert im Attribut „ObjectGUID“ des AD-Zielbenutzers im GUID-Format zurück.Returns the value in ObjectGUID attribute of the target AD user in GUID format
BEISPIELEEXAMPLES
BEISPIEL 1EXAMPLE 1
Example of how to use this cmdlet
BEISPIEL 2EXAMPLE 2
Another example of how to use this cmdlet
PARAMETERSPARAMETERS
-User-User
Festzulegender Zielbenutzer in AD.Target User in AD to set
Type: Object
Parameter Sets: (All)
Aliases:
Required: True
Position: 1
Default value: None
Accept pipeline input: True (ByPropertyName, ByValue)
Accept wildcard characters: False
CommonParametersCommonParameters
Dieses Cmdlet unterstützt diese gängigen Parameter: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction und -WarningVariable.This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. Weitere Informationen finden Sie unter "about_CommonParameters" (https://go.microsoft.com/fwlink/?LinkID=113216).For more information, see about_CommonParameters (https://go.microsoft.com/fwlink/?LinkID=113216).
Get-ADSyncToolsRunHistoryGet-ADSyncToolsRunHistory
ZUSAMMENFASSUNGSYNOPSIS
Ruft den Ausführungsverlauf von AAD Connect ab.Get AAD Connect Run History
SYNTAXSYNTAX
Get-ADSyncToolsRunHistory [[-Days] <Int32>] [<CommonParameters>]
DESCRIPTIONDESCRIPTION
Eine Funktion, die den Ausführungsverlauf von AAD Connect im XML-Format zurückgibtFunction that returns the AAD Connect Run History in XML format
BEISPIELEEXAMPLES
BEISPIEL 1EXAMPLE 1
Get-ADSyncToolsRunHistory
BEISPIEL 2EXAMPLE 2
Get-ADSyncToolsRunHistory -Days 1
PARAMETERSPARAMETERS
-Days-Days
{{Tagebeschreibung eintragen}}{{Fill Days Description}}
Type: Int32
Parameter Sets: (All)
Aliases:
Required: False
Position: 1
Default value: 3
Accept pipeline input: False
Accept wildcard characters: False
CommonParametersCommonParameters
Dieses Cmdlet unterstützt diese gängigen Parameter: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction und -WarningVariable.This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. Weitere Informationen finden Sie unter "about_CommonParameters" (https://go.microsoft.com/fwlink/?LinkID=113216).For more information, see about_CommonParameters (https://go.microsoft.com/fwlink/?LinkID=113216).
Get-ADSyncToolsSourceAnchorChangedGet-ADSyncToolsSourceAnchorChanged
ZUSAMMENFASSUNGSYNOPSIS
Ruft Benutzer mit „SourceAnchor geändert“-Fehlern ab.Get users with SourceAnchor changed errors
SYNTAXSYNTAX
Get-ADSyncToolsSourceAnchorChanged [-sourcePath] <Object> [-outputPath] <Object> [<CommonParameters>]
DESCRIPTIONDESCRIPTION
Eine Funktion, die den Ausführungsverlauf von AAD Connect abfragt und alle Benutzer exportiert, für die der Fehler „Attribut „SourceAnchor“ wurde geändert“ gemeldet wird.Function queries AAD Connect Run History and exports all the users reporting the Error: "SourceAnchor attribute has changed."
BEISPIELEEXAMPLES
BEISPIEL 1EXAMPLE 1
#Required Parameters
$sourcePath = Read-Host -Prompt "Geben Sie Ihren Protokolldateipfad mit Dateinamen an." #"<Source_Path>" $outputPath = Read-Host -Prompt "Geben Sie Ihren Ausgabedateipfad mit Dateinamen an." #"<Out_Path>"$sourcePath = Read-Host -Prompt "Enter your log file path with file name" #"<Source_Path>" $outputPath = Read-Host -Prompt "Enter your out file path with file name" #"<Out_Path>"
Get-ADSyncToolsUsersSourceAnchorChanged -sourcePath $sourcePath -outputPath $outputPathGet-ADSyncToolsUsersSourceAnchorChanged -sourcePath $sourcePath -outputPath $outputPath
BEISPIEL 2EXAMPLE 2
Another example of how to use this cmdlet
PARAMETERSPARAMETERS
-sourcePath-sourcePath
{{sourcePath-Beschreibung eintragen}}{{Fill sourcePath Description}}
Type: Object
Parameter Sets: (All)
Aliases:
Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-outputPath-outputPath
{{out-Beschreibung eintragen}}{{Fill outputPath Description}}
Type: Object
Parameter Sets: (All)
Aliases:
Required: True
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
CommonParametersCommonParameters
Dieses Cmdlet unterstützt diese gängigen Parameter: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction und -WarningVariable.This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. Weitere Informationen finden Sie unter "about_CommonParameters" (https://go.microsoft.com/fwlink/?LinkID=113216).For more information, see about_CommonParameters (https://go.microsoft.com/fwlink/?LinkID=113216).
Import-ADSyncToolsImmutableIdMigrationImport-ADSyncToolsImmutableIdMigration
ZUSAMMENFASSUNGSYNOPSIS
Importiert ImmutableID aus AAD.Import ImmutableID from AAD
SYNTAXSYNTAX
Import-ADSyncToolsImmutableIdMigration [-Output] <String> [-IncludeSyncUsersFromRecycleBin]
[<CommonParameters>]
DESCRIPTIONDESCRIPTION
Generiert eine Datei mit allen in Azure AD synchronisierten Benutzern, die den Wert „ImmutableID“ im GUID-Format enthalten. Voraussetzungen: PowerShell-Modul „MSOnline“Generates a file with all Azure AD Synchronized users containing the ImmutableID value in GUID format Requirements: MSOnline PowerShell Module
BEISPIELEEXAMPLES
BEISPIEL 1EXAMPLE 1
Import-ADSyncToolsImmutableIdMigration -OutputFile '.\AllSyncUsers.csv'
BEISPIEL 2EXAMPLE 2
Another example of how to use this cmdlet
PARAMETERSPARAMETERS
-Output-Output
CSV-AusgabedateiOutput CSV file
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-IncludeSyncUsersFromRecycleBin-IncludeSyncUsersFromRecycleBin
Ruft synchronisierte Benutzer aus dem Azure AD-Papierkorb ab.Get Synchronized Users from Azure AD Recycle Bin
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
CommonParametersCommonParameters
Dieses Cmdlet unterstützt diese gängigen Parameter: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction und -WarningVariable.This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. Weitere Informationen finden Sie unter "about_CommonParameters" (https://go.microsoft.com/fwlink/?LinkID=113216).For more information, see about_CommonParameters (https://go.microsoft.com/fwlink/?LinkID=113216).
Invoke-AdSyncDatabaseQueryInvoke-AdSyncDatabaseQuery
ZUSAMMENFASSUNGSYNOPSIS
{{Zusammenfassung eintragen}}{{Fill in the Synopsis}}
SYNTAXSYNTAX
Invoke-AdSyncDatabaseQuery [-SqlConnection] <SqlConnection> [[-Query] <String>] [<CommonParameters>]
DESCRIPTIONDESCRIPTION
{{Beschreibung eintragen}}{{Fill in the Description}}
BEISPIELEEXAMPLES
Beispiel 1Example 1
PS C:\> {{ Add example code here }}
{{ Hier Beispielbeschreibung hinzufügen }}{{ Add example description here }}
PARAMETERSPARAMETERS
-Query-Query
{{Abfragebeschreibung eintragen}}{{Fill Query Description}}
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-SqlConnection-SqlConnection
{{SqlConnection-Beschreibung eintragen}}{{Fill SqlConnection Description}}
Type: SqlConnection
Parameter Sets: (All)
Aliases:
Required: True
Position: 0
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
CommonParametersCommonParameters
Dieses Cmdlet unterstützt diese gängigen Parameter: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction und -WarningVariable.This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. Weitere Informationen finden Sie unter "about_CommonParameters" (https://go.microsoft.com/fwlink/?LinkID=113216).For more information, see about_CommonParameters (https://go.microsoft.com/fwlink/?LinkID=113216).
Remove-ADSyncToolsExpiredCertificatesRemove-ADSyncToolsExpiredCertificates
ZUSAMMENFASSUNGSYNOPSIS
Skript zum Entfernen abgelaufener Zertifikate aus dem Attribut „UserCertificate“.Script to Remove Expired Certificates from UserCertificate Attribute
SYNTAXSYNTAX
Remove-ADSyncToolsExpiredCertificates [-TargetOU] <String> [[-BackupOnly] <Boolean>] [-ObjectClass] <String>
[<CommonParameters>]
DESCRIPTIONDESCRIPTION
Dieses Skript akzeptiert alle Objekte von einer Zielorganisationseinheit in Ihrer Active Directory-Domäne – gefiltert nach Objektklasse (Benutzer/Computer), und löscht alle abgelaufene Zertifikate, die im Attribut „UserCertificate“ vorhanden sind.This script takes all the objects from a target Organizational Unit in your Active Directory domain - filtered by Object Class (User/Computer) and deletes all expired certificates present in the UserCertificate attribute. Standardmäßig (BackupOnly-Modus) werden nur abgelaufene Zertifikate in einer Datei gesichert und keine Änderungen in Active Directory vorgenommen.By default (BackupOnly mode) it will only backup expired certificates to a file and not do any changes in AD. Wenn Sie „-BackupOnly $false“ verwenden, werden alle für diese Objekte im Attribut „UserCertificate“ vorhandenen abgelaufenen Zertifikate aus AD entfernt, nachdem sie in eine Datei kopiert wurden.If you use -BackupOnly $false then any Expired Certificate present in UserCertificate attribute for these objects will be removed from AD after being copied to file. Jedes Zertifikat wird unter einem gesonderten Dateinamen gesichert: ObjectClass_ObjectGUID_CertThumprint.cer. Das Skript erstellt außerdem eine Protokolldatei im CSV-Format mit allen Benutzern, die Zertifikate besitzen, die entweder gültig oder abgelaufen sind, inklusive der tatsächlich ausgeführten Aktion (Übersprungen/Exportiert/Gelöscht).Each certificate will be backed up to a separated filename: ObjectClass_ObjectGUID_CertThumprint.cer The script will also create a log file in CSV format showing all the users with certificates that either are valid or expired including the actual action taken (Skipped/Exported/Deleted).
BEISPIELEEXAMPLES
BEISPIEL 1EXAMPLE 1
Check all users in target OU - Expired Certificates will be copied to separated files and no certificates will be removed
Remove-ADSyncToolsExpiredCertificates -TargetOU "OU=Users,OU=Corp,DC=Contoso,DC=com" -ObjectClass userRemove-ADSyncToolsExpiredCertificates -TargetOU "OU=Users,OU=Corp,DC=Contoso,DC=com" -ObjectClass user
BEISPIEL 2EXAMPLE 2
Delete Expired Certs from all Computer objects in target OU - Expired Certificates will be copied to files and removed from AD
Remove-ADSyncToolsExpiredCertificates -TargetOU "OU=Computers,OU=Corp,DC=Contoso,DC=com" -ObjectClass computer -BackupOnly $falseRemove-ADSyncToolsExpiredCertificates -TargetOU "OU=Computers,OU=Corp,DC=Contoso,DC=com" -ObjectClass computer -BackupOnly $false
PARAMETERSPARAMETERS
-TargetOU-TargetOU
Ziel-OE, in der nach AD-Objekten gesucht werden soll.Target OU to lookup for AD objects
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-BackupOnly-BackupOnly
Bei „BackupOnly“ werden keine Zertifikate aus AD gelöscht.BackupOnly will not delete any certificates from AD
Type: Boolean
Parameter Sets: (All)
Aliases:
Required: False
Position: 2
Default value: True
Accept pipeline input: False
Accept wildcard characters: False
-ObjectClass-ObjectClass
ObjektklassenfilterObject Class filter
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: 3
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
CommonParametersCommonParameters
Dieses Cmdlet unterstützt diese gängigen Parameter: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction und -WarningVariable.This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. Weitere Informationen finden Sie unter "about_CommonParameters" (https://go.microsoft.com/fwlink/?LinkID=113216).For more information, see about_CommonParameters (https://go.microsoft.com/fwlink/?LinkID=113216).
Repair-ADSyncToolsAutoUpgradeStateRepair-ADSyncToolsAutoUpgradeState
ZUSAMMENFASSUNGSYNOPSIS
Kurze BeschreibungShort description
SYNTAXSYNTAX
Repair-ADSyncToolsAutoUpgradeState
DESCRIPTIONDESCRIPTION
Lange BeschreibungLong description
BEISPIELEEXAMPLES
BEISPIEL 1EXAMPLE 1
Example of how to use this cmdlet
BEISPIEL 2EXAMPLE 2
Another example of how to use this cmdlet
Resolve-ADSyncHostAddressResolve-ADSyncHostAddress
ZUSAMMENFASSUNGSYNOPSIS
{{Zusammenfassung eintragen}}{{Fill in the Synopsis}}
SYNTAXSYNTAX
Resolve-ADSyncHostAddress [[-hostName] <String>]
DESCRIPTIONDESCRIPTION
{{Beschreibung eintragen}}{{Fill in the Description}}
BEISPIELEEXAMPLES
Beispiel 1Example 1
PS C:\> {{ Add example code here }}
{{ Hier Beispielbeschreibung hinzufügen }}{{ Add example description here }}
PARAMETERSPARAMETERS
-hostName-hostName
{{hostName-Beschreibung eintragen}}{{Fill hostName Description}}
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 0
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Restore-ADSyncToolsExpiredCertificatesRestore-ADSyncToolsExpiredCertificates
ZUSAMMENFASSUNGSYNOPSIS
(AUFGABE) Stellt das AD-Attribut „UserCertificate“ aus einer Zertifikatdatei wieder her(TO DO) Restores AD UserCertificate attribute from a certificate file
SYNTAXSYNTAX
Restore-ADSyncToolsExpiredCertificates
DESCRIPTIONDESCRIPTION
Lange BeschreibungLong description
BEISPIELEEXAMPLES
BEISPIEL 1EXAMPLE 1
Example of how to use this cmdlet
BEISPIEL 2EXAMPLE 2
Another example of how to use this cmdlet
Set-ADSyncToolsConsistencyGuidSet-ADSyncToolsConsistencyGuid
ZUSAMMENFASSUNGSYNOPSIS
Legt „ms-DS-ConsistencyGuid“ für einen AD-Benutzer fest.Set mS-Ds-ConsistencyGuid on AD User
SYNTAXSYNTAX
Set-ADSyncToolsConsistencyGuid [-User] <Object> [-Value] <Object> [<CommonParameters>]
DESCRIPTIONDESCRIPTION
Legt einen Wert im Attribut „mS-Ds-ConsistencyGuid“ für den AD-Zielbenutzer fest.Set a value in mS-Ds-ConsistencyGuid attribute for the target AD user
BEISPIELEEXAMPLES
BEISPIEL 1EXAMPLE 1
Example of how to use this cmdlet
BEISPIEL 2EXAMPLE 2
Another example of how to use this cmdlet
PARAMETERSPARAMETERS
-User-User
Zielbenutzer in AD zum Festlegen von ConsistencyGuid.Target User in AD to set ConsistencyGuid
Type: Object
Parameter Sets: (All)
Aliases:
Required: True
Position: 1
Default value: None
Accept pipeline input: True (ByPropertyName, ByValue)
Accept wildcard characters: False
-Value-Value
ImmutableId (Byte-Array, GUID, GUID-Zeichenfolge oder Base64-Zeichenfolge)ImmutableId (Byte array, GUID, GUID string or Base64 string)
Type: Object
Parameter Sets: (All)
Aliases:
Required: True
Position: 2
Default value: None
Accept pipeline input: True (ByPropertyName, ByValue)
Accept wildcard characters: False
CommonParametersCommonParameters
Dieses Cmdlet unterstützt diese gängigen Parameter: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction und -WarningVariable.This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. Weitere Informationen finden Sie unter "about_CommonParameters" (https://go.microsoft.com/fwlink/?LinkID=113216).For more information, see about_CommonParameters (https://go.microsoft.com/fwlink/?LinkID=113216).
Test-ADSyncNetworkPortTest-ADSyncNetworkPort
ZUSAMMENFASSUNGSYNOPSIS
{{Zusammenfassung eintragen}}{{Fill in the Synopsis}}
SYNTAXSYNTAX
Test-ADSyncNetworkPort [[-hostName] <String>] [[-port] <String>]
DESCRIPTIONDESCRIPTION
{{Beschreibung eintragen}}{{Fill in the Description}}
BEISPIELEEXAMPLES
Beispiel 1Example 1
PS C:\> {{ Add example code here }}
{{ Hier Beispielbeschreibung hinzufügen }}{{ Add example description here }}
PARAMETERSPARAMETERS
-hostName-hostName
{{hostName-Beschreibung eintragen}}{{Fill hostName Description}}
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 0
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-port-port
{{Portbeschreibung eintragen}}{{Fill port Description}}
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Trace-ADSyncToolsADImportTrace-ADSyncToolsADImport
ZUSAMMENFASSUNGSYNOPSIS
Erstellt eine Ablaufverfolgungsdatei aus einem AD-Importschritt.Creates a trace file from and AD Import Step
SYNTAXSYNTAX
Trace-ADSyncToolsADImport [[-ADConnectorXML] <String>] [[-dc] <String>] [[-rootDN] <String>]
[[-filter] <String>] [-SkipCredentials] [[-ADwatermark] <String>] [<CommonParameters>]
DESCRIPTIONDESCRIPTION
Erstellt eine Ablaufverfolgung für alle LDAP-Abfragen einer AD-Importausführung von AAD Connect von einem bestimmten AD-Wasserzeichen-Prüfpunkt (Partitionscookie).Traces all ldap queries of an AAD Connect AD Import run from a given AD watermark checkpoint (partition cookie). Erstellt eine Ablaufverfolgungsdatei „.\ADimportTrace_yyyyMMddHHmmss.log“ im aktuellen Ordner.Creates a trace file '.\ADimportTrace_yyyyMMddHHmmss.log' on the current folder.
BEISPIELEEXAMPLES
BEISPIEL 1EXAMPLE 1
Example of how to use this cmdlet
BEISPIEL 2EXAMPLE 2
Another example of how to use this cmdlet
PARAMETERSPARAMETERS
-ADConnectorXML-ADConnectorXML
{{ADConnectorXML-Beschreibung eintragen}}{{Fill ADConnectorXML Description}}
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-dc-dc
XML-Datei eines AD-Connector-Exports.XML file of AD Connector Export
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 2
Default value: DC1.domain.contoso.com
Accept pipeline input: False
Accept wildcard characters: False
-rootDN-rootDN
ZieldomänencontrollerTarget Domain Controller
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 3
Default value: DC=Domain,DC=Contoso,DC=com
Accept pipeline input: False
Accept wildcard characters: False
-filter-filter
Gesamtstrukturstamm-DNForest Root DN
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 4
Default value: (&(objectClass=*))
Accept pipeline input: False
Accept wildcard characters: False
-SkipCredentials-SkipCredentials
Typen von AD-Objekten, für die eine Ablaufverfolgung erstellt werden soll > * = alle Objekttypen.Types of AD objects to trace > * = all object types
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
-ADwatermark-ADwatermark
Wenn die Ausführung bereits als Domänenadministrator erfolgt, besteht keine Notwendigkeit, AD-Anmeldeinformationen einzugeben.If already running as Domain Administrator there's no need to provide AD credentials. Manuelle Eingabe des Wasserzeichens anstelle einer XML-Datei. Beispiel: $ADwatermark = "TVNEUwMAAAAXyK9ir1zSAQAAAAAAAAAA(...)"Manual input of watermark, instead of XML file e.g. $ADwatermark = "TVNEUwMAAAAXyK9ir1zSAQAAAAAAAAAA(...)"
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 5
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
CommonParametersCommonParameters
Dieses Cmdlet unterstützt diese gängigen Parameter: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction und -WarningVariable.This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. Weitere Informationen finden Sie unter "about_CommonParameters" (https://go.microsoft.com/fwlink/?LinkID=113216).For more information, see about_CommonParameters (https://go.microsoft.com/fwlink/?LinkID=113216).
Trace-ADSyncToolsLdapQueryTrace-ADSyncToolsLdapQuery
ZUSAMMENFASSUNGSYNOPSIS
Kurze BeschreibungShort description
SYNTAXSYNTAX
Trace-ADSyncToolsLdapQuery [-Context] <String> [-Server] <String> [-Port] <Int32> [-Filter] <String>
[<CommonParameters>]
DESCRIPTIONDESCRIPTION
Lange BeschreibungLong description
BEISPIELEEXAMPLES
BEISPIEL 1EXAMPLE 1
Example of how to use this cmdlet
BEISPIEL 2EXAMPLE 2
Another example of how to use this cmdlet
PARAMETERSPARAMETERS
-Context-Context
Hilfebeschreibung zu Param1.Param1 help description
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-Server-Server
Hilfebeschreibung zu Param2.Param2 help description
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: 2
Default value: Localhost
Accept pipeline input: False
Accept wildcard characters: False
-Port-Port
Hilfebeschreibung zu Param2.Param2 help description
Type: Int32
Parameter Sets: (All)
Aliases:
Required: True
Position: 3
Default value: 389
Accept pipeline input: False
Accept wildcard characters: False
-Filter-Filter
Hilfebeschreibung zu Param2.Param2 help description
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: 4
Default value: (objectClass=*)
Accept pipeline input: False
Accept wildcard characters: False
CommonParametersCommonParameters
Dieses Cmdlet unterstützt diese gängigen Parameter: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction und -WarningVariable.This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. Weitere Informationen finden Sie unter "about_CommonParameters" (https://go.microsoft.com/fwlink/?LinkID=113216).For more information, see about_CommonParameters (https://go.microsoft.com/fwlink/?LinkID=113216).
Update-ADSyncToolsConsistencyGuidMigrationUpdate-ADSyncToolsConsistencyGuidMigration
ZUSAMMENFASSUNGSYNOPSIS
Aktualisiert Benutzer mit der neuen „ConsistencyGuid“ (ImmutableId).Updates users with the new ConsistencyGuid (ImmutableId)
SYNTAXSYNTAX
Update-ADSyncToolsConsistencyGuidMigration [[-DistinguishedName] <String>] [-ImmutableIdGUID] <String>
[-Action] <String> [-Output] <String> [-WhatIf] [-Confirm] [<CommonParameters>]
DESCRIPTIONDESCRIPTION
Aktualisiert Benutzer mit dem neuen Wert von „ConsistencyGuid“ (ImmutableId), der dem ConsistencyGuid-Bericht entnommen wurde. Diese Funktion unterstützt den WhatIf-Schalter. Hinweis: Der ConsistencyGuid-Bericht muss mit Tabstopps als Trennzeichen importiert werden.Updates users with the new ConsistencyGuid (ImmutableId) value taken from the ConsistencyGuid Report This function supports the WhatIf switch Note: ConsistencyGuid Report must be imported with Tab Demiliter
BEISPIELEEXAMPLES
BEISPIEL 1EXAMPLE 1
Import-Csv .\AllSyncUsersTEST-Report.csv -Delimiter "`t"| Update-ADSyncToolsConsistencyGuidMigration -Output .\AllSyncUsersTEST-Result2 -WhatIf
BEISPIEL 2EXAMPLE 2
Import-Csv .\AllSyncUsersTEST-Report.csv -Delimiter "`t"| Update-ADSyncToolsConsistencyGuidMigration -Output .\AllSyncUsersTEST-Result2
PARAMETERSPARAMETERS
-DistinguishedName-DistinguishedName
DistinguishedNameDistinguishedName
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 1
Default value: False
Accept pipeline input: True (ByPropertyName, ByValue)
Accept wildcard characters: False
-ImmutableIdGUID-ImmutableIdGUID
ImmutableIdGUIDImmutableIdGUID
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: 2
Default value: None
Accept pipeline input: True (ByPropertyName, ByValue)
Accept wildcard characters: False
-Action-Action
AktionAction
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: 3
Default value: None
Accept pipeline input: True (ByPropertyName, ByValue)
Accept wildcard characters: False
-Output-Output
Ausgabedateiname für LOG-Dateien.Output filename for LOG files
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: 4
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-WhatIf-WhatIf
Zeigt, was geschieht, wenn das Cmdlet ausgeführt wird.Shows what would happen if the cmdlet runs. Das Cmdlet wird nicht ausgeführt.The cmdlet is not run.
Type: SwitchParameter
Parameter Sets: (All)
Aliases: wi
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-Confirm-Confirm
Hiermit werden Sie vor der Ausführung des Cmdlets zur Bestätigung aufgefordert.Prompts you for confirmation before running the cmdlet.
Type: SwitchParameter
Parameter Sets: (All)
Aliases: cf
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
CommonParametersCommonParameters
Dieses Cmdlet unterstützt diese gängigen Parameter: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction und -WarningVariable.This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. Weitere Informationen finden Sie unter "about_CommonParameters" (https://go.microsoft.com/fwlink/?LinkID=113216).For more information, see about_CommonParameters (https://go.microsoft.com/fwlink/?LinkID=113216).