Scripts


—————————–IP to name PC name resolve Bulk machines————————–

Get-Content “C:\Disk Report\Serverlist.txt” | ForEach-Object{
$hostname = ([System.Net.Dns]::GetHostByAddress($_)).Hostname
if($? -eq $True) {
$_ +”: “+ $hostname >> “C:\machinenames.txt”
}
else {
$_ +”: Cannot resolve hostname” >> “C:\machinenames.txt”
}}

——————————————————-Done————————————————————————–

Get the Computer Name, IP Address and others with this batch file

@echo off
echo Checking your system infor, Please wating…
systeminfo | findstr /c:”Host Name”
systeminfo | findstr /c:”Domain”
systeminfo | findstr /c:”OS Name”
systeminfo | findstr /c:”OS Version”
systeminfo | findstr /c:”System Manufacturer”
systeminfo | findstr /c:”System Model”
systeminfo | findstr /c:”System type”
systeminfo | findstr /c:”Total Physical Memory”
ipconfig | findstr IPv4

echo.

echo Hard Drive Space:
wmic diskdrive get size

echo.
echo.

echo Service Tag:
wmic bios get serialnumber

echo.
echo.
echo CPU:
wmic cpu get name

echo Completed! Thank you!

pause


Display Current User, Host Name and IP Address


@echo off
echo\
echo I am logged on as %UserName%.
echo My computer's name is %ComputerName%.
echo My IP settings are
ipconfig | find "." | find /i /v "suffix"
echo\
echo Press the Space bar to close this window.
pause > nul
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: