How to find the IPs and Usernames of Users Logged In on your Network

Posted by Unknown Selasa, 03 Desember 2013 0 komentar
Install and Run Windows Powershell

Give yourself unrestricted script access:
Set-ExecutionPolicy Unrestricted

Make a list of IPs to query and put it in a text file (1 IP per line).

Modify script below and put it in a text file with extension .ps1 (like script.ps1)

$ErrorActionPreference = 'SilentlyContinue'
$computers
= Get-Content g:\script\ipaddress.txt
foreach($computer in $computers) {
$ping
= Test-Connection -ComputerName $computer -Count 1 -Quiet
$computerName
= [system.net.dns]::Resolve("$computer")
#$hostname = $computerName.HostName
$shortHostname
= $computerName.HostName.Split(".")[0]
if ($ping -eq 'True')
{
$UserName
= (Get-WmiObject -ComputerName $computer win32_ComputerSystem).UserName
Write-Host "$shortHostname $UserName" -ForegroundColor Green
#Write-Host "$hostname is pingable" -ForegroundColor Green
}
else
{
Write-Host "$computer is not pingable" -ForegroundColor Red
}
}

Put the .txt and the.ps1 in the same folder.

Browse to the folder in Powershell.

Type .\script.ps1

Wait for the query to find all the logged in users on your IP range...

from
Power ping and get computer, username
TERIMA KASIH ATAS KUNJUNGAN SAUDARA
Judul: How to find the IPs and Usernames of Users Logged In on your Network
Ditulis oleh Unknown
Rating Blog 5 dari 5
Semoga artikel ini bermanfaat bagi saudara. Jika ingin mengutip, baik itu sebagian atau keseluruhan dari isi artikel ini harap menyertakan link dofollow ke https://androidtv7.blogspot.com/2013/12/how-to-find-ips-and-usernames-of-users.html. Terima kasih sudah singgah membaca artikel ini.

0 komentar:

Posting Komentar

Trik SEO Terbaru support Online Shop Baju Wanita - Original design by Bamz | Copyright of android tv.