I know that this is dangerous. But I am trying to create a lab that demonstrates some misconfiguration of Active Directory.
I would like to create a Group Policy Preference that sets the password of a user. And where the password would end up being stored in Groups.xml.
I have found this video that show how this used to be done with a graphical interface. But the password fields are blocked on Windows Server 2022.
Is it possible to do this in powershell ?
Also, is it still possible on Windows Server 2022, or is it only available on older Windows Server editions ?
