Posted On March 31, 2019

ipToHostname

kimconnect 0 comments
blog.KimConnect.com >> Codes >> ipToHostname
Get-Content C:\Users\kimconnect\Desktop\ipList.txt | ForEach-Object {([system.net.dns]::GetHostByAddress($_)).hostname}

Leave a Reply

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

Related Post

PowerShell: Dealing with Service Principle Names (SPNs)

Basic Commands: # Show SPNs$computername="$env:computername"Get-ADComputer -Identity $computername -Properties ServicePrincipalNames |Select-Object -ExpandProperty ServicePrincipalNames# Add one SPNSet-ADComputer…

PowerShell: Legacy Methods to Save Credentials

PowerShell version 7 or later may already have facilities to store and retrieve credentials without…

Resolving CRM Error Upon Login

Symptom: Error Message when trying to login to CRM [caption id="attachment_7481" align="alignnone" width="237"] INVALID ACTION[/caption]…