Cyborg 1: Searching Active Directory with PowerShell

/

Untitled

Get-ADUser -Filter 'Surname -eq "Rogers"'

Untitled

https://www.ipswitch.com/blog/searching-active-directory-with-powershell

Get-ADUser -Filter 'Surname -eq "Rogers"' -properties state

Untitled

https://devblogs.microsoft.com/scripting/search-active-directory-for-user-and-office-locations/

Cyborg2: Use Dns class to Get IPv4 Address Into a Variable in PowerShell

Untitled

([System.Net.DNS]::GetHostAddresses('CYBORG718W100N') | Where-Object {$_.AddressFamily -eq "InterNetwork"} | select-object IPAddressToString)[0].IPAddressToString

Untitled

Note: