TECH / ARCHIVE

Windows

TECH / Windows 2 min

How to List All Active (Enabled) Active Directory Users (PowerShell & dsquery)

Once an Active Directory domain has accumulated hundreds of accounts, former employees, and service users, sooner or later you need a clean export of only active (enabled) domain users – for an audit, license review, or printable directory. Here are the modern PowerShell one-liner, the classic dsquery LDAP command (fixing a common bitmask trap caught by readers!), and a quick reference table of userAccountControl codes.

Exporting all active enabled Active Directory domain users

Cleanest and most accurate method (PowerShell): run on a domain controller (or any admin PC with RSAT ActiveDirectory installed):

Get-ADUser -Filter 'Enabled -eq $true' | Select-Object Name, SamAccountName | Sort-Object Name

Read full article →

TECH / Windows 3 min

How to Check Windows 7 and Server 2008 Activation from the Command Line

Question: how do I check whether Windows 7 or Windows Server 2008 is activated?

In short: open the command prompt and run slmgr /xpr – Windows will show whether the system is activated permanently or until a certain date. Detailed license information is shown by slmgr /dli. These commands do not require administrator rights.

How to check Windows 7 and Server 2008 activation: slmgr /xpr and /dli

I used to recommend only slmgr -dli: it works too, but /xpr shows the activation period most clearly. Below are the three commands, what each of them shows, and how to check activation without the command prompt.

Read full article →