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
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
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 | Format–List
Get-ADComputer -Filter ‘Name -EQ “<<<HOSTNAME>>>”‘ -Properties PasswordLastSet | Select Name, PasswordLastSet | Format-List
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>>>
Copyright © 2024, Noel Alvarez. Proudly powered by WordPress. Blackoot design by Iceable Themes.