├── AD ├── Conf-AD.ps1 ├── Conf-ADDirPWD.ps1 ├── Conf-ADRecycleBin.ps1 ├── Filtrate │ └── Create-FileScreen.ps1 ├── GPO │ ├── OU │ │ ├── Conf-GPO-OU (GUI).md │ │ ├── Conf-GPO-OU.ps1 │ │ ├── Drive_Maps.png │ │ └── GPO_Editor.png │ └── Users │ │ └── Conf-GPOUser.ps1 ├── NTFS Permissions │ ├── Conf-NTFS-Permission.ps1 │ └── Example-NTFS-Permission.ps1 ├── OU │ ├── Create-OU.ps1 │ └── ou-example.csv ├── Quotas │ └── Create-Quotas.ps1 └── Users │ ├── Create-Users.ps1 │ ├── New-SWRandomPassword.ps1 │ ├── users-example.csv │ └── users-utf8.csv ├── Assets └── Powershell_black_64.png ├── Backup and PSO ├── Conf-Backup.ps1 └── Conf-ShadowCopy.ps1 ├── Certificats ├── Authority-Signed │ └── Create-AuthorityCert.ps1 └── Self-Signed │ ├── Create-SelfCert.ps1 │ └── Display-OU-RH.ps1 ├── DHCP ├── Conf-DHCP-Client.ps1 └── Conf-DHCP.ps1 ├── DNS ├── Conf-DNSPrimary.ps1 └── Conf-DNSSecondary.ps1 ├── Firewall └── Conf-Firewall.ps1 ├── IP ├── Conf-IPv4.ps1 └── Conf-IPv6.ps1 ├── LICENSE ├── README.md └── Time └── Set-TimeZone.ps1 /AD/Conf-AD.ps1: -------------------------------------------------------------------------------- 1 | <# 2 | .SYNOPSIS 3 | Installs the Active Directory service and sets a basic AD configuration. 4 | PowerSploit Function: Conf-AD 5 | Author: Terencio Agozzino (@rememberYou) 6 | Alexandre Ducobu (@Harchytekt) 7 | License: None 8 | Required Dependencies: None 9 | Optional Dependencies: None 10 | Version: 1.0.0 11 | 12 | .DESCRIPTION 13 | Conf-AD Installs the Active Directory service and sets a AD configuration. 14 | 15 | .EXAMPLE 16 | PS C:\> Conf-AD -DomainName heh.lan 17 | 18 | .EXAMPLE 19 | PS C:\> Conf-AD -DomainName heh.lan -NetbiosName HEH-STUDENT 20 | 21 | .NOTES 22 | You can verify your ADForest configuration with: 23 | `Get-ADForest` 24 | 25 | You can verify your ADDomain configuration with: 26 | `Get-ADDomain` 27 | #> 28 | 29 | Param( 30 | [ValidateNotNullOrEmpty()] 31 | [String] 32 | $DomainName, 33 | 34 | [String] 35 | $NetbiosName 36 | ) 37 | 38 | Function Get-NetbiosName($DomainName) { 39 | return $DomainName.Split(".")[0].ToUpper() 40 | } 41 | 42 | Import-Module Servermanager 43 | Add-WindowsFeature AD-Domain-Services -IncludeManagementTools 44 | 45 | Import-Module ADDSDeployment 46 | 47 | If ([string]::IsNullOrEmpty($NetbiosName)) { 48 | Install-ADDSForest ` 49 | -CreateDnsDelegation:$false ` 50 | -DatabasePath "C:\Windows\NTDS" ` 51 | -DomainMode "Default" ` 52 | -DomainName "$DomainName" ` 53 | -DomainNetbiosName "$(Get-NetbiosName($DomainName))" ` 54 | -ForestMode "Default" ` 55 | -InstallDns:$true ` 56 | -LogPath "C:\Windows\NTDS" ` 57 | -SysvolPath "C:\Windows\SYSVOL" ` 58 | -Force:$true 59 | } Else { 60 | Install-ADDSForest ` 61 | -CreateDnsDelegation:$false ` 62 | -DatabasePath "C:\Windows\NTDS" ` 63 | -DomainMode "Default" ` 64 | -DomainName "$DomainName" ` 65 | -DomainNetbiosName "$NetbiosName" ` 66 | -ForestMode "Default" ` 67 | -InstallDns:$true ` 68 | -LogPath "C:\Windows\NTDS" ` 69 | -SysvolPath "C:\Windows\SYSVOL" ` 70 | -Force:$true 71 | } 72 | -------------------------------------------------------------------------------- /AD/Conf-ADDirPWD.ps1: -------------------------------------------------------------------------------- 1 | <# 2 | .SYNOPSIS 3 | Configures the default password policy for a specified group. 4 | PowerSploit Function: Conf-ADDirPWD 5 | Author: Terencio Agozzino (@rememberYou) 6 | Alexandre Ducobu (@Harchytekt) 7 | License: None 8 | Required Dependencies: None 9 | Optional Dependencies: None 10 | Version: 1.0.0 11 | 12 | .DESCRIPTION 13 | Conf-ADDirPWD Configures the default password policy for a specified group. 14 | 15 | .EXAMPLE 16 | PS C:\> Conf-ADDirPWD -Group Direction -Length 15 17 | #> 18 | 19 | Param( 20 | [ValidateNotNullOrEmpty()] 21 | [String] 22 | $Group, 23 | 24 | [ValidateNotNullOrEmpty()] 25 | [String] 26 | $Length 27 | ) 28 | 29 | Set-ADDefaultDomainPasswordPolicy -Identity $Group -LockoutDuration 00:40:00 ` 30 | -LockoutObservationWindow 00:15:00 -ComplexityEnabled $True ` 31 | -ReversibleEncryptionEnabled $False -MaxPasswordAge 10.00:00:00 ` 32 | -MinPasswordLength $Length 33 | -------------------------------------------------------------------------------- /AD/Conf-ADRecycleBin.ps1: -------------------------------------------------------------------------------- 1 | <# 2 | .SYNOPSIS 3 | Enables the AD Recycle Bin. 4 | PowerSploit Function: Conf-ADRecycleBin 5 | Author: Terencio Agozzino (@rememberYou) 6 | Alexandre Ducobu (@Harchytekt) 7 | License: None 8 | Required Dependencies: None 9 | Optional Dependencies: None 10 | Version: 1.0.0 11 | 12 | .DESCRIPTION 13 | Conf-ADRecycleBin Enables the AD Recycle Bin. 14 | 15 | .EXAMPLE 16 | PS C:\> Conf-ADRecycleBin -NetbiosName heh.lan 17 | #> 18 | 19 | Param( 20 | [ValidateNotNullOrEmpty()] 21 | [String] 22 | $NetbiosName 23 | ) 24 | 25 | Import-module ActiveDirectory 26 | Enable-ADOptionalFeature 'Recycle Bin Feature' -Scope ForestOrConfigurationSet ` 27 | -Target "$NetbiosName" -confirm:$false 28 | -------------------------------------------------------------------------------- /AD/Filtrate/Create-FileScreen.ps1: -------------------------------------------------------------------------------- 1 | <# 2 | .SYNOPSIS 3 | Creates the file screen for the shared folder. 4 | PowerSploit Function: Create-FileScreen 5 | Author: Terencio Agozzino (@rememberYou) 6 | Alexandre Ducobu (@Harchytekt) 7 | License: None 8 | Required Dependencies: None 9 | Optional Dependencies: None 10 | Version: 1.0.0 11 | 12 | .DESCRIPTION 13 | Create-FileScreen Creates the file screen for the shared folder. 14 | #> 15 | 16 | # Create Action 17 | $logAction = New-FsrmAction Event -EventType Information ` 18 | -Body "An user attempted to create a forbidden file in the shared folder." ` 19 | -RunLimitInterval 60 20 | 21 | # Create File Group 22 | $allFileGroup = New-FsrmFileGroup -Name "All files" -IncludePattern "*" 23 | 24 | # Create File Screen Template 25 | $fsTemplate = New-FsrmFileScreenTemplate -Name "Deny All Type of Files" ` 26 | -IncludeGroup "All files" -Notification $logAction -Active 27 | 28 | # Set the File Screen on the shared folder 29 | New-FsrmFileScreen -Path "C:\Shared\" -Template "Deny All Type of Files" 30 | 31 | # Set the File Screen Exception on the shared folder 32 | New-FsrmFileScreenException -Path "C:\Shared\" ` 33 | -IncludeGroup "Image Files", "Office Files" 34 | -------------------------------------------------------------------------------- /AD/GPO/OU/Conf-GPO-OU (GUI).md: -------------------------------------------------------------------------------- 1 | # GPO- Shared Folders as Drive 2 | 3 | 1. Open the **_Group Policy Management_** tool 4 | 2. Right Click on the chosen **OU** 5 | 1. Choose _Create a GPO in this domain, and link it there…_ 6 | 2. Name it 7 | 3. Right click on the new **GPO** and choose _Edit_ 8 | 4. You are now in the **_Group Policy Management Editor_** 9 | 1. Got to **User Configuration** 10 | 2. **Preferences** 11 | 3. **Windows Settings** 12 | 4. **Drive Maps** 13 | Figure: ![GPO Editor](GPO_Editor.png) 14 | 5. Create a new one _(you can click on the **+**)_ 15 | 6. Now, choose: 16 | 1. The action: **Update** 17 | 2. The location of the shared folder 18 | 3. Check **Reconnect** and choose the **Drive letter** 19 | 4. Finish by choosing **Show this drive** and **Show all drives** 20 | Figure: ![Drive Maps](Drive_Maps.png) 21 | 7. You can click on **Apply** and/or **OK** 22 | 8. Close the windows and **restart** your client 23 | 24 | 25 | Source : [Microsoft's blog](https://blogs.technet.microsoft.com/askds/2009/01/07/using-group-policy-preferences-to-map-drives-based-on-group-membership/) 26 | -------------------------------------------------------------------------------- /AD/GPO/OU/Conf-GPO-OU.ps1: -------------------------------------------------------------------------------- 1 | <# 2 | .SYNOPSIS 3 | Configures GPO for OU. 4 | PowerSploit Function: Conf-GPO-UO 5 | Author: Terencio Agozzino (@rememberYou) 6 | Alexandre Ducobu (@Harchytekt) 7 | License: None 8 | Required Dependencies: None 9 | Optional Dependencies: None 10 | Version: 1.0.0 11 | 12 | .DESCRIPTION 13 | Conf-GPO-OU Configures GPO for OU. 14 | 15 | .NOTES 16 | You need to create OU before execute this script. 17 | #> 18 | 19 | # Mount the shared folder of the department to "Y" 20 | Set-ItemProperty 'HKLM:\SYSTEM\CurrentControlSet\Control\Session Manager\DOS Devices' ` 21 | -name "Y:" -value '\??\C:\Shared\Finances\Comptabilité' 22 | 23 | # Mount the "Common" shared folder to "Z" 24 | Set-ItemProperty 'HKLM:\SYSTEM\CurrentControlSet\Control\Session Manager\DOS Devices' ` 25 | -name "Z:" -value '\??\C:\Shared\Common' 26 | -------------------------------------------------------------------------------- /AD/GPO/OU/Drive_Maps.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rememberYou/powershell-scripts/af6875ac0dd4d6a4d1e05c0cd776b43eaab9296c/AD/GPO/OU/Drive_Maps.png -------------------------------------------------------------------------------- /AD/GPO/OU/GPO_Editor.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rememberYou/powershell-scripts/af6875ac0dd4d6a4d1e05c0cd776b43eaab9296c/AD/GPO/OU/GPO_Editor.png -------------------------------------------------------------------------------- /AD/GPO/Users/Conf-GPOUser.ps1: -------------------------------------------------------------------------------- 1 | <# 2 | .SYNOPSIS 3 | Configures the GPO for every users of the AD. 4 | PowerSploit Function: Conf-GPOUser 5 | Author: Terencio Agozzino (@rememberYou) 6 | Alexandre Ducobu (@Harchytekt) 7 | License: None 8 | Required Dependencies: None 9 | Optional Dependencies: None 10 | Version: 1.0.0 11 | 12 | .DESCRIPTION 13 | Conf-GPOUser Configures the GPO for all the users of the AD. 14 | 15 | .EXAMPLE 16 | PS C:\> Conf-GPO 17 | 18 | .NOTES 19 | You will have to restart your client 2 or 3 times for the wallpaper to be displayed 20 | #> 21 | 22 | # Set a wallpaper for every users on the same OU. 23 | Import-Module GroupPolicy 24 | New-GPO -Name GPO_BG | New-GPLink -Target "OU=Direction, DC=heh, DC=lan" 25 | Set-GPPrefRegistryValue -Name GPO_BG -Context User -Action Replace ` 26 | -Key "HKCU\Control Panel\Desktop" -ValueName WallPaper ` 27 | -Value "\\SRVDNSPrimary\Share\giant.jpg" ` 28 | -Type String 29 | 30 | Invoke-GPUpdate -Force 31 | 32 | Set-GPPrefRegistryValue -Name GPO_BG -Context User -Action Create ` 33 | -Key "HKCU\Control Panel\Desktop" -ValueName WallPaper ` 34 | -Value "\\SRVDNSPrimary\Share\giant.jpg" ` 35 | -Type String -------------------------------------------------------------------------------- /AD/NTFS Permissions/Conf-NTFS-Permission.ps1: -------------------------------------------------------------------------------- 1 | <# 2 | .SYNOPSIS 3 | Configures the NTFS permissions. 4 | PowerSploit Function: Conf-NTFS-Permission 5 | Author: Terencio Agozzino (@rememberYou) 6 | Alexandre Ducobu (@Harchytekt) 7 | License: None 8 | Required Dependencies: None 9 | Optional Dependencies: None 10 | Version: 1.0.0 11 | 12 | .DESCRIPTION 13 | Conf-NTFS-Permission Configures the NTFS permissions. 14 | 15 | .EXAMPLE 16 | PS C:\> Conf-NTFS-Permission -Lan HEH -Users Ca.LECLERCQ -Shared C:\Shared\Common -Permission R/W 17 | 18 | .NOTES 19 | You can verify NTFS permissions with: 20 | `Get-Acl "C:\path-to-folder" | Format-List` 21 | #> 22 | 23 | Param( 24 | [ValidateNotNullOrEmpty()] 25 | [String] 26 | $Lan, 27 | 28 | [ValidateNotNullOrEmpty()] 29 | [String[]] 30 | $Users, 31 | 32 | [ValidateNotNullOrEmpty()] 33 | [String] 34 | $Shared, 35 | 36 | [ValidateNotNullOrEmpty()] 37 | [String] 38 | $Permission 39 | ) 40 | 41 | $acl = Get-Acl "$($Shared)" 42 | 43 | Function GetPermission { 44 | If ($Permission -eq "R") { 45 | $Permission = "Read" 46 | } ElseIf ($Permission -eq "W") { 47 | $Permission = "Write" 48 | } Else { 49 | $Permission = "Read, Write" 50 | } 51 | return $Permission 52 | } 53 | 54 | Function SetAcl 55 | { 56 | $Permission = GetPermission 57 | 58 | ForEach($user in $Users) 59 | { 60 | If ($user -eq "Users") { 61 | $rule = New-Object System.Security.AccessControl.FileSystemAccessRule("Users", $Permission, "ContainerInherit, ObjectInherit", "None", "Allow") 62 | echo "ASDKSADOIJSDOIJSSAOIDJAOSIJDSOIJSAOIDJAOISD" 63 | } Else { 64 | $rule = New-Object System.Security.AccessControl.FileSystemAccessRule("$user", $Permission, "ContainerInherit, ObjectInherit", "None", "Allow") 65 | } 66 | $acl.AddAccessRule($rule) 67 | } 68 | 69 | Set-Acl $Shared $acl 70 | Get-Acl $Shared | Format-List 71 | } 72 | 73 | SetAcl 74 | -------------------------------------------------------------------------------- /AD/NTFS Permissions/Example-NTFS-Permission.ps1: -------------------------------------------------------------------------------- 1 | <# 2 | .SYNOPSIS 3 | Gives an example of utilisation of the "Conf-NTFS-Permission" script. 4 | PowerSploit Function: Example-NTFS-Permission 5 | Author: Terencio Agozzino (@rememberYou) 6 | Alexandre Ducobu (@Harchytekt) 7 | License: None 8 | Required Dependencies: None 9 | Optional Dependencies: None 10 | Version: 1.0.0 11 | 12 | .DESCRIPTION 13 | Example-NTFS-Permission Gives an example of utilisation of the 14 | "Conf-NTFS-Permission" script. 15 | 16 | .NOTES 17 | Be careful, for this example some of the groups contains accents because 18 | of french typing. If you use PowerShell ISE, it going to have some errors 19 | if you forgot configure it with UTF-8. 20 | 21 | You can verify NTFS permissions with: 22 | `Get-Acl "C:\path-to-folder" | Format-List` 23 | #> 24 | 25 | Import-Module .\Conf-NTFS-Permission.ps1 26 | 27 | If (!(Get-SMBShare -Name "Share" -ea 0)) { 28 | New-SMBShare -Name "Share" -Path "C:\Shared" 29 | } 30 | 31 | # Everyone from the "GR_Ressources_Humaines" group can read the subfolders. 32 | .\Conf-NTFS-Permission -Lan "HEH" -Users "GR_Ressources_Humaines" ` 33 | -Shared "C:\Shared\Ressources Humaines" -Permission "R" 34 | 35 | $acl = Get-Acl "C:\Shared" 36 | $acl.SetAccessRuleProtection($True, $True) 37 | Set-Acl -Path "C:\Shared" -AclObject $acl 38 | 39 | # [ RESSOURCES HUMAINES ] 40 | 41 | # Everyone from the "GR_Ressources_Humaines" group can read the subfolders. 42 | .\Conf-NTFS-Permission -Lan "HEH" -Users "GR_Ressources_Humaines" ` 43 | -Shared "C:\Shared\Ressources Humaines" -Permission "R" 44 | 45 | # Heads of "Gestion du personnel" and "Recrutement" groups has Read/Write 46 | # permission on "Ressources humaines" folder. 47 | .\Conf-NTFS-Permission -Lan "HEH" -Users "Ta.DUPONT" ` 48 | -Shared "C:\Shared\Ressources Humaines" -Permission "R/W" 49 | .\Conf-NTFS-Permission -Lan "HEH" -Users "Ca.LECLERCQ" ` 50 | -Shared "C:\Shared\Ressources Humaines" -Permission "R/W" 51 | 52 | .\Conf-NTFS-Permission -Lan "HEH" -Users "GS_Gestion_du_Personnel" ` 53 | -Shared "C:\Shared\Ressources Humaines\Gestion du Personnel" -Permission "R/W" 54 | .\Conf-NTFS-Permission -Lan "HEH" -Users "GS_Recrutement" ` 55 | -Shared "C:\Shared\Ressources Humaines\Recrutement" -Permission "R/W" 56 | 57 | # [ R&D ] 58 | 59 | # Everyone from the "GR_R&D" group can read the subfolders. 60 | .\Conf-NTFS-Permission -Lan "HEH" -Users "GR_R&D" ` 61 | -Shared "C:\Shared\R&D" -Permission "R" 62 | 63 | # Heads of "Recherche" and "Testing" groups has Read/Write 64 | # permission on "R&D" folder. 65 | .\Conf-NTFS-Permission -Lan "HEH" -Users "Th.VIVIER" ` 66 | -Shared "C:\Shared\R&D" -Permission "R/W" 67 | .\Conf-NTFS-Permission -Lan "HEH" -Users "Al.VICCA" ` 68 | -Shared "C:\Shared\R&D" -Permission "R/W" 69 | 70 | .\Conf-NTFS-Permission -Lan "HEH" -Users "GS_Recherche" ` 71 | -Shared "C:\Shared\R&D\Recherche" -Permission "R/W" 72 | .\Conf-NTFS-Permission -Lan "HEH" -Users "GS_Testing" ` 73 | -Shared "C:\Shared\R&D\Testing" -Permission "R/W" 74 | 75 | # [ MARKETING ] 76 | 77 | # Everyone from the "GR_Marketing" group can read the subfolders. 78 | .\Conf-NTFS-Permission -Lan "HEH" -Users "GR_Marketing" ` 79 | -Shared "C:\Shared\Marketing" -Permission "R" 80 | 81 | # Heads of "Site 1", "Site 2", "Site 3" and "Site 4" groups has Read/Write 82 | # permission on "Marketing" folder. 83 | .\Conf-NTFS-Permission -Lan "HEH" -Users "Ro.SCHIFANO" ` 84 | -Shared "C:\Shared\Marketing" -Permission "R/W" 85 | .\Conf-NTFS-Permission -Lan "HEH" -Users "Iv.POGLAJEN" ` 86 | -Shared "C:\Shared\Marketing" -Permission "R/W" 87 | .\Conf-NTFS-Permission -Lan "HEH" -Users "Ni.BALEINE" ` 88 | -Shared "C:\Shared\Marketing" -Permission "R/W" 89 | .\Conf-NTFS-Permission -Lan "HEH" -Users "Xa.POLLARA" ` 90 | -Shared "C:\Shared\Marketing" -Permission "R/W" 91 | 92 | .\Conf-NTFS-Permission -Lan "HEH" -Users "GS_Site1" ` 93 | -Shared "C:\Shared\Marketing\Site1" -Permission "R/W" 94 | .\Conf-NTFS-Permission -Lan "HEH" -Users "GS_Site2" ` 95 | -Shared "C:\Shared\Marketing\Site2" -Permission "R/W" 96 | .\Conf-NTFS-Permission -Lan "HEH" -Users "GS_Site3" ` 97 | -Shared "C:\Shared\Marketing\Site3" -Permission "R/W" 98 | .\Conf-NTFS-Permission -Lan "HEH" -Users "GS_Site4" ` 99 | -Shared "C:\Shared\Marketing\Site4" -Permission "R/W" 100 | 101 | # [ FINANCES ] 102 | 103 | # Everyone from the "GR_Finances" group can read the subfolders. 104 | .\Conf-NTFS-Permission -Lan "HEH" -Users "GR_Finances" ` 105 | -Shared "C:\Shared\Finances" -Permission "R" 106 | 107 | # Heads of "Comptabilité" and "Investissements" groups has Read/Write 108 | # permission on "Finances" folder. 109 | .\Conf-NTFS-Permission -Lan "HEH" -Users "Is.COLSON" ` 110 | -Shared "C:\Shared\Finances" -Permission "R/W" 111 | .\Conf-NTFS-Permission -Lan "HEH" -Users "Do.GHYS" ` 112 | -Shared "C:\Shared\Finances" -Permission "R/W" 113 | 114 | .\Conf-NTFS-Permission -Lan "HEH" -Users "GS_Comptabilité" ` 115 | -Shared "C:\Shared\Finances\Comptabilité" -Permission "R/W" 116 | .\Conf-NTFS-Permission -Lan "HEH" -Users "GS_Investissements" ` 117 | -Shared "C:\Shared\Finances\Investissements" -Permission "R/W" 118 | 119 | # [ TECHNIQUE ] 120 | 121 | # Everyone from the "GR_Technique" group can read the subfolders. 122 | .\Conf-NTFS-Permission -Lan "HEH" -Users "GR_Technique" ` 123 | -Shared "C:\Shared\Technique" -Permission "R" 124 | 125 | # Heads of "Techniciens" and "Achat" groups has Read/Write 126 | # permission on "Technique" folder. 127 | .\Conf-NTFS-Permission -Lan "HEH" -Users "Ad.SOLITO" ` 128 | -Shared "C:\Shared\Technique" -Permission "R/W" 129 | .\Conf-NTFS-Permission -Lan "HEH" -Users "Ji.MEYERS" ` 130 | -Shared "C:\Shared\Technique" -Permission "R/W" 131 | 132 | .\Conf-NTFS-Permission -Lan "HEH" -Users "GS_Techniciens" ` 133 | -Shared "C:\Shared\Technique\Techniciens" -Permission "R/W" 134 | .\Conf-NTFS-Permission -Lan "HEH" -Users "GS_Achat" ` 135 | -Shared "C:\Shared\Technique\Achat" -Permission "R/W" 136 | 137 | # [ INFORMATIQUE ] 138 | 139 | # Everyone from the "GR_Informatique" group can read the subfolders. 140 | .\Conf-NTFS-Permission -Lan "HEH" -Users "GR_Informatique" ` 141 | -Shared "C:\Shared\Informatique" -Permission "R" 142 | 143 | # Heads of "Développement", "HotLine" and "Système' groups has Read/Write 144 | # permission on "Informatique" folder. 145 | .\Conf-NTFS-Permission -Lan "HEH" -Users "Vi.DUFOUR" ` 146 | -Shared "C:\Shared\Informatique" -Permission "R/W" 147 | .\Conf-NTFS-Permission -Lan "HEH" -Users "An.RENAUX" ` 148 | -Shared "C:\Shared\Informatique" -Permission "R/W" 149 | .\Conf-NTFS-Permission -Lan "HEH" -Users "La.DEMARET" ` 150 | -Shared "C:\Shared\Informatique" -Permission "R/W" 151 | 152 | .\Conf-NTFS-Permission -Lan "HEH" -Users "GS_Systèmes" ` 153 | -Shared "C:\Shared\Informatique\Systèmes" -Permission "R/W" 154 | .\Conf-NTFS-Permission -Lan "HEH" -Users "GS_Développement" ` 155 | -Shared "C:\Shared\Informatique\Développement" -Permission "R/W" 156 | .\Conf-NTFS-Permission -Lan "HEH" -Users "GS_HotLine" ` 157 | -Shared "C:\Shared\Informatique\HotLine" -Permission "R/W" 158 | 159 | # [ COMMERCIAUX ] 160 | 161 | # Everyone from the "GR_Commerciaux" group can read the subfolders. 162 | .\Conf-NTFS-Permission -Lan "HEH" -Users "GR_Commerciaux" ` 163 | -Shared "C:\Shared\Commerciaux" -Permission "R" 164 | 165 | # Heads of "Technico" and "Sédentaires" groups has Read/Write 166 | # permission on "Technique" folder. 167 | .\Conf-NTFS-Permission -Lan "HEH" -Users "Te.LAECKE" ` 168 | -Shared "C:\Shared\Technique" -Permission "R/W" 169 | .\Conf-NTFS-Permission -Lan "HEH" -Users "Al.OMEY" ` 170 | -Shared "C:\Shared\Technique" -Permission "R/W" 171 | 172 | .\Conf-NTFS-Permission -Lan "HEH" -Users "GS_Sédentaires" ` 173 | -Shared "C:\Shared\Commerciaux\Sédentaires" -Permission "R/W" 174 | .\Conf-NTFS-Permission -Lan "HEH" -Users "GS_Technico" ` 175 | -Shared "C:\Shared\Commerciaux\Technico" -Permission "R/W" 176 | 177 | # The direction group has Read/Write permission on all folders. 178 | .\Conf-NTFS-Permission -Lan "HEH" -Users "GR_Direction" ` 179 | -Shared "C:\Shared\" -Permission "R/W" 180 | 181 | # By default, all users got Read permissions on the common shared folder. 182 | .\Conf-NTFS-Permission -Lan "HEH" -Users "Users" ` 183 | -Shared "C:\Shared\Common\" -Permission "R" 184 | 185 | # Heads of departments has Read/Write permission on the common folder. 186 | .\Conf-NTFS-Permission -Lan "HEH" -Users "Te.LAECKE", 187 | "Al.OMEY", 188 | "Is.COLSON", 189 | "Do.GHYS", 190 | "Vi.DUFOUR", 191 | "An.RENAUX", 192 | "La.DEMARET", 193 | "Ro.SCHIFANO", 194 | "Iv.POGLAJEN", 195 | "Ni.BALEINE", 196 | "Xa.POLLARA", 197 | "Th.VIVIER", 198 | "Al.VICCA", 199 | "Ta.DUPONT", 200 | "Ca.LECLERCQ", 201 | "Ad.SOLITO", 202 | "Ji.MEYERS" ` 203 | -Shared "C:\Shared\Common" -Permission "R/W" 204 | -------------------------------------------------------------------------------- /AD/OU/Create-OU.ps1: -------------------------------------------------------------------------------- 1 | <# 2 | .SYNOPSIS 3 | Creates Organizational Units according to a ".csv" file. 4 | PowerSploit Function: Create-OU 5 | Author: Terencio Agozzino (@rememberYou) 6 | Alexandre Ducobu (@Harchytekt) 7 | License: None 8 | Required Dependencies: None 9 | Optional Dependencies: None 10 | Version: 1.0.0 11 | 12 | .DESCRIPTION 13 | Create-OU Creates Organizational Units according to a ".csv" file. 14 | 15 | .EXAMPLE 16 | PS C:\> Create-OU -File C:\Users\Administrator\Desktop\ou-example.csv ` 17 | -Path DC=heh,DC=lan 18 | 19 | .NOTES 20 | Take a look at the "ou-example.csv" file for the specific structure 21 | and change it with yours. 22 | 23 | You can verify the creation of your Organizatinal Units with: 24 | `Get-ADOrganizationalUnit -Filter *` 25 | #> 26 | 27 | Param( 28 | [ValidateNotNullOrEmpty()] 29 | [String] 30 | $File, 31 | 32 | [ValidateNotNullOrEmpty()] 33 | [String] 34 | $Path 35 | ) 36 | 37 | New-Item "C:\Shared\Common" -Type Directory 38 | 39 | Import-Module ActiveDirectory 40 | 41 | Try { 42 | $csv = Import-Csv -Encoding "UTF8" -Path "$File" -Header Name,Parent 43 | } Catch { 44 | Write-Host "Can't load the file: $file" -Foreground Red 45 | exit 46 | } 47 | 48 | foreach ($ou in $csv) { 49 | 50 | $Path = "$Path" 51 | 52 | If ($csv.IndexOf($ou) -eq 0) { 53 | $DirRoot = "C:\Shared\" 54 | $NameRoot = $ou.Name 55 | } 56 | 57 | If ($ou.Parent -ne "") { 58 | $Path = "OU=$($ou.Parent),$Path" 59 | } 60 | 61 | New-ADOrganizationalUnit -Name $ou.Name -Path $Path ` 62 | -Description "$($ou.Name) Organizational Unit" ` 63 | -ProtectedFromAccidentalDeletion $true 64 | 65 | $SuffixeGroupName = $ou.Name -replace " ", '_' 66 | 67 | If ($ou.Parent -eq "") { 68 | New-ADGroup "GR_$SuffixeGroupName" -Path "OU=$($ou.Name),$Path" ` 69 | -Description "$($ou.Name) Group" -GroupScope Global 70 | } Else { 71 | $ParentName = $ou.Parent -replace " ", '_' 72 | 73 | New-ADGroup "GS_$SuffixeGroupName" -Path "OU=$($ou.Name),$Path" ` 74 | -Description "$($ou.Name) Group" -GroupScope Global 75 | Add-ADGroupMember -Identity "GR_$ParentName" -Members "GS_$SuffixeGroupName" 76 | } 77 | 78 | If ($csv.IndexOf($ou) -eq 0) { 79 | New-Item "$DirRoot\$NameRoot" -Type Directory 80 | } ElseIf ($ou.Parent -eq "") { 81 | New-Item "$DirRoot\$($ou.Name)" -Type Directory 82 | } Else { 83 | New-Item "$DirRoot\$($ou.Parent)\$($ou.Name)" -Type Directory 84 | } 85 | } 86 | 87 | Write-Host "$($(Get-ADOrganizationalUnit -Filter *).Count) Organizational Units added." 88 | -------------------------------------------------------------------------------- /AD/OU/ou-example.csv: -------------------------------------------------------------------------------- 1 | Direction, 2 | Ressources Humaines, 3 | Gestion du Personnel,Ressources Humaines 4 | Recrutement,Ressources Humaines 5 | R&D, 6 | Recherche,R&D 7 | Testing,R&D 8 | Marketing, 9 | Site1,Marketing 10 | Site2,Marketing 11 | Site3,Marketing 12 | Site4,Marketing 13 | Finances, 14 | Comptabilité,Finances 15 | Investissements,Finances 16 | Technique, 17 | Techniciens,Technique 18 | Achat,Technique 19 | Commerciaux, 20 | Sédentaires,Commerciaux 21 | Technico,Commerciaux 22 | Informatique, 23 | Systèmes,Informatique 24 | Développement,Informatique 25 | HotLine,Informatique 26 | -------------------------------------------------------------------------------- /AD/Quotas/Create-Quotas.ps1: -------------------------------------------------------------------------------- 1 | <# 2 | .SYNOPSIS 3 | Creates the quotas for all departments' shared folder. 4 | PowerSploit Function: Create-Quotas 5 | Author: Terencio Agozzino (@rememberYou) 6 | Alexandre Ducobu (@Harchytekt) 7 | License: None 8 | Required Dependencies: None 9 | Optional Dependencies: None 10 | Version: 1.0.0 11 | 12 | .DESCRIPTION 13 | Create-Quotas Creates the quotas for all departments' shared folder. 14 | #> 15 | 16 | Install-WindowsFeature -Name FS-Resource-Manager, RSAT-FSRM-Mgmt 17 | 18 | # Create Templates 19 | New-FsrmQuotaTemplate -Name "500 MB limit" ` 20 | -Description "Limit usage to 500 MB." -Size 500MB 21 | 22 | # Apply template to the Shared Folder 23 | 24 | # Initialize the managers' email addresses 25 | $ofs = ';' 26 | $comm = "al.omey@heh.lan", "t.laecke@heh.lan" 27 | $fin = "is.colson@heh.lan", "do.ghys@heh.lan" 28 | $info = "vi.dufour@heh.lan", "an.renaux@heh.lan", "la.demaret@heh.lan" 29 | $mark = "ro.schifano@heh.lan", "iv.poglajen@heh.lan", "ni.baleine@heh.lan", "xa.pollara@heh.lan" 30 | $rd = "th.vivier@heh.lan", "al.vicca@heh.lan" 31 | $rh = "ca.leclercq@heh.lan", "ca.leclercq@heh.lan" 32 | $tech = "ad.solito@heh.lan", "ji.meyers@heh.lan" 33 | 34 | # Set the mail address(es) for the chosen folder 35 | Function SetMail($folder) 36 | { 37 | If ($folder -eq "Commerciaux") 38 | { 39 | $mail = [string]$comm 40 | } 41 | ElseIf ($folder -eq "Commerciaux\Sédentaires") 42 | { 43 | $mail = $comm[0] 44 | } 45 | ElseIf ($folder -eq "Commerciaux\Technico") 46 | { 47 | $mail = $comm[1] 48 | } 49 | ElseIf ($folder -eq "Common") 50 | { 51 | $mail = [string]([string]$comm, [string]$fin, [string]$info, 52 | [string]$mark, [string]$rd, [string]$rh, 53 | [string]$tech, "po.botson@heh.lan") 54 | } 55 | ElseIf ($folder -eq "Direction") 56 | { 57 | $mail = "po.botson@heh.lan" 58 | } 59 | ElseIf ($folder -eq "Finances") 60 | { 61 | $mail = [string]$fin 62 | } 63 | ElseIf ($folder -eq "Finances\Comptabilité") 64 | { 65 | $mail = $fin[0] 66 | } 67 | ElseIf ($folder -eq "Finances\Investissements") 68 | { 69 | $mail = $fin[1] 70 | } 71 | ElseIf ($folder -eq "Informatique") 72 | { 73 | $mail = [string]$info 74 | } 75 | ElseIf ($folder -eq "Informatique\Développement") 76 | { 77 | $mail = $info[0] 78 | } 79 | ElseIf ($folder -eq "Informatique\HotLine") 80 | { 81 | $mail = $info[1] 82 | } 83 | ElseIf ($folder -eq "Informatique\Systèmes") 84 | { 85 | $mail = $info[2] 86 | } 87 | ElseIf ($folder -eq "Marketing") 88 | { 89 | $mail = [string]$mark 90 | } 91 | ElseIf ($folder -eq "Marketing\Site1") 92 | { 93 | $mail = $mark[0] 94 | } 95 | ElseIf ($folder -eq "Marketing\Site2") 96 | { 97 | $mail = $mark[1] 98 | } 99 | ElseIf ($folder -eq "Marketing\Site3") 100 | { 101 | $mail = $mark[2] 102 | } 103 | ElseIf ($folder -eq "Marketing\Site4") 104 | { 105 | $mail = $mark[3] 106 | } 107 | ElseIf ($folder -eq "R&D") 108 | { 109 | $mail = [string]$rd 110 | } 111 | ElseIf ($folder -eq "R&D\Recherche") 112 | { 113 | $mail = $rd[0] 114 | } 115 | ElseIf ($folder -eq "R&D\Testing") 116 | { 117 | $mail = $rd[1] 118 | } 119 | ElseIf ($folder -eq "Ressources humaines") 120 | { 121 | $mail = [string]$rh 122 | } 123 | ElseIf ($folder -eq "Ressources humaines\Gestion du personnel") 124 | { 125 | $mail = $rh[0] 126 | } 127 | ElseIf ($folder -eq "Ressources humaines\Recrutement") 128 | { 129 | $mail = $rh[1] 130 | } 131 | ElseIf ($folder -eq "Technique") 132 | { 133 | $mail = [string]$tech 134 | } 135 | ElseIf ($folder -eq "Technique\Achat") 136 | { 137 | $mail = $tech[0] 138 | } 139 | Else { 140 | $mail = $tech[1] 141 | } 142 | return $mail 143 | } 144 | 145 | # Set the quotas and threshold alerts for the chosen folder 146 | Function SetQuota($folder, $limit) 147 | { 148 | $mail = SetMail -folder $folder 149 | $mailAction = New-FsrmAction Email -MailTo $mail ` 150 | -Subject "Warning: Approaching storage limit" ` 151 | -Body "The users are about to reach the end of the available storage in the $folder folder ($limit%)." 152 | $logAction = New-FsrmAction Event -EventType Information ` 153 | -Body "The $folder folder is mostly full ($limit%)." -RunLimitInterval 60 154 | $80Threshold = New-FsrmQuotaThreshold -Percentage 80 ` 155 | -Action $mailAction 156 | $90Threshold = New-FsrmQuotaThreshold -Percentage 90 ` 157 | -Action $mailAction, $logAction 158 | $100Threshold = New-FsrmQuotaThreshold -Percentage 100 ` 159 | -Action $mailAction,$logAction 160 | New-FsrmQuota -Path "C:\Shared\$folder" -Template "$limit MB limit" ` 161 | -Threshold $80Threshold,$90Threshold,$100Threshold 162 | } 163 | 164 | $Departments = gci -Directory "C:\Shared" | select name 165 | 166 | ForEach ($folder in $Departments) 167 | { 168 | $currentFolder = $folder.Name 169 | SetQuota -folder $currentFolder -limit 500 170 | if ($currentFolder -ne "Common") { 171 | $subDepartments = gci -Directory "C:\Shared\$currentFolder" | select name 172 | ForEach ($folder in $subDepartments) 173 | { 174 | $currentSubFolder = $folder.Name 175 | SetQuota -folder "$currentFolder\$currentSubFolder" -limit 100 176 | } 177 | } 178 | } 179 | -------------------------------------------------------------------------------- /AD/Users/Create-Users.ps1: -------------------------------------------------------------------------------- 1 | <# 2 | .SYNOPSIS 3 | Creates users according to a ".csv" file. 4 | PowerSploit Function: Create-User 5 | Author: Terencio Agozzino (@rememberYou) 6 | License: None 7 | Required Dependencies: None 8 | Optional Dependencies: None 9 | Version: 1.0.0 10 | 11 | .DESCRIPTION 12 | Creates users according to a ".csv" file. 13 | 14 | .EXAMPLE 15 | PS C:\> Create-Users -File C:\Users\Administrator\Desktop\users-example.csv ` 16 | -Path "DC=heh,DC=lan" 17 | 18 | .NOTES 19 | Be careful, this script only working with `New-SWRandomPassword.ps1` 20 | 21 | Take a look at the "users-example.csv" file for the specific structure 22 | and change it with yours. 23 | 24 | You can verify your ADForest configuration with: 25 | `Get-ADForest` 26 | 27 | You can verify your ADDomain configuration with: 28 | `Get-ADDomain` 29 | #> 30 | 31 | Param( 32 | [ValidateNotNullOrEmpty()] 33 | [String] 34 | $File, 35 | 36 | [ValidateNotNullOrEmpty()] 37 | [String] 38 | $Path 39 | ) 40 | 41 | Import-Module .\New-SWRandomPassword.ps1 42 | 43 | Try { 44 | $csv = Import-Csv -Encoding "UTF8" -Path "$File" ` 45 | -Header Name, Firstname, Description, Department, OfficePhone, Office 46 | } Catch { 47 | Write-Host "Can't load the file: $file" -Foreground Red 48 | } 49 | 50 | foreach ($user in $csv) { 51 | $San = ($user.Firstname).substring(0, 2) + "." + $user.Name 52 | 53 | $GenPassword = New-SWRandomPassword -MinPasswordLength 12 -MaxPasswordLength 16 -Count 1 54 | 55 | While ($San.length -gt 19) { 56 | $San = ($user.Firstname).substring(0, 2) + "." ` 57 | + $user.Name.substring(0, ($user.Name).length / 2) 58 | } 59 | 60 | If ($San.Contains(" ")) { 61 | $San = ($user.Firstname).substring(0, 2) + "." ` 62 | + $user.Name.Split(" ")[-1] 63 | } 64 | 65 | $Sf = $Path.Split("paysbas") 66 | 67 | # If ($San.Contains("é")) { 68 | # $San = $San -replace "é", "e" 69 | # } 70 | 71 | # If ($San.Contains("è")) { 72 | # $San = $San -replace "è", "e" 73 | # } 74 | 75 | # If ($San.Contains("ê")) { 76 | # $San = $San -replace "ê", "e" 77 | # } 78 | 79 | # You should add more conditions if needed to replace accents on letters... 80 | 81 | $Mail = ("$($user.Firstname).$($user.Name)@paysbas.lan" -replace " ", "").ToLower() 82 | 83 | $Upn = ("$San@paysbas.lan").ToLower() 84 | 85 | $Ou = "OU=$($user.Department)" -replace "/", ",OU=" 86 | 87 | New-ADUser -Name "$($user.Firstname) $($user.Name)" ` 88 | -DisplayName "$($user.Firstname) $($user.Name)" ` 89 | -SamAccountName $San -UserPrincipalName "$upn" ` 90 | -GivenName $user.Firstname -Surname $user.Name ` 91 | -EmailAddress $Mail -Description $user.Description ` 92 | -OfficePhone $user.OfficePhone -Office $user.Office 93 | -AccountPassword (ConvertTo-SecureString $GenPassword -AsPlainText -Force) ` 94 | -Enabled $true -Path "$Ou,$Path" 95 | 96 | $user.Department = $user.Department -replace " ", '_' 97 | 98 | If ($user.Department.Contains('/')) { 99 | Add-ADGroupMember -Identity "GS_$($user.Department.Split('/')[0])" -Members "$San" 100 | } Else { 101 | Add-ADGroupMember -Identity "GR_$($user.Department)" -Members "$San" 102 | } 103 | } 104 | 105 | Write-Host "Done." 106 | Write-Host "$($(Get-ADUser -Filter *).Count) Users added." 107 | -------------------------------------------------------------------------------- /AD/Users/New-SWRandomPassword.ps1: -------------------------------------------------------------------------------- 1 | function New-SWRandomPassword { 2 | <# 3 | .Synopsis 4 | Generates one or more complex passwords designed to fulfill the requirements for Active Directory 5 | .DESCRIPTION 6 | Generates one or more complex passwords designed to fulfill the requirements for Active Directory 7 | .EXAMPLE 8 | New-SWRandomPassword 9 | C&3SX6Kn 10 | 11 | Will generate one password with a length between 8 and 12 chars. 12 | .EXAMPLE 13 | New-SWRandomPassword -MinPasswordLength 8 -MaxPasswordLength 12 -Count 4 14 | 7d&5cnaB 15 | !Bh776T"Fw 16 | 9"C"RxKcY 17 | %mtM7#9LQ9h 18 | 19 | Will generate four passwords, each with a length of between 8 and 12 chars. 20 | .EXAMPLE 21 | New-SWRandomPassword -InputStrings abc, ABC, 123 -PasswordLength 4 22 | 3ABa 23 | 24 | Generates a password with a length of 4 containing atleast one char from each InputString 25 | .EXAMPLE 26 | New-SWRandomPassword -InputStrings abc, ABC, 123 -PasswordLength 4 -FirstChar abcdefghijkmnpqrstuvwxyzABCEFGHJKLMNPQRSTUVWXYZ 27 | 3ABa 28 | 29 | Generates a password with a length of 4 containing atleast one char from each InputString that will start with a letter from 30 | the string specified with the parameter FirstChar 31 | .OUTPUTS 32 | [String] 33 | .NOTES 34 | Written by Simon Wåhlin, blog.simonw.se 35 | I take no responsibility for any issues caused by this script. 36 | .FUNCTIONALITY 37 | Generates random passwords 38 | .LINK 39 | http://blog.simonw.se/powershell-generating-random-password-for-active-directory/ 40 | 41 | #> 42 | [CmdletBinding(DefaultParameterSetName='FixedLength',ConfirmImpact='None')] 43 | [OutputType([String])] 44 | Param 45 | ( 46 | # Specifies minimum password length 47 | [Parameter(Mandatory=$false, 48 | ParameterSetName='RandomLength')] 49 | [ValidateScript({$_ -gt 0})] 50 | [Alias('Min')] 51 | [int]$MinPasswordLength = 8, 52 | 53 | # Specifies maximum password length 54 | [Parameter(Mandatory=$false, 55 | ParameterSetName='RandomLength')] 56 | [ValidateScript({ 57 | if($_ -ge $MinPasswordLength){$true} 58 | else{Throw 'Max value cannot be lesser than min value.'}})] 59 | [Alias('Max')] 60 | [int]$MaxPasswordLength = 12, 61 | 62 | # Specifies a fixed password length 63 | [Parameter(Mandatory=$false, 64 | ParameterSetName='FixedLength')] 65 | [ValidateRange(1,2147483647)] 66 | [int]$PasswordLength = 8, 67 | 68 | # Specifies an array of strings containing charactergroups from which the password will be generated. 69 | # At least one char from each group (string) will be used. 70 | [String[]]$InputStrings = @('abcdefghijkmnpqrstuvwxyz', 'ABCEFGHJKLMNPQRSTUVWXYZ', '23456789', '!"#%&'), 71 | 72 | # Specifies a string containing a character group from which the first character in the password will be generated. 73 | # Useful for systems which requires first char in password to be alphabetic. 74 | [String] $FirstChar, 75 | 76 | # Specifies number of passwords to generate. 77 | [ValidateRange(1,2147483647)] 78 | [int]$Count = 1 79 | ) 80 | Begin { 81 | Function Get-Seed{ 82 | # Generate a seed for randomization 83 | $RandomBytes = New-Object -TypeName 'System.Byte[]' 4 84 | $Random = New-Object -TypeName 'System.Security.Cryptography.RNGCryptoServiceProvider' 85 | $Random.GetBytes($RandomBytes) 86 | [BitConverter]::ToUInt32($RandomBytes, 0) 87 | } 88 | } 89 | Process { 90 | For($iteration = 1;$iteration -le $Count; $iteration++){ 91 | $Password = @{} 92 | # Create char arrays containing groups of possible chars 93 | [char[][]]$CharGroups = $InputStrings 94 | 95 | # Create char array containing all chars 96 | $AllChars = $CharGroups | ForEach-Object {[Char[]]$_} 97 | 98 | # Set password length 99 | if($PSCmdlet.ParameterSetName -eq 'RandomLength') 100 | { 101 | if($MinPasswordLength -eq $MaxPasswordLength) { 102 | # If password length is set, use set length 103 | $PasswordLength = $MinPasswordLength 104 | } 105 | else { 106 | # Otherwise randomize password length 107 | $PasswordLength = ((Get-Seed) % ($MaxPasswordLength + 1 - $MinPasswordLength)) + $MinPasswordLength 108 | } 109 | } 110 | 111 | # If FirstChar is defined, randomize first char in password from that string. 112 | if($PSBoundParameters.ContainsKey('FirstChar')){ 113 | $Password.Add(0,$FirstChar[((Get-Seed) % $FirstChar.Length)]) 114 | } 115 | # Randomize one char from each group 116 | Foreach($Group in $CharGroups) { 117 | if($Password.Count -lt $PasswordLength) { 118 | $Index = Get-Seed 119 | While ($Password.ContainsKey($Index)){ 120 | $Index = Get-Seed 121 | } 122 | $Password.Add($Index,$Group[((Get-Seed) % $Group.Count)]) 123 | } 124 | } 125 | 126 | # Fill out with chars from $AllChars 127 | for($i=$Password.Count;$i -lt $PasswordLength;$i++) { 128 | $Index = Get-Seed 129 | While ($Password.ContainsKey($Index)){ 130 | $Index = Get-Seed 131 | } 132 | $Password.Add($Index,$AllChars[((Get-Seed) % $AllChars.Count)]) 133 | } 134 | Write-Output -InputObject $(-join ($Password.GetEnumerator() | Sort-Object -Property Name | Select-Object -ExpandProperty Value)) 135 | } 136 | } 137 | } -------------------------------------------------------------------------------- /AD/Users/users-example.csv: -------------------------------------------------------------------------------- 1 | "LYMANS","Thomas","Directeur","Direction" 2 | "BOTSON","Pol","Administrateur","Direction" 3 | "DUCHEMIN","Christine","Secrétaire","Direction" 4 | "AGRILLO","Mathieu","Assistant RH","Gestion du Personnel/Ressources Humaines" 5 | "ALAERT","Florian","Assistant RH","Recrutement/Ressources Humaines" 6 | "AMAND","Thomas","Ingénieur","Testing/R&D" 7 | "ANJAR","Benoît","Ingénieur","Recherche/R&D" 8 | "ANTOINE","Thomas","Vendeur","Site1/Marketing" 9 | "BALASSE","Amory","Vendeur","Site2/Marketing" 10 | "BALEINE","Nicolas","Vendeur","Site3/Marketing" 11 | "BALUMUENE","Gwenaël","Vendeur","Site4/Marketing" 12 | "BANDIERA","Yassine","Comptable","Comptabilité/Finances" 13 | "BARBENCON","Valentin","Financier","Investissements/Finances" 14 | "BEGON","Quentin","Commercial","Achat/Technique" 15 | "BENEDETTI","Jason","Technicien","Techniciens/Technique" 16 | "BERNARD","Souad","Informaticien","Systèmes/Informatique" 17 | "BERNIMONT","Romain","Informaticien","HotLine/Informatique" 18 | "BLAZE","Thibault","Informaticien","Développement/Informatique" 19 | "BOONE","Cédric","Commercial","Sédentaires/Commerciaux" 20 | "BOSSUYT","Jean-Marc","Technico-commercial","Technico/Commerciaux" 21 | "BOUANATI","Tom","Assistant RH","Gestion du Personnel/Ressources Humaines" 22 | "BOUCAUT","Arnaud","Assistant RH","Recrutement/Ressources Humaines" 23 | "BOUNA","Maxence","Ingénieur","Testing/R&D" 24 | "BOURLARD","Lionel","Ingénieur","Recherche/R&D" 25 | "BRODZIK","Sylvain","Vendeur","Site1/Marketing" 26 | "BROUEZ","Emmanuel","Vendeur","Site2/Marketing" 27 | "BRUNIN","Maxime","Vendeur","Site3/Marketing" 28 | "BUSSI","Yohan","Vendeur","Site4/Marketing" 29 | "BÜYÜKKAYA","Maiko","Comptable","Comptabilité/Finances" 30 | "BUZE","Sébastien","Financier","Investissements/Finances" 31 | "CAMMARATA","Thomas","Commercial","Achat/Technique" 32 | "CAROLUS","Castel","Technicien","Techniciens/Technique" 33 | "CARPENTIER","Quentin","Informaticien","Systèmes/Informatique" 34 | "CARROYER","Igor","Informaticien","HotLine/Informatique" 35 | "CASTIAU","Benjamin","Informaticien","Développement/Informatique" 36 | "CAVENAILE","Boris","Commercial","Sédentaires/Commerciaux" 37 | "CAVICCHIA","Sébastien","Technico-commercial","Technico/Commerciaux" 38 | "CENGIZ","Hasan","Assistant RH","Gestion du Personnel/Ressources Humaines" 39 | "CHAOUCHE","Thomas","Assistant RH","Recrutement/Ressources Humaines" 40 | "CHAPELLE","Alessio","Ingénieur","Testing/R&D" 41 | "CHAUSSIER","Dorian","Ingénieur","Recherche/R&D" 42 | "CHEVALIER","Quentin","Vendeur","Site1/Marketing" 43 | "CLOSE","Riccardo","Vendeur","Site2/Marketing" 44 | "COLLA","Thibault","Vendeur","Site3/Marketing" 45 | "COLMANT","Clément","Vendeur","Site4/Marketing" 46 | "COLSON","Isidoro","Comptable","Comptabilité/Finances" 47 | "COPPENS","Ali","Financier","Investissements/Finances" 48 | "CORNEZ","Mohamed","Commercial","Achat/Technique" 49 | "CUVELIER","Sylvain","Technicien","Techniciens/Technique" 50 | "CUVELIER","Stéphane","Informaticien","Systèmes/Informatique" 51 | "DAMBRAIN","Jason","Informaticien","HotLine/Informatique" 52 | "DARDENNE","Jordan","Informaticien","Développement/Informatique" 53 | "DAUBIE","Antoine","Commercial","Sédentaires/Commerciaux" 54 | "DAVE","Gary","Technico-commercial","Technico/Commerciaux" 55 | "DEBAY","François","Assistant RH","Gestion du Personnel/Ressources Humaines" 56 | "DEBUISSON","Adrien","Assistant RH","Recrutement/Ressources Humaines" 57 | "DECALUWÉ","Corentin","Ingénieur","Testing/R&D" 58 | "DE FABRIZIO","François","Ingénieur","Recherche/R&D" 59 | "DELBECQ","Ludivine","Vendeur","Site1/Marketing" 60 | "DELCAMPE","Esteban","Vendeur","Site2/Marketing" 61 | "DELEUZE","Maximilien","Vendeur","Site3/Marketing" 62 | "DELSARTE","Dylan","Vendeur","Site4/Marketing" 63 | "DELSARTE","Jérémie","Comptable","Comptabilité/Finances" 64 | "DELSINNE","Günther","Financier","Investissements/Finances" 65 | "DE MAIO","Renaud","Commercial","Achat/Technique" 66 | "DEMARBRE","Romain","Technicien","Techniciens/Technique" 67 | "DEMARET","Lauris","Informaticien","Systèmes/Informatique" 68 | "DEMAREZ","Jonathan","Informaticien","HotLine/Informatique" 69 | "DEMEULDER","Thomas","Informaticien","Développement/Informatique" 70 | "DEPRET","Clément","Commercial","Sédentaires/Commerciaux" 71 | "DEPRÉTER","Illya","Technico-commercial","Technico/Commerciaux" 72 | "DERIDOUX","Samy","Assistant RH","Gestion du Personnel/Ressources Humaines" 73 | "DESCAMPS","Thomas","Assistant RH","Recrutement/Ressources Humaines" 74 | "DE SCHREYER","Danilo","Ingénieur","Testing/R&D" 75 | "DE SMET","Guillaume","Ingénieur","Recherche/R&D" 76 | "DESMET","David","Vendeur","Site1/Marketing" 77 | "DE STEFANO","Guillaume","Vendeur","Site2/Marketing" 78 | "DETRAIN","Mike","Vendeur","Site3/Marketing" 79 | "DETRAIN","Baptist","Vendeur","Site4/Marketing" 80 | "DGUS","Johan","Comptable","Comptabilité/Finances" 81 | "DIEU","Jérôme","Financier","Investissements/Finances" 82 | "DI PANE","Jason","Commercial","Achat/Technique" 83 | "DJAKOU MONTCHOUBE","Dylan","Technicien","Techniciens/Technique" 84 | "DUBOIS","Stefan","Informaticien","Systèmes/Informatique" 85 | "DUBOIS","Sébastien","Informaticien","HotLine/Informatique" 86 | "DUFOUR","Vincent","Informaticien","Développement/Informatique" 87 | "DUFOUR","Logan","Commercial","Sédentaires/Commerciaux" 88 | "DUFRASNE","Kevin","Technico-commercial","Technico/Commerciaux" 89 | "DUPONT","Tatiana","Assistant RH","Gestion du Personnel/Ressources Humaines" 90 | "DUQUENNE","Axel","Assistant RH","Recrutement/Ressources Humaines" 91 | "du TRIEU de TERDONCK","Dimitri","Ingénieur","Testing/R&D" 92 | "FEINCOEUR","Hippolyte","Ingénieur","Recherche/R&D" 93 | "FERAIN","Damien","Vendeur","Site1/Marketing" 94 | "FERNANDEZ PARDONCHE","Loïc","Vendeur","Site2/Marketing" 95 | "FIERS","Erwan","Vendeur","Site3/Marketing" 96 | "FOUCKI","Logan","Vendeur","Site4/Marketing" 97 | "GANGI","Jason","Comptable","Comptabilité/Finances" 98 | "GHYS","Douglas","Financier","Investissements/Finances" 99 | "GILIAN","Cyril","Commercial","Achat/Technique" 100 | "GILLET","Charles","Technicien","Techniciens/Technique" 101 | "GIRARDI","Marina","Informaticien","Systèmes/Informatique" 102 | "GLINEUR","Keegan","Informaticien","HotLine/Informatique" 103 | "GOBERT","Fabian","Informaticien","Développement/Informatique" 104 | "GODEAU","Raphaël","Commercial","Sédentaires/Commerciaux" 105 | "HALIN","Loris","Technico-commercial","Technico/Commerciaux" 106 | "HASSANI","Emmanuele","Informaticien","HotLine/Informatique" 107 | "HENDRYCKX","Jimmy","Assistant RH","Gestion du Personnel/Ressources Humaines" 108 | "HEUSCHEN","Maxime","Assistant RH","Recrutement/Ressources Humaines" 109 | "HUBLART","Jean-Philippe","Ingénieur","Testing/R&D" 110 | "HUEZ","Olivier","Ingénieur","Recherche/R&D" 111 | "HURBAIN","Bertrand","Vendeur","Site1/Marketing" 112 | "HUYGENS","Bryan","Vendeur","Site2/Marketing" 113 | "HVAN","Raphaël","Vendeur","Site3/Marketing" 114 | "ITANI","Thomas","Vendeur","Site4/Marketing" 115 | "JACQUEMIN","Killian","Comptable","Comptabilité/Finances" 116 | "JANSSENS","Marc","Financier","Investissements/Finances" 117 | "KENGNE NAOUSSI","Maxandre","Commercial","Achat/Technique" 118 | "KERENNEUR","Steven","Technicien","Techniciens/Technique" 119 | "KNIFFKA","Arnaud","Informaticien","Systèmes/Informatique" 120 | "KOUZNETSOV","Thomas","Informaticien","HotLine/Informatique" 121 | "LAKKAS","Adrien","Informaticien","Développement/Informatique" 122 | "LALISSE","Igor","Commercial","Sédentaires/Commerciaux" 123 | "LALLEMAND","Fouad","Technico-commercial","Technico/Commerciaux" 124 | "LAMBERT","Geoffrey","Informaticien","Développement/Informatique" 125 | "LAURENT","Elliott","Assistant RH","Gestion du Personnel/Ressources Humaines" 126 | "LECLERCQ","Carine","Assistant RH","Recrutement/Ressources Humaines" 127 | "LECLERCQ","Loïc","Ingénieur","Testing/R&D" 128 | "LEDRU","Christopher","Ingénieur","Recherche/R&D" 129 | "LEFEBVRE","Denis","Vendeur","Site1/Marketing" 130 | "LEGAT","Petros","Vendeur","Site2/Marketing" 131 | "LEGRAND","François","Vendeur","Site3/Marketing" 132 | "LEGRAND","Anton","Vendeur","Site4/Marketing" 133 | "LEHTONEN","Dylan","Comptable","Comptabilité/Finances" 134 | "LEMAIRE","Jonathan","Financier","Investissements/Finances" 135 | "LEMAIRE","Lloyd","Commercial","Achat/Technique" 136 | "LEPOIVRE","Julien","Technicien","Techniciens/Technique" 137 | "LEVEQUE","Tristan","Informaticien","Systèmes/Informatique" 138 | "LHOST","Lionel","Informaticien","HotLine/Informatique" 139 | "LOLIVIER","Nathan","Informaticien","Développement/Informatique" 140 | "LOOSVELDT","Gary","Commercial","Sédentaires/Commerciaux" 141 | "MACHA","Sébastien","Technico-commercial","Technico/Commerciaux" 142 | "MACHIELS","Miika","Commercial","Sédentaires/Commerciaux" 143 | "MACRIS","Rémy","Assistant RH","Gestion du Personnel/Ressources Humaines" 144 | "MAHIEU","Julien","Assistant RH","Recrutement/Ressources Humaines" 145 | "MALENGREAUX","François","Ingénieur","Testing/R&D" 146 | "MARBAIX","Fabian","Ingénieur","Recherche/R&D" 147 | "MARCHESANI","Pierre","Vendeur","Site1/Marketing" 148 | "MARTIN","Mathieu","Vendeur","Site2/Marketing" 149 | "MARTIN","Lucas","Vendeur","Site3/Marketing" 150 | "MAZZOLA","Hugo","Vendeur","Site4/Marketing" 151 | "MAZZUCA","Julien","Comptable","Comptabilité/Finances" 152 | "MESSINA","Alexandros","Financier","Investissements/Finances" 153 | "MEUNIER","Lucas","Commercial","Achat/Technique" 154 | "MEYERS","Jil","Technicien","Techniciens/Technique" 155 | "MICCICHE","Romain","Informaticien","Systèmes/Informatique" 156 | "MILANO","Mario","Informaticien","HotLine/Informatique" 157 | "MINON","Eric","Informaticien","Développement/Informatique" 158 | "MONKAM","Benjamin","Commercial","Sédentaires/Commerciaux" 159 | "MONSEUR","Nicolas","Technico-commercial","Technico/Commerciaux" 160 | "MONTEODORISIO","Michaël","Technico-commercial","Technico/Commerciaux" 161 | "MORTIER","Dorian","Assistant RH","Gestion du Personnel/Ressources Humaines" 162 | "MOURY","Harvey","Assistant RH","Recrutement/Ressources Humaines" 163 | "MOUTIER","Maxime","Ingénieur","Testing/R&D" 164 | "MOYART","Biagio","Ingénieur","Recherche/R&D" 165 | "MUHAYIMANA","Bruno","Vendeur","Site1/Marketing" 166 | "MUNUKU NTANGALA","Thomas","Vendeur","Site2/Marketing" 167 | "MUSIN","Clément Bérenger","Vendeur","Site3/Marketing" 168 | "NAGY","Cédrik","Vendeur","Site4/Marketing" 169 | "NASSERY","Lucas","Comptable","Comptabilité/Finances" 170 | "NATINO","Jérémy","Financier","Investissements/Finances" 171 | "NAVEZ","Benjamin","Commercial","Achat/Technique" 172 | "NAZE","Romain","Technicien","Techniciens/Technique" 173 | "NIKO","Quentin","Informaticien","Systèmes/Informatique" 174 | "OKULICHEV","Franck","Informaticien","HotLine/Informatique" 175 | "OLIVEIRA AZEVEDO","Jan-Marc","Informaticien","Développement/Informatique" 176 | "OMEY","Alexandre","Commercial","Sédentaires/Commerciaux" 177 | "ÖZSOY","Valentin","Technico-commercial","Technico/Commerciaux" 178 | "OZTURK","Alisina","Assistant RH","Gestion du Personnel/Ressources Humaines" 179 | "PAIJ","Massimo","Assistant RH","Recrutement/Ressources Humaines" 180 | "PEREZ FORNAL","Quentin","Ingénieur","Testing/R&D" 181 | "PETÖ","Corentin","Ingénieur","Recherche/R&D" 182 | "PILETTE","Aymard","Vendeur","Site1/Marketing" 183 | "POGLAJEN","Ivan","Vendeur","Site2/Marketing" 184 | "POIZOT","Francisco","Vendeur","Site3/Marketing" 185 | "POLLARA","Xavier","Vendeur","Site4/Marketing" 186 | "POTTIEZ","Ihsan","Comptable","Comptabilité/Finances" 187 | "POTTIEZ","Koray","Financier","Investissements/Finances" 188 | "POUPON","Thomas","Commercial","Achat/Technique" 189 | "QUENTIN","Robin","Technicien","Techniciens/Technique" 190 | "QUITTELIER","Niels","Informaticien","Systèmes/Informatique" 191 | "RENAUX","Antoine","Informaticien","HotLine/Informatique" 192 | "RETIEL","Killian","Informaticien","Développement/Informatique" 193 | "RIGAUX","Maxim","Commercial","Sédentaires/Commerciaux" 194 | "ROUGE","Giuseppe","Technico-commercial","Technico/Commerciaux" 195 | "ROUGE","Valentin","Assistant RH","Gestion du Personnel/Ressources Humaines" 196 | "RUELLE","Adrien","Assistant RH","Recrutement/Ressources Humaines" 197 | "RUSTIN","Martin","Ingénieur","Testing/R&D" 198 | "RUYFFLAERT","Valentin","Ingénieur","Recherche/R&D" 199 | "SCHIFANO","Romain","Vendeur","Site1/Marketing" 200 | "SCHINAS","Romain","Vendeur","Site2/Marketing" 201 | "SENE","Bilal","Vendeur","Site3/Marketing" 202 | "SEUDIEU","Kévin","Vendeur","Site4/Marketing" 203 | "SEVERIJNS","Alex","Comptable","Comptabilité/Finances" 204 | "SEVERINO","Axel","Financier","Investissements/Finances" 205 | "SOLITO","Adelson","Commercial","Achat/Technique" 206 | "SOLLAI","François","Technicien","Techniciens/Technique" 207 | "SORTINO","Cédric","Informaticien","Systèmes/Informatique" 208 | "SOUBHI","Thomas","Informaticien","HotLine/Informatique" 209 | "SOUPART","Florian","Informaticien","Développement/Informatique" 210 | "STAQUET","Papa Math","Commercial","Sédentaires/Commerciaux" 211 | "STIENS","Hermann","Technico-commercial","Technico/Commerciaux" 212 | "STIEVENART","Benjamin","Assistant RH","Gestion du Personnel/Ressources Humaines" 213 | "SURMONT","Luca","Assistant RH","Recrutement/Ressources Humaines" 214 | "SUYS","Nicola","Ingénieur","Testing/R&D" 215 | "SWAELENS","Gaëtan","Ingénieur","Recherche/R&D" 216 | "TIEMELE","Adriano","Vendeur","Site1/Marketing" 217 | "TOUONFO NOLEKOUO","Karim Hassan","Vendeur","Site2/Marketing" 218 | "VANDENBORRE","Mathieu","Vendeur","Site3/Marketing" 219 | "VAN DEN BROECKE","Danny","Vendeur","Site4/Marketing" 220 | "VANDEN HERREWEGEN","Germain","Comptable","Comptabilité/Finances" 221 | "VANDER BEKEN","Geoffrey","Financier","Investissements/Finances" 222 | "VANDERVEKEN","Aurélien","Commercial","Achat/Technique" 223 | "VANDERWALLE","Thomas","Technicien","Techniciens/Technique" 224 | "VANDRIES","Jonathan","Informaticien","Systèmes/Informatique" 225 | "VANDYSTADT","Asse Yah Evelyne","Informaticien","HotLine/Informatique" 226 | "VANGELABBEEK","Danny Magloire","Informaticien","Développement/Informatique" 227 | "VAN HECKE","Maxime","Commercial","Sédentaires/Commerciaux" 228 | "VAN LAECKE","Terence","Technico-commercial","Technico/Commerciaux" 229 | "VAN PUYVELDE","Benoît","Informaticien","Systèmes/Informatique" 230 | "VAN SAN","Kévin","Assistant RH","Gestion du Personnel/Ressources Humaines" 231 | "VEGH","Louis","Assistant RH","Recrutement/Ressources Humaines" 232 | "VICCA","Alain","Ingénieur","Testing/R&D" 233 | "VIVIER","Thomas","Ingénieur","Recherche/R&D" 234 | "VRIONIS","Boris","Vendeur","Site1/Marketing" 235 | "WAROQUIER","Matthieu","Vendeur","Site2/Marketing" 236 | "WATTIEZ","Maxime","Vendeur","Site3/Marketing" 237 | "WATTIEZ","Loïc","Vendeur","Site4/Marketing" 238 | "WILLE","Kevin","Comptable","Comptabilité/Finances" 239 | "WILLEKENS","Jason","Financier","Investissements/Finances" 240 | "WYBAUX","Maxime","Commercial","Achat/Technique" 241 | "ZENZEROVICH","Manuel","Technicien","Techniciens/Technique" 242 | "ZOUAK","Jean-François","Informaticien","Systèmes/Informatique" 243 | -------------------------------------------------------------------------------- /AD/Users/users-utf8.csv: -------------------------------------------------------------------------------- 1 | ABRAMS,Corky,Commercial,Sédentaires/Commerciaux,344,Bureau 23 2 | ADIL,Dario,Informaticien,HotLine/Informatique,280,Bureau 13 3 | AL OBAIDY,Kevin,Vendeur,Site3/Marketting,382,Site 3 4 | ALJERF,Boris,Commercial,Sédentaires/Commerciaux,339,Bureau 23 5 | ALLARD,Costa,Financier,Investissements/Finances,298,Bureau 14 6 | ANJAR,Romain,Ingénieur,Recherche/R&D,319,Bureau 18 7 | ASSOIGNONS,Stefano,Comptable,Comptabilité/Finances,247,Bureau 5 8 | AUDEVAL,Sacha,Vendeur,Site4/Marketting,404,Site 4 9 | AYINKAMIYE,Arnaud,Vendeur,Site3/Marketting,386,Site 3 10 | BADOT,Elise,Vendeur,Site3/Marketting,387,Site 3 11 | BAETENS,Ann-Sophie,Technicien,Techniciens/Technique,429,Bureau 27 12 | BAILY,Andrea,Vendeur,Site2/Marketting,371,Site 2 13 | BALASSE,Sébastien,Comptable,Comptabilité/Finances,234,Bureau 3 14 | BARIGAND,Audrey,Vendeur,Site4/Marketting,398,Site 4 15 | BARRIO-ROMAN,Benjamin,Ingénieur,Testing/R&D,452,Bureau 28 16 | BARUTCHI,Sheridan,Technico-commercial,Technico/Commerciaux,438,Bureau 23 17 | BAUDUIN,Loïc,Assistant RH,Gestion du personnel/Ressources humaines,265,Bureau 10 18 | BELENGER,Julien,Ingénieur,Recherche/R&D,316,Bureau 17 19 | BERTIEAUX,Ludovic,Technicien,Techniciens/Technique,432,Bureau 27 20 | BETMURZAEV,Luigi,Financier,Investissements/Finances,297,Bureau 14 21 | BIANCO,Emilie,Assistant RH,Recrutement/Ressources humaines,334,Bureau 22 22 | BOCQUILLON,Sayouba,Technicien,Techniciens/Technique,420,Bureau 26 23 | BODSON,Nathan,Ingénieur,Recherche/R&D,310,Bureau 16 24 | BOELEN,Valentin,Assistant RH,Gestion du personnel/Ressources humaines,276,Bureau 12 25 | BOITEAUX,Caroline,Commercial,Sédentaires/Commerciaux,347,Bureau 23 26 | BONATO,Pierre,Technico-commercial,Technico/Commerciaux,442,Bureau 23 27 | BOONE,Melissa,Comptable,Comptabilité/Finances,238,Bureau 3 28 | BOUTRY,Pauline,Ingénieur,Recherche/R&D,320,Bureau 18 29 | BOYDENS,Simon,Vendeur,Site3/Marketting,385,Site 3 30 | BRESOUX,Anthony,Ingénieur,Testing/R&D,459,Bureau 29 31 | BRUNIN,Bruno,Financier,Investissements/Finances,303,Bureau 15 32 | BRUNO,François,Vendeur,Site1/Marketting,354,Site 1 33 | BUFFE,Vadim,Ingénieur,Testing/R&D,460,Bureau 29 34 | BUSA,Nicolas,Informaticien,Développement/Informatique,255,Bureau 7 35 | BÜYÜKKAYA,Mattéo,Commercial,Achat/Technique,227,Bureau 2 36 | CARDOEN,Sophie,Informaticien,Développement/Informatique,250,Bureau 6 37 | CARPENTIER,Cara,Ingénieur,Recherche/R&D,308,Bureau 16 38 | CARROYER,Maxence,Commercial,Achat/Technique,229,Bureau 2 39 | CAVROT,Simon,Comptable,Comptabilité/Finances,235,Bureau 3 40 | CELENZA,Mathieu,Vendeur,Site3/Marketting,388,Site 3 41 | CERCA MOTA,Jonathan,Commercial,Sédentaires/Commerciaux,346,Bureau 23 42 | CHABOTIER,Samuel,Technico-commercial,Technico/Commerciaux,440,Bureau 23 43 | CHAHBANE,Carmelo,Vendeur,Site2/Marketting,372,Site 2 44 | CHANTRY,Guillaume,Vendeur,Site1/Marketting,361,Site 1 45 | CHARLIER,Alexandre,Commercial,Sédentaires/Commerciaux,342,Bureau 23 46 | CHARLIER,Lucky,Vendeur,Site3/Marketting,384,Site 3 47 | CHATOUANI,Pierre,Informaticien,HotLine/Informatique,285,Bureau 13 48 | CHEVALIER,Donatien,Commercial,Achat/Technique,233,Bureau 2 49 | CHIAPPINI,Benjamin,Ingénieur,Recherche/R&D,317,Bureau 17 50 | CHOUAMBE MBOUALIE,Giuseppe,Assistant RH,Gestion du personnel/Ressources humaines,273,Bureau 11 51 | Clam,Alexandre,Administrateur,Direction,263,Direction 52 | COEKAERTS,Corentin,Technico-commercial,Technico/Commerciaux,444,Bureau 23 53 | COLETTE,Guillaume,Informaticien,HotLine/Informatique,289,Bureau 13 54 | COLIANNI,Sébastien,Vendeur,Site3/Marketting,377,Site 3 55 | COLLARD,Loïc,Ingénieur,Recherche/R&D,318,Bureau 18 56 | COLLE,Niels,Assistant RH,Recrutement/Ressources humaines,326,Bureau 20 57 | COLLET,Alexandre,Vendeur,Site1/Marketting,356,Site 1 58 | CONTI,Bryan,Financier,Investissements/Finances,300,Bureau 14 59 | CORDIER,Dino,Commercial,Achat/Technique,223,Bureau 1 60 | COUTURE,Jason,Ingénieur,Testing/R&D,454,Bureau 28 61 | DAGNEAU,Thibaut,Commercial,Achat/Technique,224,Bureau 1 62 | D'ALFONSO,Maxime,Financier,Investissements/Finances,296,Bureau 14 63 | DAME,Clément,Informaticien,Systèmes/Informatique,405,Bureau 24 64 | DAUBIOUL,Philippe,Vendeur,Site1/Marketting,351,Site 1 65 | DE BAENST,Morgane,Comptable,Comptabilité/Finances,237,Bureau 3 66 | DE BRAKELEER,Pierre,Financier,Investissements/Finances,293,Bureau 14 67 | DE GEYTER,Hashem,Informaticien,Systèmes/Informatique,417,Bureau 25 68 | DE PASCALE,Marine,Vendeur,Site2/Marketting,376,Site 2 69 | DE RYCK,Dérénik,Assistant RH,Recrutement/Ressources humaines,328,Bureau 20 70 | DE SMET,Youri,Ingénieur,Testing/R&D,450,Bureau 28 71 | DE TROCH,Gizem,Commercial,Sédentaires/Commerciaux,336,Bureau 23 72 | DEBACKER,Ervin,Ingénieur,Recherche/R&D,309,Bureau 16 73 | DEBOELPAEP,Mathias,Ingénieur,Recherche/R&D,314,Bureau 17 74 | DEBRUILLE,Orion,Vendeur,Site4/Marketting,397,Site 4 75 | DECLERCQ,Nicolas,Ingénieur,Recherche/R&D,311,Bureau 16 76 | DECOCK,Koray,Technico-commercial,Technico/Commerciaux,441,Bureau 23 77 | DECREME,Anthony,Vendeur,Site4/Marketting,396,Site 4 78 | DEHARBES,Paul Christel,Assistant RH,Recrutement/Ressources humaines,325,Bureau 19 79 | DELADRIÈRE,Dragos,Informaticien,Systèmes/Informatique,413,Bureau 25 80 | DELAERE,Melvin,Financier,Investissements/Finances,302,Bureau 14 81 | DELAUNOY,Robin,Commercial,Achat/Technique,220,Bureau 1 82 | DELCROIX,Quentin,Informaticien,Systèmes/Informatique,416,Bureau 25 83 | DENIS,Marcello,Vendeur,Site3/Marketting,380,Site 3 84 | DESCAMPS,Zhen Cheng,Ingénieur,Recherche/R&D,312,Bureau 17 85 | DESCHAMPS,Thomas,Informaticien,HotLine/Informatique,290,Bureau 13 86 | DESCHUYTENEER,Ryan,Vendeur,Site4/Marketting,392,Site 4 87 | DESMET,Loïc,Vendeur,Site4/Marketting,391,Site 4 88 | DESSIMÉON,Corentin,Commercial,Sédentaires/Commerciaux,341,Bureau 23 89 | DEWILDE,Jefferson,Vendeur,Site1/Marketting,350,Site 1 90 | DI VRUSA,Nicolas,Assistant RH,Gestion du personnel/Ressources humaines,275,Bureau 12 91 | DIMASO,Jason,Informaticien,Développement/Informatique,253,Bureau 7 92 | DINSI,Alexandre,Comptable,Comptabilité/Finances,242,Bureau 4 93 | DONNAY,Sven,Comptable,Comptabilité/Finances,244,Bureau 5 94 | DRUART,Antoni,Ingénieur,Testing/R&D,456,Bureau 28 95 | DUBOIS,Giuliano,Commercial,Sédentaires/Commerciaux,345,Bureau 23 96 | DUDKANLOU,Brahim,Commercial,Achat/Technique,230,Bureau 2 97 | DUFRASNE,Mohammed,Ingénieur,Testing/R&D,448,Bureau 28 98 | DUMONT,Fanny,Financier,Investissements/Finances,306,Bureau 15 99 | DUMONT,Mats,Vendeur,Site2/Marketting,366,Site 2 100 | DUPUIS,Victor,Ingénieur,Recherche/R&D,313,Bureau 17 101 | EL HASSANI,Aurélien,Informaticien,Développement/Informatique,256,Bureau 8 102 | EMAKO TCHIAPPI,Cyril,Technicien,Techniciens/Technique,421,Bureau 26 103 | ERGIN,Corentin,Technicien,Techniciens/Technique,427,Bureau 27 104 | EXAPIHIDIS,Damien,Technicien,Techniciens/Technique,425,Bureau 26 105 | FASBENDER,Robert,Technico-commercial,Technico/Commerciaux,445,Bureau 23 106 | FLABA,Dylan,Vendeur,Site1/Marketting,349,Site 1 107 | FOULON,Lucie,Informaticien,Développement/Informatique,254,Bureau 7 108 | FOURNEAUX,Hasan,Informaticien,Développement/Informatique,249,Bureau 6 109 | FRECHE,Thibault,Directeur,Direction,262,Direction 110 | FUNTOWICZ,Kévin,Commercial,Sédentaires/Commerciaux,337,Bureau 23 111 | GALLEZ,Florian,Informaticien,Systèmes/Informatique,408,Bureau 24 112 | GAMORY,Alexis,Ingénieur,Testing/R&D,457,Bureau 29 113 | GARAIN,Nathalie,Commercial,Achat/Technique,232,Bureau 2 114 | GAVERIAUX,Othmane,Technicien,Techniciens/Technique,423,Bureau 26 115 | GENAILLE,Alexandre,Vendeur,Site1/Marketting,362,Site 1 116 | GÉRARD,Sébastien,Informaticien,HotLine/Informatique,286,Bureau 13 117 | GHEKIERE,Thomas,Vendeur,Site1/Marketting,355,Site 1 118 | GHISLAIN,Christopher,Informaticien,HotLine/Informatique,292,Bureau 13 119 | GILLEZ,Corentin,Assistant RH,Gestion du personnel/Ressources humaines,268,Bureau 10 120 | GILMANT,Dorian,Ingénieur,Testing/R&D,461,Bureau 29 121 | GOBIN,Nicolas,Technico-commercial,Technico/Commerciaux,434,Bureau 23 122 | GODFRAIND,Jérémy,Technico-commercial,Technico/Commerciaux,436,Bureau 23 123 | GOSSART,Maxime,Assistant RH,Gestion du personnel/Ressources humaines,272,Bureau 11 124 | GOSSET,Martin,Assistant RH,Gestion du personnel/Ressources humaines,269,Bureau 10 125 | HAMA,Arnaud,Assistant RH,Recrutement/Ressources humaines,329,Bureau 20 126 | HANKE,Pierre,Assistant RH,Recrutement/Ressources humaines,333,Bureau 22 127 | HANOT,Guillaume,Technicien,Techniciens/Technique,424,Bureau 26 128 | HANSE,Pierre,Informaticien,Développement/Informatique,248,Bureau 6 129 | HEESE,Luca,Informaticien,HotLine/Informatique,279,Bureau 13 130 | HEUSSCHEN,Jérôme,Vendeur,Site3/Marketting,383,Site 3 131 | ISEMBAERT,Elisabeth,Informaticien,Systèmes/Informatique,410,Bureau 24 132 | IURETIG,Jean-Baptiste,Technicien,Techniciens/Technique,428,Bureau 27 133 | JOHNSON,Cziriak,Comptable,Comptabilité/Finances,236,Bureau 3 134 | KANBULATOV,Adrien,Informaticien,Développement/Informatique,252,Bureau 6 135 | KAZADI NSAMBA,Clara,Vendeur,Site2/Marketting,373,Site 2 136 | KENTROS,Olivier,Assistant RH,Gestion du personnel/Ressources humaines,267,Bureau 10 137 | KIRAKOYA,Souad,Comptable,Comptabilité/Finances,240,Bureau 4 138 | KOZAK,Romain,Ingénieur,Recherche/R&D,315,Bureau 17 139 | KUATÉ NDEPPÉ,Xavier,Commercial,Achat/Technique,222,Bureau 1 140 | KUPPENS,Jérémy,Ingénieur,Testing/R&D,453,Bureau 28 141 | KWALA,Lucas,Technico-commercial,Technico/Commerciaux,435,Bureau 23 142 | LANDRIEU,Julien,Vendeur,Site1/Marketting,360,Site 1 143 | LARIVE,Riccardo,Technico-commercial,Technico/Commerciaux,437,Bureau 23 144 | LE MAIRE,Julien,Assistant RH,Recrutement/Ressources humaines,332,Bureau 22 145 | LEBAILLY,Samuel,Ingénieur,Testing/R&D,449,Bureau 28 146 | LEBRUN,Kévin,Informaticien,HotLine/Informatique,291,Bureau 13 147 | LEJEUNE,Johnny,Informaticien,Développement/Informatique,261,Bureau 9 148 | LEMAL,Christopher,Technico-commercial,Technico/Commerciaux,443,Bureau 23 149 | LEPAGE,Lara,Informaticien,Systèmes/Informatique,409,Bureau 24 150 | LERAT,Ahmed Natama,Vendeur,Site3/Marketting,379,Site 3 151 | LIÉGEOIS,Florian,Vendeur,Site3/Marketting,381,Site 3 152 | LOKEMBO EHAMBE,Antoine,Secrétaire,Direction,264,Direction 153 | MACHIELS,Cyril,Vendeur,Site1/Marketting,357,Site 1 154 | MACRIS,Naël,Vendeur,Site4/Marketting,403,Site 4 155 | MAGNIEN,Florent,Vendeur,Site2/Marketting,364,Site 2 156 | MAHAUX,Thomas,Commercial,Achat/Technique,225,Bureau 2 157 | MAHIEU,Elias,Informaticien,HotLine/Informatique,281,Bureau 13 158 | MAHMOUD,Youness,Vendeur,Site4/Marketting,402,Site 4 159 | MANCUSO,James,Technicien,Techniciens/Technique,422,Bureau 26 160 | MANOUVRIER,Brandon,Technicien,Techniciens/Technique,426,Bureau 26 161 | MARCHEGGIANI,Benjamin,Vendeur,Site4/Marketting,395,Site 4 162 | MAROQUIN,Colin,Assistant RH,Recrutement/Ressources humaines,327,Bureau 20 163 | MARQUETTE,Julien,Informaticien,HotLine/Informatique,287,Bureau 13 164 | MARTIN,Kevin,Vendeur,Site2/Marketting,363,Site 2 165 | MATHIEU,Nicolas,Vendeur,Site4/Marketting,394,Site 4 166 | MERCIER,Amaury,Vendeur,Site3/Marketting,390,Site 4 167 | MERKEN,Théo,Vendeur,Site1/Marketting,352,Site 1 168 | MERZOUKI,Théo,Informaticien,HotLine/Informatique,283,Bureau 13 169 | MESSENS,Pascal,Commercial,Achat/Technique,231,Bureau 2 170 | MIDLAIRE,Alexis,Technico-commercial,Technico/Commerciaux,446,Bureau 23 171 | MIGNON,Julien,Financier,Investissements/Finances,295,Bureau 14 172 | MILAZZO,Dan,Vendeur,Site2/Marketting,370,Site 2 173 | MISERENDINO,Amélie,Technicien,Techniciens/Technique,430,Bureau 27 174 | MONKAM,Logan,Financier,Investissements/Finances,299,Bureau 14 175 | MOUGENOT,Ernestine,Informaticien,Développement/Informatique,251,Bureau 6 176 | MROZEK,Aurélien,Assistant RH,Gestion du personnel/Ressources humaines,277,Bureau 12 177 | MUKIZA,Aurélien,Technico-commercial,Technico/Commerciaux,447,Bureau 23 178 | MULLIEZ,Onur,Informaticien,HotLine/Informatique,282,Bureau 13 179 | NGUEHOUNG MOUGANG,Sabrina,Commercial,Sédentaires/Commerciaux,340,Bureau 23 180 | NIAMKE,Louis,Informaticien,Systèmes/Informatique,406,Bureau 24 181 | NOËL,Xavier,Assistant RH,Recrutement/Ressources humaines,322,Bureau 19 182 | NOËL,Martin,Informaticien,Systèmes/Informatique,412,Bureau 25 183 | NTSIAMA MASAMPU,Kevin,Vendeur,Site2/Marketting,367,Site 2 184 | OSPITIA OROZCO,Nathan,Vendeur,Site2/Marketting,375,Site 2 185 | OZTÜRK,Bertrand,Technicien,Techniciens/Technique,433,Bureau 27 186 | PAUWELS,Simon,Comptable,Comptabilité/Finances,245,Bureau 5 187 | PEE,Jonathan,Technico-commercial,Technico/Commerciaux,439,Bureau 23 188 | PELLECCHIA,Essia,Assistant RH,Recrutement/Ressources humaines,323,Bureau 19 189 | PEROTTI,Mathilde,Comptable,Comptabilité/Finances,246,Bureau 5 190 | PETÖ,Bruno,Informaticien,Systèmes/Informatique,415,Bureau 25 191 | PETROCITTO,Yvan Rollin,Vendeur,Site1/Marketting,358,Site 1 192 | PIÉRART,Quentin,Comptable,Comptabilité/Finances,239,Bureau 3 193 | PIETQUIN,Antoine,Vendeur,Site4/Marketting,393,Site 4 194 | PLACE,Maxim,Informaticien,HotLine/Informatique,288,Bureau 13 195 | POGLAJEN,Adam,Commercial,Sédentaires/Commerciaux,338,Bureau 23 196 | PORCU,Thomas,Vendeur,Site3/Marketting,389,Site 3 197 | PRIMUCCI,Gaëtan,Vendeur,Site4/Marketting,401,Site 4 198 | RAMIRO-GONZALEZ,Armand,Informaticien,Développement/Informatique,257,Bureau 8 199 | REGNIER,Maxime,Assistant RH,Gestion du personnel/Ressources humaines,271,Bureau 11 200 | REUTER,Alexandros,Informaticien,Systèmes/Informatique,411,Bureau 24 201 | RIGAUX,Romain,Commercial,Achat/Technique,228,Bureau 2 202 | RIQUIER,Denis,Assistant RH,Gestion du personnel/Ressources humaines,278,Bureau 12 203 | ROBERT,Johan,Technicien,Techniciens/Technique,431,Bureau 27 204 | RODRIGUEZ PLAZA,François,Ingénieur,Testing/R&D,458,Bureau 29 205 | ROEKHAUT,Ornella,Assistant RH,Recrutement/Ressources humaines,330,Bureau 22 206 | ROSI,Omar,Informaticien,HotLine/Informatique,284,Bureau 13 207 | SARTI,Kevin,Informaticien,Développement/Informatique,260,Bureau 9 208 | SAUCEZ,Marco,Informaticien,Systèmes/Informatique,407,Bureau 24 209 | SCARPULLA,Tatiana,Informaticien,Développement/Informatique,258,Bureau 8 210 | SERVIDIO,Victor,Vendeur,Site4/Marketting,399,Site 4 211 | SEVERIJNS,Gillian,Assistant RH,Recrutement/Ressources humaines,331,Bureau 22 212 | SIMON,Nicola,Commercial,Sédentaires/Commerciaux,348,Bureau 23 213 | SOLDANO,Yanick,Commercial,Sédentaires/Commerciaux,343,Bureau 23 214 | SOW,Floriana,Assistant RH,Gestion du personnel/Ressources humaines,270,Bureau 11 215 | STALON,Thibaut,Ingénieur,Testing/R&D,451,Bureau 28 216 | STERCKVAL,Guillaume,Assistant RH,Recrutement/Ressources humaines,324,Bureau 19 217 | STIVAL,Hugo,Ingénieur,Testing/R&D,455,Bureau 28 218 | TABBUSO,Florian,Informaticien,Systèmes/Informatique,418,Bureau 25 219 | TCHANTCHOU NJOSSE,Ines,Informaticien,Systèmes/Informatique,419,Bureau 25 220 | TCHUENTE TCHOCK,Anthony,Comptable,Comptabilité/Finances,243,Bureau 4 221 | TERNULLO,Valerio,Assistant RH,Gestion du personnel/Ressources humaines,274,Bureau 12 222 | THIEBAUT,Lee-Roy,Financier,Investissements/Finances,294,Bureau 14 223 | THIRIONET,Anthony,Vendeur,Site2/Marketting,369,Site 2 224 | TISCAL,Adrien,Ingénieur,Recherche/R&D,307,Bureau 16 225 | TRAPANI,Hugo,Vendeur,Site3/Marketting,378,Site 3 226 | TRICOT,Chloé,Commercial,Achat/Technique,221,Bureau 1 227 | ULUPINAR,Laurent,Vendeur,Site4/Marketting,400,Site 4 228 | VAN DROOGENBROEK,Kevin,Financier,Investissements/Finances,301,Bureau 14 229 | VAN DURM,Aurian,Vendeur,Site2/Marketting,368,Site 2 230 | VAN LAECKE,Junyi,Commercial,Sédentaires/Commerciaux,335,Bureau 23 231 | VANDERROOST,Florian,Vendeur,Site1/Marketting,359,Site 1 232 | VANDEVOORDE,Iris,Financier,Investissements/Finances,305,Bureau 15 233 | VERCOUTER,Mélissa,Comptable,Comptabilité/Finances,241,Bureau 4 234 | VILLANI,Julien,Vendeur,Site1/Marketting,353,Site 1 235 | VITALE,Linzzeth,Commercial,Achat/Technique,226,Bureau 2 236 | VLAMINGS,Lenny,Assistant RH,Gestion du personnel/Ressources humaines,266,Bureau 10 237 | VULLO,Guillaume,Assistant RH,Recrutement/Ressources humaines,321,Bureau 19 238 | WANKOUA NKEPNJOUO,Martin,Informaticien,Systèmes/Informatique,414,Bureau 25 239 | WARGNIE,Thierry,Vendeur,Site2/Marketting,365,Site 2 240 | WAROQUIER,Dylan,Vendeur,Site2/Marketting,374,Site 2 241 | YE,Louis,Informaticien,Développement/Informatique,259,Bureau 9 242 | ZECCHINON,Michaël,Financier,Investissements/Finances,304,Bureau 15 243 | -------------------------------------------------------------------------------- /Assets/Powershell_black_64.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rememberYou/powershell-scripts/af6875ac0dd4d6a4d1e05c0cd776b43eaab9296c/Assets/Powershell_black_64.png -------------------------------------------------------------------------------- /Backup and PSO/Conf-Backup.ps1: -------------------------------------------------------------------------------- 1 | <# 2 | .SYNOPSIS 3 | Configures the Windows Server Backup as well as the backup Disk. 4 | PowerSploit Function: Conf-Backup 5 | Author: Terencio Agozzino (@rememberYou) 6 | Alexandre Ducobu (@Harchytekt) 7 | License: None 8 | Required Dependencies: None 9 | Optional Dependencies: None 10 | Version: 1.0.0 11 | 12 | .DESCRIPTION 13 | Conf-Backup Configures the Windows Server Backup as well as the backup Disk. 14 | 15 | .EXAMPLE 16 | PS C:\> Conf-Backup -Frequency Daily -Schedule 06:10 17 | 18 | .NOTES 19 | You can list all the available disks: 20 | `Get-Disk` 21 | 22 | You can get a summary of previously run backup operations: 23 | `Get-WBSummary` 24 | 25 | You can get infos about the current backup job: 26 | `Get-WBJob` 27 | 28 | You can get infos about the backup schedule: 29 | `$WBPolicy = New-WBPolicy 30 | Get-WBSchedule -Policy $WBPolicy` 31 | 32 | You can check the Scheduled Backup in `taskschd.msc`, at this location: 33 | `\Microsoft\Windows\Powershell\ScheduledJobs\` 34 | #> 35 | 36 | Param( 37 | [ValidateNotNullOrEmpty()] 38 | [String] 39 | $Frequency, 40 | 41 | [ValidateNotNullOrEmpty()] 42 | [String] 43 | $Schedule 44 | ) 45 | 46 | # Configure the Backup disk 47 | Set-Disk 1 -IsOffline $false 48 | Initialize-Disk -Number 1 -PartitionStyle MBR 49 | New-Partition -DiskNumber 1 -UseMaximumSize -DriveLetter "E" 50 | Format-volume -DriveLetter "E" -FileSystem NTFS 51 | 52 | # Install Windows Server Backup 53 | Install-WindowsFeature -Name Windows-Server-Backup -Restart:$false 54 | 55 | Register-ScheduledJob -Name "System State Backup" -Trigger @{Frequency = "$Frequency"; At = "$Schedule"} -ScriptBlock { 56 | $WBPolicy = New-WBPolicy 57 | # Back up the System State 58 | Add-WBSystemState -Policy $WBPolicy 59 | 60 | # Declare the backup location on the chosen Disk 61 | $target = New-WBBackupTarget -VolumePath "E:" 62 | 63 | Add-WBBackupTarget -Policy $WBPolicy -Target $target 64 | Set-WBPerformanceConfiguration -OverallPerformanceSetting AlwaysIncremental 65 | 66 | # Start the backup 67 | Start-WBBackup -Policy $WBPolicy 68 | } 69 | -------------------------------------------------------------------------------- /Backup and PSO/Conf-ShadowCopy.ps1: -------------------------------------------------------------------------------- 1 | <# 2 | .SYNOPSIS 3 | Creates and configures the Volum Shadow Copy on the Server. 4 | PowerSploit Function: Conf-ShadowsCopy 5 | Author: Terencio Agozzino (@rememberYou) 6 | Alexandre Ducobu (@Harchytekt) 7 | License: None 8 | Required Dependencies: None 9 | Optional Dependencies: None 10 | Version: 1.0.0 11 | 12 | .DESCRIPTION 13 | Conf-ShadowsCopy Creates and configures the Volum Shadow Copy on the Server. 14 | 15 | .EXAMPLE 16 | PS C:\> Conf-ShadowsCopy -Disk C -MaxSize 8128MB -Time 6:00AM -TaskName ShadowCopy_C_6AM 17 | 18 | .NOTES 19 | You can verify how many shadow copies exists: 20 | `$shadow = get-wmiobject win32_shadowcopy 21 | "There are {0} shadow copies on this system." -f $shadow.count` 22 | 23 | You also can verify if the scheduled tasks are well: 24 | `Get-ScheduledTask ShadowCopy_C_6AM | Get-ScheduledTaskInfo` 25 | 26 | You can list all the available shadow copies: 27 | `vssadmin list shadows` 28 | #> 29 | 30 | Param( 31 | [ValidateNotNullOrEmpty()] 32 | [String] 33 | $Disk, 34 | 35 | [ValidateNotNullOrEmpty()] 36 | [String] 37 | $MaxSize, 38 | 39 | [ValidateNotNullOrEmpty()] 40 | [String] 41 | $Time, 42 | 43 | [ValidateNotNullOrEmpty()] 44 | [String] 45 | $TaskName 46 | ) 47 | 48 | # Enables Volume Shadow Copy 49 | vssadmin add shadowstorage /for="$Disk": /on="$Disk": /maxsize="$MaxSize" 50 | 51 | # Creates a new Shadow Copy 52 | vssadmin create shadow /for="$Disk": 53 | 54 | "Creating a new shadow copy" 55 | # Sets Shadow Copy Scheduled Task daily at 6AM 56 | $Action=new-scheduledtaskaction -execute "c:\windows\system32\vssadmin.exe" -Argument "create shadow /for=${Disk}:" 57 | $Trigger=new-scheduledtasktrigger -daily -at "$Time" 58 | Register-ScheduledTask -TaskName "$TaskName" -Trigger $Trigger -Action $Action -Description "$TaskName" 59 | -------------------------------------------------------------------------------- /Certificats/Authority-Signed/Create-AuthorityCert.ps1: -------------------------------------------------------------------------------- 1 | <# 2 | .SYNOPSIS 3 | Creates authority-signed certificates to signing scripts. 4 | PowerSploit Function: Create-Cert 5 | Author: Terencio Agozzino (@rememberYou) 6 | Alexandre Ducobu (@Harchytekt) 7 | License: None 8 | Required Dependencies: None 9 | Optional Dependencies: None 10 | Version: 1.0.0 11 | 12 | .DESCRIPTION 13 | Create-AuthorityCert creates authority-signed certificates to signing scripts. 14 | 15 | .EXAMPLE 16 | PS C:\> Create-AuthorityCert -Path "DC=heh,DC=lan" 17 | 18 | .NOTES 19 | Activate HTTPS for Certificates: https://social.technet.microsoft.com/wiki/contents/articles/12039.active-directory-certificate-services-ad-cs-error-in-order-to-complete-certificate-enrollment-the-web-site-for-the-ca-must-be-configured-to-use-https-authentication.aspx 20 | Note: You might need to restart your client for the certificate to be synchronised. 21 | 22 | Navigate to https://./certsvr to request a certificate 23 | Example: https://srvdnsprimary.heh.lan/certsrv/ 24 | #> 25 | 26 | Param( 27 | [ValidateNotNullOrEmpty()] 28 | [String] 29 | $Path 30 | ) 31 | 32 | Import-Module ServerManager 33 | Add-WindowsFeature Adcs-Cert-Authority -IncludeManagementTools 34 | Install-AdcsCertificationAuthority -CAType EnterpriseRootCa ` 35 | -CryptoProviderName "RSA#Microsoft Software Key Storage Provider" ` 36 | -KeyLength 2048 -HashAlgorithmName SHA512 ` 37 | -CACommonName "HEH-CA" -CADistinguishedNameSuffix $Path ` 38 | -ValidityPeriod Years -ValidityPeriodUnits 3 -Force 39 | 40 | Add-WindowsFeature Adcs-Web-Enrollment 41 | Install-AdcsWebEnrollment -Force 42 | Install-WindowsFeature Web-Mgmt-Console 43 | -------------------------------------------------------------------------------- /Certificats/Self-Signed/Create-SelfCert.ps1: -------------------------------------------------------------------------------- 1 | <# 2 | .SYNOPSIS 3 | Creates certificates to signing scripts. 4 | PowerSploit Function: Create-Cert 5 | Author: Terencio Agozzino (@rememberYou) 6 | Alexandre Ducobu (@Harchytekt) 7 | License: None 8 | Required Dependencies: None 9 | Optional Dependencies: None 10 | Version: 1.0.0 11 | 12 | .DESCRIPTION 13 | Create-SelfCert creates certificates to signing scripts. 14 | 15 | .EXAMPLE 16 | PS C:\> Create-Cert 17 | 18 | .NOTES 19 | To use create certificats, you need to install `makecert` from 20 | Windows SDK (or Visual Studio). 21 | 22 | For that, use the following command to download the last Windows SDK 10 23 | from a Windows client and send it to the server: 24 | 25 | (Invoke-WebRequest -Uri ` 26 | "https://go.microsoft.com/fwlink/p/?linkid=845298").Links.Href 27 | 28 | Or you can still download it from the Microsoft website. 29 | 30 | Link: https://developer.microsoft.com/en-US/windows/downloads/windows-10-sdk 31 | 32 | If you want to create a SSL Certificate, you should use 33 | `New-SelfSignedCertificate` as `makecert` is depreciate for this. 34 | 35 | List all your certificates like this: 36 | `dir Cert:\CurrentUser\My -CodeSigningCert` 37 | 38 | After created your certificates, you can easily sign your script like 39 | the following: 40 | $cert =(dir Cert:\CurrentUser\My -CodeSigningCert)[0] 41 | Set-AuthenticodeSignature .\foo.ps1 -Certificate $cert 42 | 43 | To check if the script is well signed: 44 | `Get-AuthenticodeSignature .\foo.ps1 | ft -AutoSize` 45 | #> 46 | 47 | Add-WindowsFeature AD-Certificate 48 | 49 | # Create a self-signed certificate. 50 | $OldDestination = Get-Location 51 | Set-Location "C:\Program Files (x86)\Windows Kits\10\bin\10.0.15063.0\x86" 52 | .\makecert.exe -n "CN=Powershell Local Certificate Root" -a sha1 ` 53 | -eku 1.3.6.1.5.5.7.3.3 -r -sv root.pvk root.cer -ss Root -sr localMachine 54 | .\makecert.exe -pe -n "CN=Server PowerShell CSC" -ss MY -a sha1 ` 55 | -eku 1.3.6.1.5.5.7.3.3 -iv root.pvk -ic root.cer 56 | Set-Location $OldDestination 57 | 58 | Set-Location "C:\Program Files (x86)\Windows Kits\10\bin\10.0.15063.0\x86" 59 | Write-Host 'New Certificate added in the "Cert:\CurrentUser\My"' 60 | -------------------------------------------------------------------------------- /Certificats/Self-Signed/Display-OU-RH.ps1: -------------------------------------------------------------------------------- 1 | <# 2 | .SYNOPSIS 3 | Useless script to test the self-signed certificate by displaying users from RH 4 | PowerSploit Function: Display-OU-RH 5 | Author: Terencio Agozzino (@rememberYou) 6 | Alexandre Ducobu (@Harchytekt) 7 | License: None 8 | Required Dependencies: None 9 | Optional Dependencies: None 10 | Version: 1.0.0 11 | 12 | .DESCRIPTION 13 | Display-OU-RH is an useless script to test the self-signed certificate by 14 | displaying users from RH. 15 | 16 | .EXAMPLE 17 | PS C:\> Display-OU-Rh 18 | 19 | .NOTES 20 | Don't forget to first create your certificate with `Create-Cert` 21 | and sign your script like shown below: 22 | 23 | $cert =(dir Cert:\CurrentUser\My -CodeSigningCert)[0] 24 | Set-AuthenticodeSignature .\foo.ps1 -Certificate $cert 25 | 26 | To check if the script is well signed: 27 | `Get-AuthenticodeSignature .\foo.ps1 | ft -AutoSize` 28 | #> 29 | 30 | Get-ADUser -Filter * -SearchBase "OU=Ressources Humaines,DC=heh,DC=lan" | Select samaccountname 31 | -------------------------------------------------------------------------------- /DHCP/Conf-DHCP-Client.ps1: -------------------------------------------------------------------------------- 1 | <# 2 | .SYNOPSIS 3 | Configures the IPv6 on the client. 4 | PowerSploit Function: Conf-DHCP-Client 5 | Author: Terencio Agozzino (@rememberYou) 6 | Alexandre Ducobu (@Harchytekt) 7 | License: None 8 | Required Dependencies: None 9 | Optional Dependencies: None 10 | Version: 1.0.0 11 | 12 | .DESCRIPTION 13 | Conf-DHCP-Client Configures the IPv6 on the client. 14 | 15 | .EXAMPLE 16 | PS C:\> Conf-DHCP-Client -InterfaceID 11 -Prefix 2001:db8:cafe:10::1 17 | 18 | .NOTES 19 | You can displays a list of connected and disconnected network adapters with: 20 | `Netsh interface ipv6 show interfaces` 21 | #> 22 | 23 | Param( 24 | [ValidateNotNullOrEmpty()] 25 | [String] 26 | $InterfaceID, 27 | 28 | [ValidateNotNullOrEmpty()] 29 | [String] 30 | $Prefix 31 | ) 32 | 33 | # Sets the chosen interface to Disable Stateless mode 34 | Netsh interface ipv6 set interface $InterfaceID advertise=enable managed=enable 35 | 36 | # Manually sets the Route on the system 37 | Netsh interface ipv6 add route $Prefix/64 $InterfaceID publish=yes 38 | -------------------------------------------------------------------------------- /DHCP/Conf-DHCP.ps1: -------------------------------------------------------------------------------- 1 | <# 2 | .SYNOPSIS 3 | Installs the DHCP service and sets a basic DHCP configuration. 4 | PowerSploit Function: Conf-DHCP 5 | Author: Terencio Agozzino (@rememberYou) 6 | Alexandre Ducobu (@Harchytekt) 7 | License: None 8 | Required Dependencies: None 9 | Optional Dependencies: None 10 | Version: 1.0.0 11 | 12 | .DESCRIPTION 13 | Conf-DHCP Installs the DHCP service and sets a basic DHCP configuration. 14 | 15 | .EXAMPLE 16 | PS C:\> Conf-DHCP -StartRangeV4 192.168.1.2 -EndRangeV4 192.168.2.254 ` 17 | -ScopeIDV4 192.168.1.0 -SubnetMaskV4 255.255.0.0 ` 18 | -DnsServer 192.168.42.1 -ComputerName 'SRVDNSPrimary' ` 19 | -DnsDomain 'heh.lan' -LifeTime 2.00:00:00 20 | 21 | .EXAMPLE 22 | PS C:\> Conf-DHCP -PrefixV6 2001:db8:cafe:10::1 -ComputerName 'SRVDNSPrimary' ` 23 | -DnsDomain 'heh.lan' -LifeTime 2.00:00:00 24 | 25 | .EXAMPLE 26 | PS C:\> Conf-DHCP -StartRangeV4 192.168.1.2 -EndRangeV4 192.168.2.254 ` 27 | -ScopeIDV4 192.168.1.0 -SubnetMaskV4 255.255.0.0 ` 28 | -DnsServer 192.168.42.1 -ComputerName 'SRVDNSPrimary' ` 29 | -DnsDomain 'heh.lan' -PrefixV6 2001:db8:cafe:10::1 ` 30 | -LifeTime 2.00:00:00 31 | 32 | .NOTES 33 | You can verify the DHCP installation with: 34 | `Get-WindowsFeature` 35 | 36 | You can verify the DHCP configuration with: 37 | `Get-DhcpServerv4Scope -cn srvdnsprimary | select scopeid, name, description` 38 | 39 | There are 242 employees, we choose this scope: 192.168.1.0 -> 192.168.2.255 40 | to prevent more than 25% of the current employees. 41 | 42 | The scope gateway is 192.168.1.1 43 | #> 44 | 45 | Param( 46 | [String] 47 | $StartRangeV4, 48 | 49 | [String] 50 | $EndRangeV4, 51 | 52 | [String] 53 | $ScopeIDV4, 54 | 55 | [String] 56 | $SubnetMaskV4, 57 | 58 | [ValidateNotNullOrEmpty()] 59 | [String] 60 | $DnsServer, 61 | 62 | [ValidateNotNullOrEmpty()] 63 | [String] 64 | $ComputerName, 65 | 66 | [ValidateNotNullOrEmpty()] 67 | [String] 68 | $DnsDomain, 69 | 70 | [String] 71 | $PrefixV6, 72 | 73 | [ValidateNotNullOrEmpty()] 74 | [String] 75 | $LifeTime 76 | ) 77 | 78 | Add-WindowsFeature -Name DHCP -IncludeManagementTools 79 | 80 | # This registry's value has to be updated to tell that the configuration has been completed. 81 | Set-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\ServerManager\Roles\12 -Name ConfigurationState -Value 2 82 | Restart-Service DHCPServer 83 | 84 | # IPv4 85 | If (-Not ([string]::IsNullOrEmpty($StartRangeV4))) { 86 | # Lease format is day.hrs:mins:secs 87 | Add-DhcpServerv4Scope -Name 'employees scope (IPv4)' -StartRange $StartRangeV4 -EndRange $EndRangeV4 -SubnetMask $SubnetMaskV4 -LeaseDuration $LifeTime -Description 'Created for the employees' -ComputerName $ComputerName -State Active 88 | # OptionID 3 stand for Gateway Address 89 | Set-DhcpServerv4OptionValue -OptionID 3 -Value $StartRangeV4 -ScopeID $ScopeIDV4 -ComputerName $ComputerName 90 | Set-DhcpServerv4OptionValue -DnsDomain 'heh.lan' -DnsServer $DnsServer 91 | } 92 | 93 | # IPv6 94 | If (-Not ([string]::IsNullOrEmpty($PrefixV6))) { 95 | # LifeTime format is day.hrs:mins:secs 96 | Add-DhcpServerv6Scope -Name 'employees scope (IPv6)' -Prefix $PrefixV6 -PreferredLifeTime $LifeTime -ValidLifeTime $LifeTime -Description 'Created for the employees' -ComputerName $ComputerName -State Active 97 | Add-DhcpServerv6ExclusionRange -Prefix $PrefixV6 -StartRange 2001:db8:cafe:10::1 -EndRange 2001:db8:cafe:10::FFFF 98 | Add-DhcpServerv6ExclusionRange -Prefix $PrefixV6 -StartRange 2001:db8:cafe:10::1:200 -EndRange 2001:db8:cafe:10:FFFF:FFFF:FFFF:FFFF 99 | # OptionID 23 stand for DNS 100 | Set-DhcpServerv6OptionValue -OptionId 23 -Value $PrefixV6 -ComputerName $ComputerName 101 | } 102 | -------------------------------------------------------------------------------- /DNS/Conf-DNSPrimary.ps1: -------------------------------------------------------------------------------- 1 | <# 2 | .SYNOPSIS 3 | Installs the DNS service and sets a basic DNS primary configuration. 4 | PowerSploit Function: Conf-DNS 5 | Author: Terencio Agozzino (@rememberYou) 6 | Alexandre Ducobu (@Harchytekt) 7 | License: None 8 | Required Dependencies: None 9 | Optional Dependencies: None 10 | Version: 1.0.0 11 | 12 | .DESCRIPTION 13 | Conf-DNSPrimary Installs the DNS service and sets a basic DNS primary configuration. 14 | 15 | .EXAMPLE 16 | PS C:\> Conf-DNSPrimary -ZoneName heh.lan -NetworkIDv4 192.168.0.0 ` 17 | -PrefixV4 16 -RevZoneNameV4 168.192.in-addr.arpa ` 18 | -SRVPri SRVDNSPrimary -SRVSec SRVDNSSecondary 19 | 20 | .EXAMPLE 21 | PS C:\> Conf-DNSPrimary -ZoneName heh.lan -NetworkIDv4 192.168.0.0 ` 22 | -PrefixV4 16 -RevZoneNameV4 168.192.in-addr.arpa ` 23 | -NetworkIDv6 2001:db8:cafe:10:: -PrefixV6 64 ` 24 | -RevZoneNameV6 0.1.0.0.e.f.a.c.8.b.d.0.1.0.0.2.ip6.arpa ` 25 | -SRVPri SRVDNSPrimary -SRVSec SRVDNSSecondary 26 | 27 | .NOTES 28 | You can verify the DNS installation with: 29 | `Get-WindowsFeature` 30 | 31 | You can verify the DNS zones with: 32 | `Get-DnsServerZone` 33 | 34 | For the example above, you can verify the DNS server resource records with: 35 | `Get-DnsServerResourceRecord -ZoneName heh.lan` 36 | `Get-DnsServerResourceRecord -ZoneName 168.192.in-addr.arpa` 37 | `Get-DnsServerResourceRecord -ZoneName 0.1.0.0.e.f.a.c.8.b.d.0.1.0.0.2.ip6.arpa` 38 | 39 | To check if the DNS is working well you can do: 40 | `nslookup 192.168.42.1` 41 | 42 | To check if the alias work you can do: 43 | `nslookup www.heh.lan` 44 | `nslookup srv1.heh.lan` 45 | `nslookup srv2.heh.lan` 46 | #> 47 | 48 | Param( 49 | [ValidateNotNullOrEmpty()] 50 | [String] 51 | $ZoneName, 52 | 53 | [ValidateNotNullOrEmpty()] 54 | [String] 55 | $NetworkIDv4, 56 | 57 | [ValidateNotNullOrEmpty()] 58 | [String] 59 | $PrefixV4, 60 | 61 | [ValidateNotNullOrEmpty()] 62 | [String] 63 | $RevZoneNameV4, 64 | 65 | [String] 66 | $NetworkIDv6, 67 | 68 | [String] 69 | $PrefixV6, 70 | 71 | [String] 72 | $RevZoneNameV6, 73 | 74 | [ValidateNotNullOrEmpty()] 75 | [String] 76 | $SRVPri, 77 | 78 | [ValidateNotNullOrEmpty()] 79 | [String] 80 | $SRVSec 81 | ) 82 | 83 | Import-Module ServerManager 84 | Add-WindowsFeature -Name DNS -IncludeManagementTools 85 | 86 | # Create Forward Lookup Zones 87 | Add-DnsServerPrimaryZone -Name "$ZoneName" -ZoneFile "$ZoneName.dns" 88 | 89 | # Create Reverse Lookup Zones 90 | Add-DnsServerPrimaryZone -NetworkId "$NetworkIDv4/$PrefixV4" -ZoneFile "$RevZoneNameV4.dns" 91 | If (-Not ([string]::IsNullOrEmpty($NetworkIDv6))) { 92 | Add-DnsServerPrimaryZone -NetworkId "$NetworkIDv6/$PrefixV6" -ZoneFile "$RevZoneNameV6.dns" 93 | } 94 | 95 | # Remove the default Name Server 96 | Remove-DnsServerResourceRecord -ZoneName "$ZoneName" -RRType "Ns" -Name "@" -RecordData "srvdnsprimary" -Force 97 | 98 | # Create Records 99 | Add-DnsServerResourceRecordA -Name "$SRVPri" -ZoneName "$ZoneName" -AllowUpdateAny -IPv4Address "192.168.42.1" -CreatePtr 100 | If (-Not ([string]::IsNullOrEmpty($NetworkIDv6))) { 101 | Add-DnsServerResourceRecordAAAA -Name "$SRVPri" -ZoneName "$ZoneName" -AllowUpdateAny -IPv6Address "2001:db8:cafe:10::1" -CreatePtr 102 | } 103 | 104 | Add-DnsServerResourceRecordA -Name "$SRVSec" -ZoneName "$ZoneName" -AllowUpdateAny -IPv4Address "192.168.42.2" -CreatePtr 105 | If (-Not ([string]::IsNullOrEmpty($NetworkIDv6))) { 106 | Add-DnsServerResourceRecordAAAA -Name "$SRVSec" -ZoneName "$ZoneName" -AllowUpdateAny -IPv6Address "2001:db8:cafe:10::2" -CreatePtr 107 | } 108 | 109 | # Create Alias 110 | Add-DnsServerResourceRecordCName -Name "www" -HostNameAlias "$SRVPri.$ZoneName" -ZoneName "$ZoneName" 111 | Add-DnsServerResourceRecordCName -Name "SRV1" -HostNameAlias "$SRVPri.$ZoneName" -ZoneName "$ZoneName" 112 | Add-DnsServerResourceRecordCName -Name "SRV2" -HostNameAlias "$SRVSec.$ZoneName" -ZoneName "$ZoneName" 113 | 114 | # Create Name Servers 115 | Add-DnsServerResourceRecord -ZoneName "$ZoneName" -Name "." -NameServer "$SRVPri.$ZoneName" -NS 116 | Add-DnsServerResourceRecord -ZoneName "$ZoneName" -Name "." -NameServer "$SRVSec.$ZoneName" -NS 117 | 118 | # Remove the default Name Server 119 | Remove-DnsServerResourceRecord -ZoneName "$RevZoneNameV4" -RRType "Ns" -Name "@" -RecordData "srvdnsprimary" -Force 120 | 121 | Add-DnsServerResourceRecord -ZoneName "$RevZoneNameV4" -Name "." -NameServer "$SRVPri.$ZoneName" -NS 122 | Add-DnsServerResourceRecord -ZoneName "$RevZoneNameV4" -Name "." -NameServer "$SRVSec.$ZoneName" -NS 123 | 124 | If (-Not ([string]::IsNullOrEmpty($NetworkIDv6))) { 125 | # Remove the default Name Server 126 | Remove-DnsServerResourceRecord -ZoneName "$RevZoneNameV6" -RRType "Ns" -Name "@" -RecordData "srvdnsprimary" -Force 127 | 128 | Add-DnsServerResourceRecord -ZoneName "$RevZoneNameV6" -Name "." -NameServer "$SRVPri.$ZoneName" -NS 129 | Add-DnsServerResourceRecord -ZoneName "$RevZoneNameV6" -Name "." -NameServer "$SRVSec.$ZoneName" -NS 130 | } 131 | 132 | # Create a Incremental Transfert Zone where the secondary DNS server gets 133 | # new and changed resource records. 134 | Start-DnsServerZoneTransfer -Name "$ZoneName" 135 | 136 | # Create Delegation Zone 137 | Add-DnsServerZoneDelegation -Name "heh.lan" -ChildZoneName "delegation" ` 138 | -NameServer "SRVDNSSecondary.delegation.heh.lan" -IPAddress "192.168.42.2" 139 | -------------------------------------------------------------------------------- /DNS/Conf-DNSSecondary.ps1: -------------------------------------------------------------------------------- 1 | <# 2 | .SYNOPSIS 3 | Installs the DNS service and sets a basic DNS secondary configuration. 4 | PowerSploit Function: Conf-DNS 5 | Author: Terencio Agozzino (@rememberYou) 6 | Alexandre Ducobu (@Harchytekt) 7 | License: None 8 | Required Dependencies: None 9 | Optional Dependencies: None 10 | Version: 1.0.0 11 | 12 | .DESCRIPTION 13 | Conf-DNSSeocndary Installs the DNS service and sets a basic DNS secondary configuration. 14 | 15 | .EXAMPLE 16 | PS C:\> Conf-DNSSecondary -ZoneName heh.lan -NetworkIDv4 192.168.0.0 ` 17 | -PrefixV4 16 -RevZoneNameV4 168.192.in-addr.arpa ` 18 | -MasterServersV4 192.168.42.1 19 | 20 | .EXAMPLE 21 | PS C:\> Conf-DNSSecondary -ZoneName heh.lan -NetworkIDv4 192.168.0.0 ` 22 | -PrefixV4 16 -RevZoneNameV4 168.192.in-addr.arpa ` 23 | -MasterServersV4 192.168.42.1 -NetworkIDv6 acad:: ` 24 | -PrefixV6 64 ` 25 | -RevZoneNameV6 0.1.0.0.e.f.a.c.8.b.d.0.1.0.0.2.ip6.arpa ` 26 | -MasterServersV6 2001:db8:cafe:10::1 27 | 28 | .NOTES 29 | You can verify the DNS installation with: 30 | `Get-WindowsFeature` 31 | 32 | You can verify the DNS zones with: 33 | `Get-DnsServerZone` 34 | 35 | For the example above, you can verify the DNS server resource records with: 36 | `Get-DnsServerResourceRecord -ZoneName heh.lan` 37 | `Get-DnsServerResourceRecord -ZoneName 168.192.in-addr.arpa` 38 | `Get-DnsServerResourceRecord -ZoneName 0.1.0.0.e.f.a.c.8.b.d.0.1.0.0.2.ip6.arpa ` 39 | 40 | To check if the DNS is working well you can do: 41 | `nslookup` 42 | `ls -d` 43 | 44 | To check if the alias work you can do: 45 | `nslookup www.heh.lan` 46 | `nslookup srv1.heh.lan` 47 | `nslookup srv2.heh.lan` 48 | #> 49 | 50 | Param( 51 | [ValidateNotNullOrEmpty()] 52 | [String] 53 | $ZoneName, 54 | 55 | [ValidateNotNullOrEmpty()] 56 | [String] 57 | $NetworkIDv4, 58 | 59 | [ValidateNotNullOrEmpty()] 60 | [String] 61 | $PrefixV4, 62 | 63 | [ValidateNotNullOrEmpty()] 64 | [String] 65 | $RevZoneNameV4, 66 | 67 | [ValidateNotNullOrEmpty()] 68 | [String] 69 | $MasterServersV4, 70 | 71 | [String] 72 | $NetworkIDv6, 73 | 74 | [String] 75 | $PrefixV6, 76 | 77 | [String] 78 | $RevZoneNameV6, 79 | 80 | [String] 81 | $MasterServersV6 82 | ) 83 | 84 | Import-Module ServerManager 85 | Add-WindowsFeature -Name DNS -IncludeManagementTools 86 | 87 | # Create Forward Lookup Zones 88 | Add-DnsServerSecondaryZone -Name "$ZoneName" -ZoneFile "$ZoneName.dns" -MasterServers "$MasterServersV4" 89 | Add-DnsServerPrimaryZone -Name "delegation.$ZoneName" -ZoneFile "delegation.$ZoneName.dns" 90 | 91 | # Create Reverse Lookup Zones 92 | Add-DnsServerSecondaryZone -NetworkId "$NetworkIDv4/$PrefixV4" -ZoneFile "$RevZoneNameV4.dns" -MasterServers "$MasterServersV4" 93 | If (-Not ([string]::IsNullOrEmpty($NetworkIDv6))) { 94 | Add-DnsServerSecondaryZone -networkId "$NetworkIDv6/$PrefixV6" -ZoneFile "$RevZoneNameV6.dns" -MasterServers "$MasterServersV6" 95 | } 96 | 97 | # Create Records 98 | Add-DnsServerResourceRecordA -Name "SRVDNSPrimary" -ZoneName "delegation.$ZoneName" -AllowUpdateAny -IPv4Address "192.168.42.1" 99 | If (-Not ([string]::IsNullOrEmpty($NetworkIDv6))) { 100 | Add-DnsServerResourceRecordAAAA -Name "SRVDNSPrimary" -ZoneName "delegation.$ZoneName" -AllowUpdateAny -IPv6Address "2001:db8:cafe:10::1" 101 | } 102 | 103 | # Create Name Servers 104 | Add-DnsServerResourceRecord -ZoneName "delegation.$ZoneName" -Name "." -NameServer "SRVDNSPrimary.$ZoneName" -NS 105 | Add-DnsServerResourceRecord -ZoneName "delegation.$ZoneName" -Name "." -NameServer "SRVDNSSecondary.$ZoneName" -NS 106 | -------------------------------------------------------------------------------- /Firewall/Conf-Firewall.ps1: -------------------------------------------------------------------------------- 1 | <# 2 | .SYNOPSIS 3 | Sets a basic firewall configuration. 4 | PowerSploit Function: Conf-Firewall 5 | Author: Terencio Agozzino (@rememberYou) 6 | Alexandre Ducobu (@Harchytekt) 7 | License: None 8 | Required Dependencies: None 9 | Optional Dependencies: None 10 | Version: 1.0.0 11 | 12 | .DESCRIPTION 13 | Conf-Firewall sets a basic firewall configuration. 14 | 15 | .EXAMPLE 16 | PS C:\> Conf-Firewall 17 | 18 | .NOTES 19 | You can verify if the rule is enabled with: 20 | Get-NetFirewallRule -DisplayGroup "File And Printer Sharing" 21 | #> 22 | 23 | # Enables ICMPv4 and IMCPv6 to ping to the system. 24 | Set-NetFirewallRule -DisplayGroup "File And Printer Sharing" -Enabled True 25 | -------------------------------------------------------------------------------- /IP/Conf-IPv4.ps1: -------------------------------------------------------------------------------- 1 | <# 2 | .SYNOPSIS 3 | Sets a basic IPv4 configuration with the possibility to change the hostname 4 | of the machine. 5 | PowerSploit Function: Conf-IPv4 6 | Author: Terencio Agozzino (@rememberYou) 7 | Alexandre Ducobu (@Harchytekt) 8 | License: None 9 | Required Dependencies: None 10 | Optional Dependencies: None 11 | Version: 1.0.0 12 | 13 | .DESCRIPTION 14 | Conf-IPv4 sets a basic IPv4 configuration with the possibility to change the 15 | hostname of the machine. 16 | 17 | .EXAMPLE 18 | PS C:\> Conf-IPv4 -Name SRVDNSPrimary -InterfaceIndex 5 -IP 192.168.42.1 ` 19 | -Length 16 -Gateway 192.168.0.1 -DnsPri 192.168.42.1 ` 20 | -DnsSec 192.168.42.2 21 | 22 | .NOTES 23 | Check your InterfaceIndex with: 24 | `Get-NetIPInterface` 25 | 26 | You can verify your IP addresses configurations with: 27 | `Netsh interface ipv4 show addresses` 28 | 29 | You can verify your DNS server addresses configurations with: 30 | `Netsh interface ipv4 show dnsservers` 31 | #> 32 | 33 | Param( 34 | [String] 35 | $Name, 36 | 37 | [ValidateNotNullOrEmpty()] 38 | [String] 39 | $InterfaceIndex, 40 | 41 | [ValidateNotNullOrEmpty()] 42 | [String] 43 | $IP, 44 | 45 | [ValidateNotNullOrEmpty()] 46 | [String] 47 | $Length, 48 | 49 | [ValidateNotNullOrEmpty()] 50 | [String] 51 | $Gateway, 52 | 53 | [ValidateNotNullOrEmpty()] 54 | [String] 55 | $DnsPri, 56 | 57 | [ValidateNotNullOrEmpty()] 58 | [String] 59 | $DnsSec 60 | ) 61 | 62 | New-NetIPAddress -InterfaceIndex $InterfaceIndex -IPAddress $IP -PrefixLength $Length -DefaultGateway $Gateway 63 | Set-DnsClientServerAddress -InterfaceIndex $InterfaceIndex -ServerAddresses($DnsPri, $DnsSec) 64 | 65 | If(-Not [string]::IsNullOrEmpty($Name)) { 66 | Rename-computer $Name 67 | } 68 | -------------------------------------------------------------------------------- /IP/Conf-IPv6.ps1: -------------------------------------------------------------------------------- 1 | <# 2 | .SYNOPSIS 3 | Sets a basic IPv6 configuration with the possibility to change the hostname 4 | of the machine. 5 | PowerSploit Function: Conf-IPv6 6 | Author: Terencio Agozzino (@rememberYou) 7 | Alexandre Ducobu (@Harchytekt) 8 | License: None 9 | Required Dependencies: None 10 | Optional Dependencies: None 11 | Version: 1.0.0 12 | 13 | .DESCRIPTION 14 | Conf-IPv6 sets a basic IPv6 configuration with the possibility to change the 15 | hostname of the machine. 16 | 17 | .EXAMPLE 18 | PS C:\> Conf-IPv6 -Name SRVDNSPrimary -InterfaceIndex 5 -IP 2001:db8:cafe:10::1 ` 19 | -Length 64 -Gateway 2001:db8:cafe:10::254 -DnsPri 2001:db8:cafe:10::1 ` 20 | -DnsSec 2001:db8:cafe:10::2 21 | 22 | .EXAMPLE 23 | PS C:\> Conf-IPv6 -InterfaceIndex 5 -IP 2001:db8:cafe:10::1 -Length 64 ` 24 | -Gateway 2001:db8:cafe:10::254 -DnsPri 2001:db8:cafe:10::1 -DnsSec 2001:db8:cafe:10::2 25 | 26 | .NOTES 27 | Check your InterfaceIndex with: 28 | `Get-NetIPInterface -AddressFamily IPv6 | fl InterfaceAlias, InterfaceIndex, IPv6Address` 29 | 30 | You can verify your IP addresses configurations with: 31 | `Netsh interface ipv6 show addresses` 32 | 33 | You can verify your DNS server addresses configurations with: 34 | `Netsh interface ipv6 show dnsservers` 35 | 36 | You can verify make a IPv6 ping with `Ping -6 37 | 38 | You can verify your tunnels configuration with: 39 | `Get-Net6to4Configuration 40 | 41 | You can verify your IPv6 route configuration with: 42 | `Get-NetRoute -AdressFamily IPv6 -InterfaceIndex 43 | #> 44 | 45 | Param( 46 | [String] 47 | $Name, 48 | 49 | [ValidateNotNullOrEmpty()] 50 | [String] 51 | $InterfaceIndex, 52 | 53 | [ValidateNotNullOrEmpty()] 54 | [String] 55 | $IP, 56 | 57 | [ValidateNotNullOrEmpty()] 58 | [String] 59 | $Length, 60 | 61 | [ValidateNotNullOrEmpty()] 62 | [String] 63 | $Gateway, 64 | 65 | [ValidateNotNullOrEmpty()] 66 | [String] 67 | $DnsPri, 68 | 69 | [ValidateNotNullOrEmpty()] 70 | [String] 71 | $DnsSec 72 | ) 73 | 74 | New-NetIPAddress -AddressFamily IPv6 -IPAddress $IP ` 75 | -InterfaceIndex $InterfaceIndex -PrefixLength $Length ` 76 | -DefaultGateway $Gateway 77 | 78 | Set-DnsClientServerAddress -InterfaceIndex $InterfaceIndex ` 79 | -ServerAddresses($DNSPri, $DnsSec) 80 | 81 | # Disable tunnels. 82 | Set-Net6to4Configuration -State Disable 83 | Netsh interface isatap set state state=disabled 84 | 85 | If(-Not [string]::IsNullOrEmpty($Name)) 86 | { 87 | Rename-computer $Name 88 | } 89 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | GNU GENERAL PUBLIC LICENSE 2 | Version 3, 29 June 2007 3 | 4 | Copyright (C) 2007 Free Software Foundation, Inc. 5 | Everyone is permitted to copy and distribute verbatim copies 6 | of this license document, but changing it is not allowed. 7 | 8 | Preamble 9 | 10 | The GNU General Public License is a free, copyleft license for 11 | software and other kinds of works. 12 | 13 | The licenses for most software and other practical works are designed 14 | to take away your freedom to share and change the works. By contrast, 15 | the GNU General Public License is intended to guarantee your freedom to 16 | share and change all versions of a program--to make sure it remains free 17 | software for all its users. We, the Free Software Foundation, use the 18 | GNU General Public License for most of our software; it applies also to 19 | any other work released this way by its authors. You can apply it to 20 | your programs, too. 21 | 22 | When we speak of free software, we are referring to freedom, not 23 | price. Our General Public Licenses are designed to make sure that you 24 | have the freedom to distribute copies of free software (and charge for 25 | them if you wish), that you receive source code or can get it if you 26 | want it, that you can change the software or use pieces of it in new 27 | free programs, and that you know you can do these things. 28 | 29 | To protect your rights, we need to prevent others from denying you 30 | these rights or asking you to surrender the rights. Therefore, you have 31 | certain responsibilities if you distribute copies of the software, or if 32 | you modify it: responsibilities to respect the freedom of others. 33 | 34 | For example, if you distribute copies of such a program, whether 35 | gratis or for a fee, you must pass on to the recipients the same 36 | freedoms that you received. You must make sure that they, too, receive 37 | or can get the source code. And you must show them these terms so they 38 | know their rights. 39 | 40 | Developers that use the GNU GPL protect your rights with two steps: 41 | (1) assert copyright on the software, and (2) offer you this License 42 | giving you legal permission to copy, distribute and/or modify it. 43 | 44 | For the developers' and authors' protection, the GPL clearly explains 45 | that there is no warranty for this free software. For both users' and 46 | authors' sake, the GPL requires that modified versions be marked as 47 | changed, so that their problems will not be attributed erroneously to 48 | authors of previous versions. 49 | 50 | Some devices are designed to deny users access to install or run 51 | modified versions of the software inside them, although the manufacturer 52 | can do so. This is fundamentally incompatible with the aim of 53 | protecting users' freedom to change the software. The systematic 54 | pattern of such abuse occurs in the area of products for individuals to 55 | use, which is precisely where it is most unacceptable. Therefore, we 56 | have designed this version of the GPL to prohibit the practice for those 57 | products. If such problems arise substantially in other domains, we 58 | stand ready to extend this provision to those domains in future versions 59 | of the GPL, as needed to protect the freedom of users. 60 | 61 | Finally, every program is threatened constantly by software patents. 62 | States should not allow patents to restrict development and use of 63 | software on general-purpose computers, but in those that do, we wish to 64 | avoid the special danger that patents applied to a free program could 65 | make it effectively proprietary. To prevent this, the GPL assures that 66 | patents cannot be used to render the program non-free. 67 | 68 | The precise terms and conditions for copying, distribution and 69 | modification follow. 70 | 71 | TERMS AND CONDITIONS 72 | 73 | 0. Definitions. 74 | 75 | "This License" refers to version 3 of the GNU General Public License. 76 | 77 | "Copyright" also means copyright-like laws that apply to other kinds of 78 | works, such as semiconductor masks. 79 | 80 | "The Program" refers to any copyrightable work licensed under this 81 | License. Each licensee is addressed as "you". "Licensees" and 82 | "recipients" may be individuals or organizations. 83 | 84 | To "modify" a work means to copy from or adapt all or part of the work 85 | in a fashion requiring copyright permission, other than the making of an 86 | exact copy. The resulting work is called a "modified version" of the 87 | earlier work or a work "based on" the earlier work. 88 | 89 | A "covered work" means either the unmodified Program or a work based 90 | on the Program. 91 | 92 | To "propagate" a work means to do anything with it that, without 93 | permission, would make you directly or secondarily liable for 94 | infringement under applicable copyright law, except executing it on a 95 | computer or modifying a private copy. Propagation includes copying, 96 | distribution (with or without modification), making available to the 97 | public, and in some countries other activities as well. 98 | 99 | To "convey" a work means any kind of propagation that enables other 100 | parties to make or receive copies. Mere interaction with a user through 101 | a computer network, with no transfer of a copy, is not conveying. 102 | 103 | An interactive user interface displays "Appropriate Legal Notices" 104 | to the extent that it includes a convenient and prominently visible 105 | feature that (1) displays an appropriate copyright notice, and (2) 106 | tells the user that there is no warranty for the work (except to the 107 | extent that warranties are provided), that licensees may convey the 108 | work under this License, and how to view a copy of this License. If 109 | the interface presents a list of user commands or options, such as a 110 | menu, a prominent item in the list meets this criterion. 111 | 112 | 1. Source Code. 113 | 114 | The "source code" for a work means the preferred form of the work 115 | for making modifications to it. "Object code" means any non-source 116 | form of a work. 117 | 118 | A "Standard Interface" means an interface that either is an official 119 | standard defined by a recognized standards body, or, in the case of 120 | interfaces specified for a particular programming language, one that 121 | is widely used among developers working in that language. 122 | 123 | The "System Libraries" of an executable work include anything, other 124 | than the work as a whole, that (a) is included in the normal form of 125 | packaging a Major Component, but which is not part of that Major 126 | Component, and (b) serves only to enable use of the work with that 127 | Major Component, or to implement a Standard Interface for which an 128 | implementation is available to the public in source code form. A 129 | "Major Component", in this context, means a major essential component 130 | (kernel, window system, and so on) of the specific operating system 131 | (if any) on which the executable work runs, or a compiler used to 132 | produce the work, or an object code interpreter used to run it. 133 | 134 | The "Corresponding Source" for a work in object code form means all 135 | the source code needed to generate, install, and (for an executable 136 | work) run the object code and to modify the work, including scripts to 137 | control those activities. However, it does not include the work's 138 | System Libraries, or general-purpose tools or generally available free 139 | programs which are used unmodified in performing those activities but 140 | which are not part of the work. For example, Corresponding Source 141 | includes interface definition files associated with source files for 142 | the work, and the source code for shared libraries and dynamically 143 | linked subprograms that the work is specifically designed to require, 144 | such as by intimate data communication or control flow between those 145 | subprograms and other parts of the work. 146 | 147 | The Corresponding Source need not include anything that users 148 | can regenerate automatically from other parts of the Corresponding 149 | Source. 150 | 151 | The Corresponding Source for a work in source code form is that 152 | same work. 153 | 154 | 2. Basic Permissions. 155 | 156 | All rights granted under this License are granted for the term of 157 | copyright on the Program, and are irrevocable provided the stated 158 | conditions are met. This License explicitly affirms your unlimited 159 | permission to run the unmodified Program. The output from running a 160 | covered work is covered by this License only if the output, given its 161 | content, constitutes a covered work. This License acknowledges your 162 | rights of fair use or other equivalent, as provided by copyright law. 163 | 164 | You may make, run and propagate covered works that you do not 165 | convey, without conditions so long as your license otherwise remains 166 | in force. You may convey covered works to others for the sole purpose 167 | of having them make modifications exclusively for you, or provide you 168 | with facilities for running those works, provided that you comply with 169 | the terms of this License in conveying all material for which you do 170 | not control copyright. Those thus making or running the covered works 171 | for you must do so exclusively on your behalf, under your direction 172 | and control, on terms that prohibit them from making any copies of 173 | your copyrighted material outside their relationship with you. 174 | 175 | Conveying under any other circumstances is permitted solely under 176 | the conditions stated below. Sublicensing is not allowed; section 10 177 | makes it unnecessary. 178 | 179 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law. 180 | 181 | No covered work shall be deemed part of an effective technological 182 | measure under any applicable law fulfilling obligations under article 183 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or 184 | similar laws prohibiting or restricting circumvention of such 185 | measures. 186 | 187 | When you convey a covered work, you waive any legal power to forbid 188 | circumvention of technological measures to the extent such circumvention 189 | is effected by exercising rights under this License with respect to 190 | the covered work, and you disclaim any intention to limit operation or 191 | modification of the work as a means of enforcing, against the work's 192 | users, your or third parties' legal rights to forbid circumvention of 193 | technological measures. 194 | 195 | 4. Conveying Verbatim Copies. 196 | 197 | You may convey verbatim copies of the Program's source code as you 198 | receive it, in any medium, provided that you conspicuously and 199 | appropriately publish on each copy an appropriate copyright notice; 200 | keep intact all notices stating that this License and any 201 | non-permissive terms added in accord with section 7 apply to the code; 202 | keep intact all notices of the absence of any warranty; and give all 203 | recipients a copy of this License along with the Program. 204 | 205 | You may charge any price or no price for each copy that you convey, 206 | and you may offer support or warranty protection for a fee. 207 | 208 | 5. Conveying Modified Source Versions. 209 | 210 | You may convey a work based on the Program, or the modifications to 211 | produce it from the Program, in the form of source code under the 212 | terms of section 4, provided that you also meet all of these conditions: 213 | 214 | a) The work must carry prominent notices stating that you modified 215 | it, and giving a relevant date. 216 | 217 | b) The work must carry prominent notices stating that it is 218 | released under this License and any conditions added under section 219 | 7. This requirement modifies the requirement in section 4 to 220 | "keep intact all notices". 221 | 222 | c) You must license the entire work, as a whole, under this 223 | License to anyone who comes into possession of a copy. This 224 | License will therefore apply, along with any applicable section 7 225 | additional terms, to the whole of the work, and all its parts, 226 | regardless of how they are packaged. This License gives no 227 | permission to license the work in any other way, but it does not 228 | invalidate such permission if you have separately received it. 229 | 230 | d) If the work has interactive user interfaces, each must display 231 | Appropriate Legal Notices; however, if the Program has interactive 232 | interfaces that do not display Appropriate Legal Notices, your 233 | work need not make them do so. 234 | 235 | A compilation of a covered work with other separate and independent 236 | works, which are not by their nature extensions of the covered work, 237 | and which are not combined with it such as to form a larger program, 238 | in or on a volume of a storage or distribution medium, is called an 239 | "aggregate" if the compilation and its resulting copyright are not 240 | used to limit the access or legal rights of the compilation's users 241 | beyond what the individual works permit. Inclusion of a covered work 242 | in an aggregate does not cause this License to apply to the other 243 | parts of the aggregate. 244 | 245 | 6. Conveying Non-Source Forms. 246 | 247 | You may convey a covered work in object code form under the terms 248 | of sections 4 and 5, provided that you also convey the 249 | machine-readable Corresponding Source under the terms of this License, 250 | in one of these ways: 251 | 252 | a) Convey the object code in, or embodied in, a physical product 253 | (including a physical distribution medium), accompanied by the 254 | Corresponding Source fixed on a durable physical medium 255 | customarily used for software interchange. 256 | 257 | b) Convey the object code in, or embodied in, a physical product 258 | (including a physical distribution medium), accompanied by a 259 | written offer, valid for at least three years and valid for as 260 | long as you offer spare parts or customer support for that product 261 | model, to give anyone who possesses the object code either (1) a 262 | copy of the Corresponding Source for all the software in the 263 | product that is covered by this License, on a durable physical 264 | medium customarily used for software interchange, for a price no 265 | more than your reasonable cost of physically performing this 266 | conveying of source, or (2) access to copy the 267 | Corresponding Source from a network server at no charge. 268 | 269 | c) Convey individual copies of the object code with a copy of the 270 | written offer to provide the Corresponding Source. This 271 | alternative is allowed only occasionally and noncommercially, and 272 | only if you received the object code with such an offer, in accord 273 | with subsection 6b. 274 | 275 | d) Convey the object code by offering access from a designated 276 | place (gratis or for a charge), and offer equivalent access to the 277 | Corresponding Source in the same way through the same place at no 278 | further charge. You need not require recipients to copy the 279 | Corresponding Source along with the object code. If the place to 280 | copy the object code is a network server, the Corresponding Source 281 | may be on a different server (operated by you or a third party) 282 | that supports equivalent copying facilities, provided you maintain 283 | clear directions next to the object code saying where to find the 284 | Corresponding Source. Regardless of what server hosts the 285 | Corresponding Source, you remain obligated to ensure that it is 286 | available for as long as needed to satisfy these requirements. 287 | 288 | e) Convey the object code using peer-to-peer transmission, provided 289 | you inform other peers where the object code and Corresponding 290 | Source of the work are being offered to the general public at no 291 | charge under subsection 6d. 292 | 293 | A separable portion of the object code, whose source code is excluded 294 | from the Corresponding Source as a System Library, need not be 295 | included in conveying the object code work. 296 | 297 | A "User Product" is either (1) a "consumer product", which means any 298 | tangible personal property which is normally used for personal, family, 299 | or household purposes, or (2) anything designed or sold for incorporation 300 | into a dwelling. In determining whether a product is a consumer product, 301 | doubtful cases shall be resolved in favor of coverage. For a particular 302 | product received by a particular user, "normally used" refers to a 303 | typical or common use of that class of product, regardless of the status 304 | of the particular user or of the way in which the particular user 305 | actually uses, or expects or is expected to use, the product. A product 306 | is a consumer product regardless of whether the product has substantial 307 | commercial, industrial or non-consumer uses, unless such uses represent 308 | the only significant mode of use of the product. 309 | 310 | "Installation Information" for a User Product means any methods, 311 | procedures, authorization keys, or other information required to install 312 | and execute modified versions of a covered work in that User Product from 313 | a modified version of its Corresponding Source. The information must 314 | suffice to ensure that the continued functioning of the modified object 315 | code is in no case prevented or interfered with solely because 316 | modification has been made. 317 | 318 | If you convey an object code work under this section in, or with, or 319 | specifically for use in, a User Product, and the conveying occurs as 320 | part of a transaction in which the right of possession and use of the 321 | User Product is transferred to the recipient in perpetuity or for a 322 | fixed term (regardless of how the transaction is characterized), the 323 | Corresponding Source conveyed under this section must be accompanied 324 | by the Installation Information. But this requirement does not apply 325 | if neither you nor any third party retains the ability to install 326 | modified object code on the User Product (for example, the work has 327 | been installed in ROM). 328 | 329 | The requirement to provide Installation Information does not include a 330 | requirement to continue to provide support service, warranty, or updates 331 | for a work that has been modified or installed by the recipient, or for 332 | the User Product in which it has been modified or installed. Access to a 333 | network may be denied when the modification itself materially and 334 | adversely affects the operation of the network or violates the rules and 335 | protocols for communication across the network. 336 | 337 | Corresponding Source conveyed, and Installation Information provided, 338 | in accord with this section must be in a format that is publicly 339 | documented (and with an implementation available to the public in 340 | source code form), and must require no special password or key for 341 | unpacking, reading or copying. 342 | 343 | 7. Additional Terms. 344 | 345 | "Additional permissions" are terms that supplement the terms of this 346 | License by making exceptions from one or more of its conditions. 347 | Additional permissions that are applicable to the entire Program shall 348 | be treated as though they were included in this License, to the extent 349 | that they are valid under applicable law. If additional permissions 350 | apply only to part of the Program, that part may be used separately 351 | under those permissions, but the entire Program remains governed by 352 | this License without regard to the additional permissions. 353 | 354 | When you convey a copy of a covered work, you may at your option 355 | remove any additional permissions from that copy, or from any part of 356 | it. (Additional permissions may be written to require their own 357 | removal in certain cases when you modify the work.) You may place 358 | additional permissions on material, added by you to a covered work, 359 | for which you have or can give appropriate copyright permission. 360 | 361 | Notwithstanding any other provision of this License, for material you 362 | add to a covered work, you may (if authorized by the copyright holders of 363 | that material) supplement the terms of this License with terms: 364 | 365 | a) Disclaiming warranty or limiting liability differently from the 366 | terms of sections 15 and 16 of this License; or 367 | 368 | b) Requiring preservation of specified reasonable legal notices or 369 | author attributions in that material or in the Appropriate Legal 370 | Notices displayed by works containing it; or 371 | 372 | c) Prohibiting misrepresentation of the origin of that material, or 373 | requiring that modified versions of such material be marked in 374 | reasonable ways as different from the original version; or 375 | 376 | d) Limiting the use for publicity purposes of names of licensors or 377 | authors of the material; or 378 | 379 | e) Declining to grant rights under trademark law for use of some 380 | trade names, trademarks, or service marks; or 381 | 382 | f) Requiring indemnification of licensors and authors of that 383 | material by anyone who conveys the material (or modified versions of 384 | it) with contractual assumptions of liability to the recipient, for 385 | any liability that these contractual assumptions directly impose on 386 | those licensors and authors. 387 | 388 | All other non-permissive additional terms are considered "further 389 | restrictions" within the meaning of section 10. If the Program as you 390 | received it, or any part of it, contains a notice stating that it is 391 | governed by this License along with a term that is a further 392 | restriction, you may remove that term. If a license document contains 393 | a further restriction but permits relicensing or conveying under this 394 | License, you may add to a covered work material governed by the terms 395 | of that license document, provided that the further restriction does 396 | not survive such relicensing or conveying. 397 | 398 | If you add terms to a covered work in accord with this section, you 399 | must place, in the relevant source files, a statement of the 400 | additional terms that apply to those files, or a notice indicating 401 | where to find the applicable terms. 402 | 403 | Additional terms, permissive or non-permissive, may be stated in the 404 | form of a separately written license, or stated as exceptions; 405 | the above requirements apply either way. 406 | 407 | 8. Termination. 408 | 409 | You may not propagate or modify a covered work except as expressly 410 | provided under this License. Any attempt otherwise to propagate or 411 | modify it is void, and will automatically terminate your rights under 412 | this License (including any patent licenses granted under the third 413 | paragraph of section 11). 414 | 415 | However, if you cease all violation of this License, then your 416 | license from a particular copyright holder is reinstated (a) 417 | provisionally, unless and until the copyright holder explicitly and 418 | finally terminates your license, and (b) permanently, if the copyright 419 | holder fails to notify you of the violation by some reasonable means 420 | prior to 60 days after the cessation. 421 | 422 | Moreover, your license from a particular copyright holder is 423 | reinstated permanently if the copyright holder notifies you of the 424 | violation by some reasonable means, this is the first time you have 425 | received notice of violation of this License (for any work) from that 426 | copyright holder, and you cure the violation prior to 30 days after 427 | your receipt of the notice. 428 | 429 | Termination of your rights under this section does not terminate the 430 | licenses of parties who have received copies or rights from you under 431 | this License. If your rights have been terminated and not permanently 432 | reinstated, you do not qualify to receive new licenses for the same 433 | material under section 10. 434 | 435 | 9. Acceptance Not Required for Having Copies. 436 | 437 | You are not required to accept this License in order to receive or 438 | run a copy of the Program. Ancillary propagation of a covered work 439 | occurring solely as a consequence of using peer-to-peer transmission 440 | to receive a copy likewise does not require acceptance. However, 441 | nothing other than this License grants you permission to propagate or 442 | modify any covered work. These actions infringe copyright if you do 443 | not accept this License. Therefore, by modifying or propagating a 444 | covered work, you indicate your acceptance of this License to do so. 445 | 446 | 10. Automatic Licensing of Downstream Recipients. 447 | 448 | Each time you convey a covered work, the recipient automatically 449 | receives a license from the original licensors, to run, modify and 450 | propagate that work, subject to this License. You are not responsible 451 | for enforcing compliance by third parties with this License. 452 | 453 | An "entity transaction" is a transaction transferring control of an 454 | organization, or substantially all assets of one, or subdividing an 455 | organization, or merging organizations. If propagation of a covered 456 | work results from an entity transaction, each party to that 457 | transaction who receives a copy of the work also receives whatever 458 | licenses to the work the party's predecessor in interest had or could 459 | give under the previous paragraph, plus a right to possession of the 460 | Corresponding Source of the work from the predecessor in interest, if 461 | the predecessor has it or can get it with reasonable efforts. 462 | 463 | You may not impose any further restrictions on the exercise of the 464 | rights granted or affirmed under this License. For example, you may 465 | not impose a license fee, royalty, or other charge for exercise of 466 | rights granted under this License, and you may not initiate litigation 467 | (including a cross-claim or counterclaim in a lawsuit) alleging that 468 | any patent claim is infringed by making, using, selling, offering for 469 | sale, or importing the Program or any portion of it. 470 | 471 | 11. Patents. 472 | 473 | A "contributor" is a copyright holder who authorizes use under this 474 | License of the Program or a work on which the Program is based. The 475 | work thus licensed is called the contributor's "contributor version". 476 | 477 | A contributor's "essential patent claims" are all patent claims 478 | owned or controlled by the contributor, whether already acquired or 479 | hereafter acquired, that would be infringed by some manner, permitted 480 | by this License, of making, using, or selling its contributor version, 481 | but do not include claims that would be infringed only as a 482 | consequence of further modification of the contributor version. For 483 | purposes of this definition, "control" includes the right to grant 484 | patent sublicenses in a manner consistent with the requirements of 485 | this License. 486 | 487 | Each contributor grants you a non-exclusive, worldwide, royalty-free 488 | patent license under the contributor's essential patent claims, to 489 | make, use, sell, offer for sale, import and otherwise run, modify and 490 | propagate the contents of its contributor version. 491 | 492 | In the following three paragraphs, a "patent license" is any express 493 | agreement or commitment, however denominated, not to enforce a patent 494 | (such as an express permission to practice a patent or covenant not to 495 | sue for patent infringement). To "grant" such a patent license to a 496 | party means to make such an agreement or commitment not to enforce a 497 | patent against the party. 498 | 499 | If you convey a covered work, knowingly relying on a patent license, 500 | and the Corresponding Source of the work is not available for anyone 501 | to copy, free of charge and under the terms of this License, through a 502 | publicly available network server or other readily accessible means, 503 | then you must either (1) cause the Corresponding Source to be so 504 | available, or (2) arrange to deprive yourself of the benefit of the 505 | patent license for this particular work, or (3) arrange, in a manner 506 | consistent with the requirements of this License, to extend the patent 507 | license to downstream recipients. "Knowingly relying" means you have 508 | actual knowledge that, but for the patent license, your conveying the 509 | covered work in a country, or your recipient's use of the covered work 510 | in a country, would infringe one or more identifiable patents in that 511 | country that you have reason to believe are valid. 512 | 513 | If, pursuant to or in connection with a single transaction or 514 | arrangement, you convey, or propagate by procuring conveyance of, a 515 | covered work, and grant a patent license to some of the parties 516 | receiving the covered work authorizing them to use, propagate, modify 517 | or convey a specific copy of the covered work, then the patent license 518 | you grant is automatically extended to all recipients of the covered 519 | work and works based on it. 520 | 521 | A patent license is "discriminatory" if it does not include within 522 | the scope of its coverage, prohibits the exercise of, or is 523 | conditioned on the non-exercise of one or more of the rights that are 524 | specifically granted under this License. You may not convey a covered 525 | work if you are a party to an arrangement with a third party that is 526 | in the business of distributing software, under which you make payment 527 | to the third party based on the extent of your activity of conveying 528 | the work, and under which the third party grants, to any of the 529 | parties who would receive the covered work from you, a discriminatory 530 | patent license (a) in connection with copies of the covered work 531 | conveyed by you (or copies made from those copies), or (b) primarily 532 | for and in connection with specific products or compilations that 533 | contain the covered work, unless you entered into that arrangement, 534 | or that patent license was granted, prior to 28 March 2007. 535 | 536 | Nothing in this License shall be construed as excluding or limiting 537 | any implied license or other defenses to infringement that may 538 | otherwise be available to you under applicable patent law. 539 | 540 | 12. No Surrender of Others' Freedom. 541 | 542 | If conditions are imposed on you (whether by court order, agreement or 543 | otherwise) that contradict the conditions of this License, they do not 544 | excuse you from the conditions of this License. If you cannot convey a 545 | covered work so as to satisfy simultaneously your obligations under this 546 | License and any other pertinent obligations, then as a consequence you may 547 | not convey it at all. For example, if you agree to terms that obligate you 548 | to collect a royalty for further conveying from those to whom you convey 549 | the Program, the only way you could satisfy both those terms and this 550 | License would be to refrain entirely from conveying the Program. 551 | 552 | 13. Use with the GNU Affero General Public License. 553 | 554 | Notwithstanding any other provision of this License, you have 555 | permission to link or combine any covered work with a work licensed 556 | under version 3 of the GNU Affero General Public License into a single 557 | combined work, and to convey the resulting work. The terms of this 558 | License will continue to apply to the part which is the covered work, 559 | but the special requirements of the GNU Affero General Public License, 560 | section 13, concerning interaction through a network will apply to the 561 | combination as such. 562 | 563 | 14. Revised Versions of this License. 564 | 565 | The Free Software Foundation may publish revised and/or new versions of 566 | the GNU General Public License from time to time. Such new versions will 567 | be similar in spirit to the present version, but may differ in detail to 568 | address new problems or concerns. 569 | 570 | Each version is given a distinguishing version number. If the 571 | Program specifies that a certain numbered version of the GNU General 572 | Public License "or any later version" applies to it, you have the 573 | option of following the terms and conditions either of that numbered 574 | version or of any later version published by the Free Software 575 | Foundation. If the Program does not specify a version number of the 576 | GNU General Public License, you may choose any version ever published 577 | by the Free Software Foundation. 578 | 579 | If the Program specifies that a proxy can decide which future 580 | versions of the GNU General Public License can be used, that proxy's 581 | public statement of acceptance of a version permanently authorizes you 582 | to choose that version for the Program. 583 | 584 | Later license versions may give you additional or different 585 | permissions. However, no additional obligations are imposed on any 586 | author or copyright holder as a result of your choosing to follow a 587 | later version. 588 | 589 | 15. Disclaimer of Warranty. 590 | 591 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY 592 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT 593 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY 594 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, 595 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 596 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM 597 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF 598 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 599 | 600 | 16. Limitation of Liability. 601 | 602 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 603 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS 604 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY 605 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE 606 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF 607 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD 608 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), 609 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF 610 | SUCH DAMAGES. 611 | 612 | 17. Interpretation of Sections 15 and 16. 613 | 614 | If the disclaimer of warranty and limitation of liability provided 615 | above cannot be given local legal effect according to their terms, 616 | reviewing courts shall apply local law that most closely approximates 617 | an absolute waiver of all civil liability in connection with the 618 | Program, unless a warranty or assumption of liability accompanies a 619 | copy of the Program in return for a fee. 620 | 621 | END OF TERMS AND CONDITIONS 622 | 623 | How to Apply These Terms to Your New Programs 624 | 625 | If you develop a new program, and you want it to be of the greatest 626 | possible use to the public, the best way to achieve this is to make it 627 | free software which everyone can redistribute and change under these terms. 628 | 629 | To do so, attach the following notices to the program. It is safest 630 | to attach them to the start of each source file to most effectively 631 | state the exclusion of warranty; and each file should have at least 632 | the "copyright" line and a pointer to where the full notice is found. 633 | 634 | {one line to give the program's name and a brief idea of what it does.} 635 | Copyright (C) {year} {name of author} 636 | 637 | This program is free software: you can redistribute it and/or modify 638 | it under the terms of the GNU General Public License as published by 639 | the Free Software Foundation, either version 3 of the License, or 640 | (at your option) any later version. 641 | 642 | This program is distributed in the hope that it will be useful, 643 | but WITHOUT ANY WARRANTY; without even the implied warranty of 644 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 645 | GNU General Public License for more details. 646 | 647 | You should have received a copy of the GNU General Public License 648 | along with this program. If not, see . 649 | 650 | Also add information on how to contact you by electronic and paper mail. 651 | 652 | If the program does terminal interaction, make it output a short 653 | notice like this when it starts in an interactive mode: 654 | 655 | {project} Copyright (C) {year} {fullname} 656 | This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 657 | This is free software, and you are welcome to redistribute it 658 | under certain conditions; type `show c' for details. 659 | 660 | The hypothetical commands `show w' and `show c' should show the appropriate 661 | parts of the General Public License. Of course, your program's commands 662 | might be different; for a GUI interface, you would use an "about box". 663 | 664 | You should also get your employer (if you work as a programmer) or school, 665 | if any, to sign a "copyright disclaimer" for the program, if necessary. 666 | For more information on this, and how to apply and follow the GNU GPL, see 667 | . 668 | 669 | The GNU General Public License does not permit incorporating your program 670 | into proprietary programs. If your program is a subroutine library, you 671 | may consider it more useful to permit linking proprietary applications with 672 | the library. If this is what you want to do, use the GNU Lesser General 673 | Public License instead of this License. But first, please read 674 | . 675 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | ![Powershell logo](Assets/Powershell_black_64.png "Powershell logo") PowerShell Scripts 2 | =============================== 3 | 4 | Useful PowerShell scripts to configure a basic Windows Server 2016. The purpose 5 | of this repository is to have a little working configuration that can be used to 6 | set up your own server. 7 | 8 | Feel free to use the code for your own purposes and contribute to this repository if 9 | you notice any mistakes. 10 | 11 | -------------------- 12 | 13 | ### Supported roles and features [9/11] ### 14 | 15 | - [x] AD (with ADRecycleBin) 16 | - [x] Backups 17 | - [x] Basic Firewall 18 | - [x] Basic IPv4 and IPv6 19 | - [ ] Certificates 20 | - [ ] Authority-Signed 21 | - [x] Self-Signed 22 | - [x] DHCPv4 and DHCPv6 23 | - [x] DNSv4 and DNSv6 24 | - [ ] GPO 25 | - [x] Shadow Copies 26 | - [x] Share 27 | - [x] File screen 28 | - [x] Permissions 29 | - [x] Quotas 30 | - [x] Scheme 31 | - [x] Time Zone 32 | 33 | -------------------- 34 | 35 | ### Usage ### 36 | 37 | After installing a Windows server, execute scripts according to the desired 38 | services to install. 39 | 40 | Before use any script, specify the new execution policy to avoid errors related 41 | to script signatures. 42 | 43 | PS> Set-ExecutionPolicy Bypass 44 | 45 | Be careful that the scripts are made for Windows Server 2016 and may not work 46 | for earlier version. 47 | 48 | Also, always check the examples in the scripts to know the syntax to use for the 49 | configuration. 50 | 51 | Example for installing DHCP Server Role with Windows PowerShell: 52 | 53 | PS> git clone git@github.com:rememberYou/powershell-scripts.git 54 | PS> cd powershell-scripts/DHCP/ 55 | PS> .\Conf-DHCP.ps1 -StartRangeV4 192.168.1.2 -EndRangeV4 192.168.2.254 ` 56 | -ScopeIDV4 192.168.1.0 -SubnetMaskV4 255.255.0.0 ` 57 | -DnsServer 192.168.42.1 -ComputerName 'SRVDNSPrimary' ` 58 | -DnsDomain 'heh.lan' -PrefixV6 2001:db8:cafe:10::1 ` 59 | -LifeTime 2.00:00:00 60 | 61 | After setting up the scripts, turn back the execution policy to `AllSigned` if 62 | you have set up the possibility for users to sign their scripts (or 63 | `Restricted`). 64 | 65 | PS> Set-ExecutionPolicy AllSigned 66 | 67 | -------------------- 68 | 69 | ### License ### 70 | 71 | Code is under the [GNU General Public License v3.0](https://www.gnu.org/licenses/gpl.html) 72 | -------------------------------------------------------------------------------- /Time/Set-TimeZone.ps1: -------------------------------------------------------------------------------- 1 | <# 2 | .SYNOPSIS 3 | Sets the time of the server according to a time zone. 4 | PowerSploit Function: Conf-DNS 5 | Author: Terencio Agozzino (@rememberYou) 6 | Alexandre Ducobu (@Harchytekt) 7 | License: None 8 | Required Dependencies: None 9 | Optional Dependencies: None 10 | Version: 1.0.0 11 | 12 | .DESCRIPTION 13 | Set-TimeZone sets the time of the server according to a time zone. 14 | 15 | .EXAMPLE 16 | PS C:\> Set-TimeZone -TimeZone "Romance Standard Time" 17 | 18 | .NOTES 19 | You can list the available time zone with: 20 | `TZUTIL /l` 21 | #> 22 | 23 | Param( 24 | [ValidateNotNullOrEmpty()] 25 | [String] 26 | $TimeZone 27 | ) 28 | 29 | TZUTIL /s $TimeZone 30 | --------------------------------------------------------------------------------