FSMO Rollen übertragen

Februar 1st, 2021 by Jan Gabriel Keine Kommentare »

Move-ADDirectoryServerOperationMasterRole -Identity NEUERDC -OperationMasterRole RIDMaster, PDCEmulator, InfrastructureMaster, SchemaMaster, DomainNamingMaster

L2TP Windows 10 hinter NAT

November 9th, 2020 by Jan Gabriel Keine Kommentare »

Unter

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\PolicyAgent einen DWORD-Wert AssumeUDPEncapsulationContextOnSendRule mit dem Wert 2 anlegen.

RDS Benutzer Cals case sensitive

Juli 30th, 2020 by Jan Gabriel Keine Kommentare »

You can grant the permissions using Active Directory Users and Computers using below basic steps:

  1. On the OU that contains your users, right-click and choose Delegate Control... , follow wizard
  2. On Users and Groups page, click Add and then enter SELF
  3. On Tasks to Delegate page, select Create a custom task to delegate
  4. On Active Directory Object Type page select Only the following objects in the folder, then scroll down and select User objects
  5. On Permissions page, select General, then scroll down and select Read and write Terminal Server license server

Exchange alle freigegebenen Postfächer mit copy message on sent

Juni 23rd, 2020 by Jan Gabriel Keine Kommentare »

Get-Mailbox -RecipientTypeDetails shared | Where-Object{$_.messagecopyforsentasenabled -eq „“} | Set-Mailbox -MessageCopyForSendOnBehalfEnabled $true -MessageCopyForSentAsEnabled $true

Outlook ZeroConfig in Domäne mit Exchange

Juni 17th, 2020 by Jan Gabriel Keine Kommentare »
  • Struktur: HKEY_Current_USER
  • Schlüsselpfad: SOFTWARE\Microsoft\Office\16.0\Outlook\AutoDiscover
  • Name: ZeroConfigExchange
  • Werttyp: REG_DWORD
  • Wertdaten: 1 (Dezimal)

Für ältere Outlook Versionen ändert sich nur der Schlüsselpfad wie folgt:

  • Outlook 2013: SOFTWARE\Microsoft\Office\15.0\Outlook\AutoDiscover
  • Outlook 2010: SOFTWARE\Microsoft\Office\14.0\Outlook\AutoDiscover
  • Outlook 2007: SOFTWARE\Microsoft\Office\12.0\Outlook\AutoDiscover

Zugriff per SMB nicht möglich, meistens von Scannern außerhalb des Subnets

Juni 12th, 2020 by Jan Gabriel Keine Kommentare »

To resolve this you have to add a registry key to each affected server and reboot it afterwards:
SUBKEY: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\NetBT\Parameters
Value Name: AllowNBToInternet
Type: Dword
Value: 1
Default value of the flag: 0

Vertrauensstellung eines PCs zum AD wiederherstellen

April 20th, 2020 by Jan Gabriel Keine Kommentare »

In der privilegierten Powershell:

Reset-ComputerMachinePassword -Server DC -Credential domain\administrator

Startmenu bei Roaming reparieren

April 15th, 2020 by Jan Gabriel Keine Kommentare »

C:\Windows\System32\tdlrecover.exe -reregister -resetlayout -resetcache

Evtl. hier noch mal in der Registry gucken:

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\StartPage 

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\StartPage2 

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Taskband 

Es gibt auch noch folgenden Hinweis, wenn gar nix geht:

reg delete HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SharedAccess\Parameters\FirewallPolicy\FirewallRules /va /f
reg delete HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SharedAccess\Parameters\FirewallPolicy\RestrictedServices\Configurable\System /va /f

Exchange anonymous Connector für relay

November 29th, 2019 by Jan Gabriel Keine Kommentare »

Connector erstellen:
New-ReceiveConnector-Name“Anonymous Relay“-UsageCustom-PermissionGroupsAnonymousUsers-Bindings<IP des Exchangeserver>:25-RemoteIpRanges<IP des Gerät / des Servers der anonym Relayen darf>

Berechtigungen setzen:
#Am deutsch-sprachigen Exchange:
Get-ReceiveConnector „Anonymous Relay“ | Add-ADPermission -User „NT-AUTORITÄT\ANONYMOUS-ANMELDUNG“ -ExtendedRights „Ms-Exch-SMTP-Accept-Any-Recipient“
#Am englisch-sprachigen Exchange:
Get-ReceiveConnector „Anonymous Relay“ | Add-ADPermission -User „NT AUTHORITY\ANONYMOUS LOGON“ -ExtendedRights „Ms-Exch-SMTP-Accept-Any-Recipient“

Domänen Migration

Oktober 23rd, 2019 by Jan Gabriel Keine Kommentare »

  • SQLExpress auf einen Server (nicht DC) in der Ziel Domäne installiern
  • ADMT dort installieren
  • in der Powershell mit ad folgendes ausführen: admt key /option:create /sourcedomain:alte.domain /keyfile:C:\Temp\PWKey /keypassword:*
  • pwdmiga auf dem Quell DC installieren (einmal neustarten)
  • Vertrauensstellung zwischen den Domänen herstellen
  • Administrator der neuen Domäne zu den Built-In Administratoren der alten Domain hinzufügen
  • ADMT ausführen und Nutzer mit Gruppen migrieren

Exchange

  • Mailflow regeln…
  • Enable-MailUser
  • alter Exchange EWS Proxyemndpunkt aktivieren
  • prepare-moverequest pro user ausführen (siehe unten)
  • Migrationsjob im neuen Exchange starten
  • Mailflow regeln…

$Local = Get-Credential
$Remote = Get-Credential
.\Prepare-MoveRequest.Ps1 -Identity test.user@newdomain -RemoteForestDomainController dc.olddomain -RemoteForestCredential $Remote -LocalForestDomainController dc.newdomain -LocalForestCredential $Local -UseLocalObject -OverwriteLocalObject