I recently wanted to communicate via WinRM to Windows machines using PHP, as it allows for all sorts of automation tasks remotely over HTTP(S). And technically it has no dependency on Windows itself in order to make a working client. Just straight up HTTP communication and SOAP. How hard could it be...

Continue reading...

After struggling to get a consistent PHP install experience on AppVeyor via Chocolatey in my last post, I decided to solve the issue through a separate Powershell script. I now have it boiled down to a single script that installs the PHP version I request, including:

  • Arch type: x86, x64
  • Thread-S...

Continue reading...

In Active Directory there are some very confusing value formats. The title of "Most Confusing" should probably be awarded to the NtSecurityDescriptor attribute. It exists on LDAP objects in Active Directory and describes permissions against the object in Security Descriptor (binary) form. It contain...

Continue reading...

A while back I was looking for a simple way of decoding an objectSid value from Active Directory into the readable string name you typically see it in. There are some examples of doing this out there, but many are incomplete or don't account for edge-cases for all the different type of SIDs. By usin...

Continue reading...