MISC.‎ > ‎

Get-CompIP (Powershell)

This Script Saves the Computer IP in the Clipboard.


Very useful for connecting to a remote computer or just finding out it's name.


Download The Script

 


# ==========================================================

# Get-CompIP.ps1

# Made By : Assaf Miron

# http://assaf.miron.googlepages.com

# Description : Saves in the Clipboard the enterd computers IP

# ==========================================================


param ($Name=$(Read-Host "Enter a Computer Name to Resolve it's IP"))


If ((Get-PSSnapin | where { $_.Name -eq "PSCX" }) -eq $null) { Add-PSSnapin PSCX }


$(Ping $Name).Replies[0].address.IPAddressToString | Out-Clipboard | Out-Null 

Comments