Month: June 2019

Microsoft Windows PowerShell – Get DHCP IPv4 Scope Details

The Windows PowerShell cmdlet below will query a remote Dynamic Host Configuration Protocol (DHCP) server and provide the lease duration of each IPv4 scope. Get-DhcpServerv4Scope -ComputerName HOSTNAME | Select ScopeID, LeaseDuration


Microsoft Active Directory – Computer Object Password

You may use the following Windows PowerShell cmdlets to view the last time an Active Directory (AD) computer object reset it’s password for all of the computer objects in an AD domain or an individual computer object in an AD domain. Get-ADComputer -Filter * -Properties PasswordLastSet | Select Name, PasswordLastSet | Sort-Object Name, PasswordLastSet |…


Microsoft Windows Server 2016 – Print Server Migration

Windows Server 2016 allows you to export printers using the Printer Migration utility. Upon exporting the existing printers you may use the following command, from the C:\Windows\System32\spool\tools\ directory, to import them. .\PrintBrm.exe -r -f <<<PATH_TO_IMPORT_FILE>>>