Code: Alles auswählen
(268) [5] [2026-04-30 11:08:34.077] [windomain] GetOutStreamFromSection: ExecWith_powershell_leave_domain "powershell.exe" winst /sysnative
(269) [6] [2026-04-30 11:08:56.435] [windomain] ExitCode 1
(270) [7] [2026-04-30 11:08:56.440] [windomain] The value of the variable "$list$" is now:
(271) [7] [2026-04-30 11:08:56.440] [windomain] (string 0)Remove-Computer : Fehler beim Entfernen des Computers "*hostname*" aus der Domäne "*domain*". Fehlermeldung:
(272) [7] [2026-04-30 11:08:56.440] [windomain] (string 1)Zuordnungen von Kontennamen und Sicherheitskennungen wurden nicht durchgeführt.
(273) [7] [2026-04-30 11:08:56.440] [windomain] (string 2)In C:\opsi.org\tmp\_opsiscript_8ur10Pe0AB.ps1:3 Zeichen:1
(274) [7] [2026-04-30 11:08:56.440] [windomain] (string 3)+ Remove-Computer -ComputerName "localhost" -UnjoinDomainCredential $my ...
(275) [7] [2026-04-30 11:08:56.440] [windomain] (string 4)+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
(276) [7] [2026-04-30 11:08:56.440] [windomain] (string 5) + CategoryInfo : OperationStopped: (*hostname*:String) [Remove-Computer], InvalidOperationException
(277) [7] [2026-04-30 11:08:56.440] [windomain] (string 6) + FullyQualifiedErrorId : FailToUnjoinDomain,Microsoft.PowerShell.Commands.RemoveComputerCommand
(278) [7] [2026-04-30 11:08:56.440] [windomain] (string 7)
(279) [7] [2026-04-30 11:08:56.440] [windomain] (string 8)
(280) [7] [2026-04-30 11:08:56.440] [windomain] (string 9)HasSucceeded ComputerNameEdit: Ggf kann man ein Property "Purge_Local" setzen, das folgenden Befehla ausführt: "dd-Computer -WorkGroupName "WORKGROUP" -Force -Restart"
Das scheint den Client aus der Domain zu nehmen.