Category: Microsoft

0

Create a list of your Group Policy Objects using PowerShell

 

0

List all domain users and their last logon time and UserAccountControl flags

The following PowerShell one-liner lists all users by lastlogon (human readable date) and their UserAccountControl flags.

Most common UserAccountControl flags are: 512 NORMAL_ACCOUNT 514 NORMAL_ACCOUNT, ACCOUNTDISABLE 66048 NORMAL_ACCOUNT, DONT_EXPIRE_PASSWORD 66050 ACCOUNTDISABLE, NORMAL_ACCOUNT, DONT_EXPIRE_PASSWORD...

0

How to find the MSI product code for a SCCM package detection method?

Using MSI detection in a SCCM package requires a MSI product code. The following PowerShell one-liner lists all MSI product codes for applications/packages installed on the machine.