Set groups polices on windows - active directory from PHP

315 Views Asked by At

How I can set groups polices on Windows Server - Active Directory, using or from PHP.

I want push to Active Directory any groups polices, for example: max characters password permit, set ip authorizes to longing, so on...

Thanks in advances.

1

There are 1 best solutions below

0
On BEST ANSWER

If adLDAP and PHP's native LDAP functions don't support this, you can write a PowerShell script and execute it from PHP using the exec() function.

See PowerShell Group Policy reference to get started. Searching the net will give you some ready to use examples of how to assign policies to a group using PowerShell.

Good luck!