Bastien Perez

Freelance Microsoft 365 - Active Directory - Modern Workplace

Impact use Set-ADDefaultDomainPasswordPolicy Members

CMDlet poses a problem if several GPOs with password settings The CMDlet Set-ADDefaultDomainPasswordPolicy achieves two things: * modification of the associated Active Directory attribute * file modification \\<sysvolPath>\{31B2F340-016D-11D2-945F-00C04FB984F9}\MACHINE\Microsoft\Windows NT\SecEdi\GptTmpl.inf However, if the command modifies an attribute that is

Bastien Perez
Bastien Perez
Active Directory

Add an object temporarily to an AD group Members

When using Active Directory, it may be necessary to temporarily add a user to a group. This is made possible by the Privileged Access Management feature. This article presents the different ways of adding a user to a group for a period of one hour. Although the article focuses on

Bastien Perez
Bastien Perez
Active Directory

Enable PAM (Privileged Access Management) in Active Directory Members

This feature requires DCs and a forest functional level 2016. Once this feature has been activated, it cannot be deactivated. To activate : Enable-ADOptionalFeature "Privileged Access Management Feature" -Scope ForestOrConfigurationSet -Target tondomaine.com Activation causes the following changes in AD: * The attribute msDS-EnabledFeature of each NTDS Sttings

Bastien Perez
Bastien Perez
Active Directory

Creating dynamic AD objects Members

Create AD dynamic user # L'objet sera supprimé dans une heure (3600 secondes) $TTLSeconds = 3600 $objectType = 'user' $objectName= 'DynamicUser01' # Choisir l'OU $destinationOu="OU=Users,OU=Dynamic,DC=ad,DC=itprotips,DC=com" $destinationOuObject = [ADSI]("LDAP://$destinationOu") $dynamicObject = $destinationOuObject.Create(

Bastien Perez
Bastien Perez
Active Directory

Get AD groups with temporary members Members

Problem with -ShowMemberTimeToLive parameters To get temporary group members, you can use the built-in CMDlet: Get-ADGroup "YourGroup" -Property member –ShowMemberTimeToLive However, this CMDlet presents an issue: if your group exceeds 1500 members, the command becomes ineffective, as it only returns the TTL attribute for the initial

Bastien Perez
Bastien Perez
Active Directory

Detect the creation of AD dynamic objects Members

When a dynamic object expires, it is completely deleted and does not go through the AD recycle bin. It is also not visible in replication metadata. Monitoring creation events is important to ensure that these objects are not used for malicious activities. First of all, you need to configure auditing

Bastien Perez
Bastien Perez
Active Directory

Property set Personal Information and Active Directory security and governance Members

Active Directory (AD) is an essential tool for organizations to manage user access and authorization to various resources. When it comes to Active Directory, there are many features that are well-known and well-documented. Do you know that by default any user can modify some specific Active Directory attributes

Bastien Perez
Bastien Perez
Active Directory

Find attributes in a Property Set Members

I will show you three methods to get Property Set and the associated attributes. With PowerShell (recommended method) Custom script You can find my PowerShell script for managing Property Sets on my GitHub. ActiveDirectory-Toolbox/Attributes/PropertySet at master · itpro-tips/ActiveDirectory-ToolboxContribute to itpro-tips/ActiveDirectory-Toolbox development by

Bastien Perez
Bastien Perez
Active Directory

Impact utilisation Set-ADDefaultDomainPasswordPolicy Members

CMDlet pose problème si plusieurs GPO avec des paramètres de mot de passe La CMDlet Set-ADDefaultDomainPasswordPolicy réalise deux choses : * modification dans l'Active Directory de l'attribut associé * modification du fichier \\<sysvolPath>\{31B2F340-016D-11D2-945F-00C04FB984F9}\MACHINE\Microsoft\Windows NT\SecEdi\GptTmpl.inf Cependant,

Bastien Perez
Bastien Perez
Active Directory

Récupérer les groupes AD avec des membres temporaires Members

Problem with -ShowMemberTimeToLive parameters Pour obtenir les membres temporaires d'un groupe, vous pouvez utiliser la CMDlet : Get-ADGroup "MonGroupe" -Property member –ShowMemberTimeToLive Cependant, cette CMDlet présente un problème : si ton groupe dépasse les1500 membres, la commande devient inefficace, car elle ne renvoie l'attribut TTL

Bastien Perez
Bastien Perez
Active Directory

Ajouter un objet temporairement à un groupe AD Members

Lorsque tu utilises l'Active Directory, il peut être nécessaire d'ajouter temporairement un utilisateur à un groupe. Cette possibilité est rendue possible grâce à la fonctionnalité Privileged Access Management. Cet article présente les différentes façons d'ajouter un utilisateur pour une durée d'une heure

Bastien Perez
Bastien Perez
Active Directory

Activer PAM (Privileged Access Management) dans Active Directory Members

Cette fonctionnalité nécessite des DC et un niveau fonctionnel de forêt 2016. Une fois cette fonctionnalité activée, elle ne peut plus être désactivée. Pour l'activer : Enable-ADOptionalFeature "Privileged Access Management Feature" -Scope ForestOrConfigurationSet -Target tondomaine.com L'activation provoque les changements suivants dans l'

Bastien Perez
Bastien Perez
Active Directory