Error DataBase-One Place all Solutions Forums Blog Glossary    Contact Us
Search  
   
Browse by Category
Error DataBase-One Place all Solutions .: Operating Systems .: Windows Operating Systems .: Windows Scripts and Batch Files .: VB Script to Display Network Variables

VB Script to Display Network Variables

Set WshNtwk = WScript.CreateObject("WScript.Network")

PropertyInfo = "User Domain" & vbTab & "= " & vbTab & WshNtwk.UserDomain & _
vbCrLf & "Computer Name" & vbTab & "= " & vbTab & WshNtwk.ComputerName & _
vbCrLf & "User Name" & vbTab & "= " & vbTab & WshNtwk.UserName & vbCrLf

MsgBox PropertyInfo, vbOkOnly , "WshNtwk Properties Example"


How helpful was this article to you?

Related Articles

article VB Script to Display IP Address
Option Explicit On Error Resume Next

(No rating)  3-24-2008    Views: 151   
article How to broadcast environment variables to the system
You can modify user environment variables...

(No rating)  6-3-2008    Views: 60   
article How to Display SCL Level in OWA 2003 SP2
Microsoft Exchange Intelligent Message...

(No rating)  4-9-2008    Views: 128   

User Comments

Add Comment
No comments have been posted.