This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| h1.ce-header { | |
| font-size: 2.5em !important; | |
| } | |
| h2.ce-header { | |
| font-size: 1.875em !important; | |
| } | |
| h3.ce-header { | |
| font-size: 1.5em !important; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| months_num = { 1: 'Janvier', | |
| 2: 'Février', | |
| 3: 'Mars', | |
| 4: 'Avril', | |
| 5: 'Mai', | |
| 6: 'Juin', | |
| 7: 'Juillet', | |
| 8: 'Août', | |
| 9: 'Septembre', | |
| 10: 'Octobre', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # author : Alexy DA CRUZ | |
| # command : create_accounts.ps1 "C:\...\truc.csv" | |
| Import-Module ActiveDirectory | |
| $ADUsers = Import-CSV "$args" -Delimiter ";" | |
| foreach ($User in $ADUsers) { | |
| $Username = $User.username | |
| $Password = $User.password |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # author : Alexy DA CRUZ | |
| # command : ./create_group_foreach_organizational_unit.ps1 | |
| $ADOUs = Get-ADOrganizationalUnit -LDAPFilter '(name=*)' -SearchBase 'OU=Classe,OU=Accounts,DC=interne,DC=geomtech,DC=fr' -SearchScope OneLevel | |
| foreach ($OU in $ADOUs) | |
| { | |
| $OUName = $OU.name | |
| $OUDN = $OU.DistinguishedName |