Posted On March 31, 2019

Quick 1-liner Generate List of Active Directory users

kimconnect 0 comments
blog.KimConnect.com >> Codes >> Quick 1-liner Generate List of Active Directory users
# Discover domain controller:
echo %LOGONSERVER%

# Display Users:
dsquery user -limit 0 | dsget user -display -dept -title

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post

PowerShell: Elevating Credential

$jumpbox="127.0.0.1" <# # Static Credentials (unsecured) $username = (Get-ADDomain).name+"\ADMINISTRATOR" $password = "PASSWORD" #> # Dynamic…

PowerShell: Check DotNet Framework on Windows

function checkDotNetVersions{ # General info: # - Powershell 2.0 latest SSL version support is TLS…

PowerShell: Expand Disk Volume to Maximum Size

# expandDisk.ps1 # version 0.02 $driveLetters=(Get-wmiobject win32_volume -filter 'DriveType=3 AND DriveLetter IS NOT NULL').DriveLetter function…