When a domain user logs on to Windows, their credentials are saved on a local computer by default (Cached Credentials: a user name and a password hash). This allows the…
Active Directory: Core Concepts, Architecture and Best Practices
In this article we will look at how to find out the date a user was created in Active Directory; how to use PowerShell to get information from the domain…
Time-Based (Temporary) Group Membership in Active Directory
The version of Active Directory in Windows Server 2016 introduces an interesting feature that allows you to temporarily add a user to an AD security group. This feature is called…
Using Managed Service Accounts (MSA and gMSA) in Active Directory
You can use Managed Service Accounts (MSA) to securely run services, applications, and scheduler tasks on servers and workstations in an Active Directory domain. The MSA is a special type…
Set-ADUser: How to Change User Properties in Active Directory with PowerShell
The Set-ADUser cmdlet allows to modify user properties (attributes) in Active Directory using PowerShell. Traditionally, a graphic MMC snap-in dsa.msc (Active Directory Users and Computers, ADUC) is used to edit…
Read and Write Excel (XLSX) Files with PowerShell
You can access the data in an Excel file directly from within PowerShell. Although PowerShell has built-in cmdlets for importing (Import-CSV) and exporting (Export-CSV) tabular data from/to CSV files, the…
Auto Lock Computer Screen After Inactivity with GPO
Information security best practices require the computer screen to be locked when the user is inactive (idle) for some time. A Windows user can lock the computer screen themselves (using…
Configuring Password Policy in Active Directory Domain
The password policy in an Active Directory domain specifies basic security requirements for user account passwords, such as password complexity, length, frequency of password changes, and so on. A strong…
Mapping Network Drives (Shared Folders) via Group Policy
Shared network folders from file servers can be made available to domain users as network drives using Group Policy. GPO allows configuring flexible rules to automatically map network drives based…
Repairing the Domain Trust Relationship Between Workstation and Active Directory
If a trust relationship between a Windows workstation and an Active Directory domain is broken, the computer won’t be able to establish a secure channel with the domain controller, and…