Skip to content

Instantly share code, notes, and snippets.

View zjorz's full-sized avatar

Jorge de Almeida Pinto | IAMTEC zjorz

View GitHub Profile
@zjorz
zjorz / Configuring_GenCounter_System_Service_Disabled.ps1
Last active May 18, 2023 20:33
Configuring New Or Existing GPO With The GenCounter System Service To NOT Start (i.e., Disable Generation ID)
#-------
# Configuring New Or Existing GPO With The GenCounter System Service To NOT Start (i.e., Disable Generation ID)
#-------
$gpoName = "<Name Of Existing Or New GPO>" # <=== CONFIGURE !!!!
Invoke-Command -ArgumentList $gpoName -Scriptblock {
Param (
$gpoName
)
Clear-Host
@zjorz
zjorz / Fix_SYSVOL_Repl_With_New_Source_RWDC.ps1
Last active May 12, 2023 22:17
Fixing Broken DFS-R Replication Group (SYSVOL) Replication Between All Replication Group Members While Assigning A Primary Member As Source
#-------
# Fixing Broken DFS-R Replication Group Replication Between All Replication Group Members While Assigning A Primary Member As Source
#-------
# ASSUMPTIONS:
# * Name Resolution Works
# * All DCs In The AD Domain Are Available/Up And Running
# * All DCs In The AD Domain Are Reachable For LDAP, ADWS, Remote Management, WMI
# * The Account Used To Execute This Has AT LEAST "Domain Admin" Equivalent Permissions In The AD Domain Being Processed
# * The Content Of The SYSVOL Of The Chosen DC To Be The Primary Member Is Healthy
#--------------------#-----------------------#-----------------------#-----------------------#-----------------------#-----------------------