AD example
active directory recycle bin
time limited group membership
backup comandline + veeam
vycitanie casu systemu windows active directory PDC emulator
w32tm /query /status /verbose
Set time NTP server
w32tm.exe /config /syncfromflags:manual /manualpeerlist:131.107.13.100,0x8 /reliable:yes /update
Zistenie informacie cez regedit
HKLM\System\CurrentControlSet\Services\W32Time\Parameters
TYPE NTP – synchronizuje sa s NTP
TYPE NT5DC – synchornizacia z active directory
Referencia:
https://docs.microsoft.com/en-us/services-hub/health/remediation-steps-ad/configure-the-root-pdc-with-an-authoritative-time-source-and-avoid-widespread-time-skew
AD backup
Zobrazenie casu zaloh:
repadmin /showbackup
Zobrazenie statusu backup:
repadmin /showbackup *
Instalacia bckup
Add-Windowsfeature Windows-Server-Backup –Includeallsubfeature
Nastavenie zalohy:
Import-Module ServerManager
[string]$date = get-date -f 'yyyy-MM-dd'
$path=”\\adfs\bck\”
$TargetUNC=$path+$date
$TestTargetUNC= Test-Path -Path $TargetUNC
if (!($TestTargetUNC)){
New-Item -Path $TargetUNC -ItemType directory
}
$WBadmin_cmd = "wbadmin start backup -backuptarget:$path -include:C:\Windows\NTDS\ntds.dit -quiet"
Invoke-Expression $WBadmin_cmd
Je potrebne externy share.!!