36 lines
1.3 KiB
PowerShell
36 lines
1.3 KiB
PowerShell
# ==============================================================================
|
|
# 🛡️ Computer-Verwaltung - AD 06: Computerkonten & Domänenbeitritt
|
|
# ==============================================================================
|
|
|
|
# 🎯 TEILZIEL 1: Computerkonto im passenden OU-Pfad anlegen
|
|
# 🎯 TEILZIEL 2: Secure Channel zwischen Client und DC mit Test-ComputerSecureChannel prüfen
|
|
# 🎯 TEILZIEL 3: Offline Domain Join Bereitstellungsdatei mit djoin.exe /provision erzeugen
|
|
# 🎯 TEILZIEL 4: Veraltete Computerkonten identifizieren und deaktivieren
|
|
|
|
function Add-DomainComputerAccount {
|
|
[CmdletBinding()]
|
|
param(
|
|
[Parameter(Mandatory = $false)]
|
|
[string]$Domain = "corp.it-praxisportal.de",
|
|
|
|
[Parameter(Mandatory = $false)]
|
|
[hashtable]$Options = @{}
|
|
)
|
|
|
|
Write-Host "▶ Starte AD-Operation: Add-DomainComputerAccount für $Domain..." -ForegroundColor Cyan
|
|
|
|
# TODO: Implementiere die geforderten Active Directory Schritte
|
|
$result = [PSCustomObject]@{
|
|
Success = $false
|
|
Domain = $Domain
|
|
Status = "Ready"
|
|
Module = "06_computerkonten_und_domaenenbeitritt"
|
|
}
|
|
|
|
return $result
|
|
}
|
|
|
|
# Direkter Aufruf bei Skriptausführung
|
|
if ($MyInvocation.InvocationName -ne '.') {
|
|
Add-DomainComputerAccount
|
|
}
|