That's an excellent idea, but my boss wouldn't buy off on that
Main Topics
Browse All TopicsI'm building a logon script for my network and want it to display the following information after it runs:
Username
Domain
Current Date/Time
OS Version w/SP Level
Processor Type
Processor Speed
IP address
I've figured out how to disply the first four items, but have had no luck figuring out how to display the processor information or IP address. I know there is some simple way to do this!
Thanks in advance for the help
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
this site has a script with OS and service pack info:
http://cwashington.netreac
this 1 shows: Username, Hostname, IP address, netcard desciption, User Domain, MAC address, DHCP?, current network drive mappings.
http://cwashington.netreac
here is some script for processor information:
--------------------------
On Error Resume Next
strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=imper
Set colItems = objWMIService.ExecQuery("S
For Each objItem in colItems
Wscript.Echo "Address Width: " & objItem.AddressWidth
Wscript.Echo "Architecture: " & objItem.Architecture
Wscript.Echo "Availability: " & objItem.Availability
Wscript.Echo "CPU Status: " & objItem.CpuStatus
Wscript.Echo "Current Clock Speed: " & objItem.CurrentClockSpeed
Wscript.Echo "Data Width: " & objItem.DataWidth
Wscript.Echo "Description: " & objItem.Description
Wscript.Echo "Device ID: " & objItem.DeviceID
Wscript.Echo "External Clock: " & objItem.ExtClock
Wscript.Echo "Family: " & objItem.Family
Wscript.Echo "L2 Cache Size: " & objItem.L2CacheSize
Wscript.Echo "L2 Cache Speed: " & objItem.L2CacheSpeed
Wscript.Echo "Level: " & objItem.Level
Wscript.Echo "Load Percentage: " & objItem.LoadPercentage
Wscript.Echo "Manufacturer: " & objItem.Manufacturer
Wscript.Echo "Maximum Clock Speed: " & objItem.MaxClockSpeed
Wscript.Echo "Name: " & objItem.Name
Wscript.Echo "PNP Device ID: " & objItem.PNPDeviceID
Wscript.Echo "Processor ID: " & objItem.ProcessorId
Wscript.Echo "Processor Type: " & objItem.ProcessorType
Wscript.Echo "Revision: " & objItem.Revision
Wscript.Echo "Role: " & objItem.Role
Wscript.Echo "Socket Designation: " & objItem.SocketDesignation
Wscript.Echo "Status Information: " & objItem.StatusInfo
Wscript.Echo "Stepping: " & objItem.Stepping
Wscript.Echo "Unique Id: " & objItem.UniqueId
Wscript.Echo "Upgrade Method: " & objItem.UpgradeMethod
Wscript.Echo "Version: " & objItem.Version
Wscript.Echo "Voltage Caps: " & objItem.VoltageCaps
Next
--------------------------
The nest for the processor would be...
Set objEnv = WshShell.Environment("Proc
Message = Message & vbCrLf & "--- .Shell Environment Object Process variables:" & vbCrLf
Message = Message & "OS: " & objEnv("OS") & vbCrLf
If (objEnv("OS")="Windows_NT"
Message = Message & "PROCESSOR_IDENTIFIER: " & objEnv("PROCESSOR_IDENTIFI
Message = Message & "PROCESSOR_ARCHITECTURE: " & objEnv("PROCESSOR_ARCHITEC
Message = Message & "PROCESSOR_LEVEL: " & objEnv("PROCESSOR_LEVEL") & vbCrLf
End If
...the IP address is a bit long but I'm popping a box up, you can shave it...
arAddresses = GetIPAddresses()
info = ""
for each ip in arAddresses
info = info & ip & vbTab & GetFQDN(ip) & vbCR
next
WScript.echo info
Function GetFQDN(ipaddress)
set sh = createobject("wscript.shel
set fso = createobject("scripting.fi
Set Env = sh.Environment("PROCESS")
if Env("OS") = "Windows_NT" then
workfile = fso.gettempname
sh.run "%comspec% /c nslookup " & ipaddress & " > " & workfile,0,true
set sh = nothing
set ts = fso.opentextfile(workfile)
data = split(ts.readall,vbcr)
ts.close
set ts = nothing
fso.deletefile workfile
set fso = nothing
for n = 0 to ubound(data)
if instr(data(n),"Name") then
parts = split(data(n),":")
hostname= trim(cstr(parts(1)))
Exit For
end if
hostname = "could not resolve IP address"
next
GetFQDN = hostname
else
set sh = nothing
set fso = nothing
GetFQDN = ""
end if
End Function
Function GetIPAddresses()
set sh = createobject("wscript.shel
set fso = createobject("scripting.fi
Set Env = sh.Environment("PROCESS")
if Env("OS") = "Windows_NT" then
workfile = fso.gettempname
sh.run "%comspec% /c ipconfig > " & workfile,0,true
else
'winipcfg in batch mode sends output to
'filename winipcfg.out
workfile = "winipcfg.out"
sh.run "winipcfg /batch" ,0,true
end if
set sh = nothing
set ts = fso.opentextfile(workfile)
data = split(ts.readall,vbcr)
ts.close
set ts = nothing
fso.deletefile workfile
set fso = nothing
arIPAddress = array()
index = -1
for n = 0 to ubound(data)
if instr(data(n),"IP Address") then
parts = split(data(n),":")
if trim(parts(1)) <> "0.0.0.0" then
index = index + 1
ReDim Preserve arIPAddress(index)
arIPAddress(index)= trim(cstr(parts(1)))
end if
end if
next
GetIPAddresses = arIPAddress
End Function
Business Accounts
Answer for Membership
by: oBdAPosted on 2005-03-02 at 11:47:05ID: 13443253
Have you considered simply putting this information on the desktop? Have a look at http://www.sysinternals.co m/ntw2k/fr eeware/bgi nfo.shtml.