Pages

2/17/2003

Windows::Network Management::Scripting::Get Serial Number of Remote Machine


I need to query all the machines in Network neighborhood to get their serial numbers.
This WSH script is a place to start:
ComputerName = InputBox("Enter the name of the computer you wish to query")
winmgmt1 = "winmgmts:{impersonationLevel=impersonate}!//"& ComputerName &""
'WScript.Echo winmgmt1
Set SNSet = GetObject( winmgmt1 ).InstancesOf ("Win32_BIOS")
for each SN in SNSet
MsgBox "The serial number for the specified computer is: " & SN.SerialNumber
Next

Ideally this would be a perl script that generates an HTML report of all the machine names and serial numbers (and IP numbers.) This could be launched via a weblink on server and get back report.
The next step would be to compile a txt file with a listing of all the serial numbers found so far and as the discovery is being done only add the new ones to the list.

Windows 2000::Registry::ComputerName


Looking for ComputerName in registry. I found it a few places. A good one to query is:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\
ComputerName\ActiveComputerName\Computer

Name is the current NetBIOS computer name.

2/16/2003

Windows::Networking::Ports & Protocols

Good resource for what ports are used by what services
I'm trying to get performance monitor working through a firewall so I can check performance stats on a machine on a "DMZ" segment from another segment. I came across an excellent resource on Microsoft Technet
Port
TCP/UDP
Service Name
42
TCP
WINS Replication
47
TCP
GRE for PPTP
53
UDP
DNS Name Resolution
53
TCP
DNS
67
UDP
DHCP Lease (BOOTP)
68
UDP
DHCP Lease
88
UDP
Kerberos
135
TCP
Location Service (RPC, RPC EP Mapper, WINS Manager, DHCP Manager, MS DTC)
137
UDP
NetBIOS Name Service (Logon Sequence, Windows NT 4.0 Trusts, Windows NT 4.0 Secure Channel, Pass Through Validation, Browsing, Printing)
137
TCP
WINS Registration
138
UDP
NetBIOS Datagram Service (Logon Sequence, Windows NT 4.0 Trusts, Windows NT 4.0 Directory Replication, Windows NT 4.0 Secure Channel, Pass Through Validation, NetLogon, Browsing, Printing)
139
TCP
NetBIOS Session Service (NBT, SMB, File Sharing, Printing, Logon Sequence, Windows NT 4.0 Trusts, Windows NT 4.0 Directory Replication, Windows NT 4.0 Secure Channel, Pass Through Validation, Windows NT 4.0 Administration Tools [Server Manager, User Manager, Event Viewer, Registry Editor, Diagnostics, Performance Monitor, DNS Administrator])
389
TCP/UDP
LDAP
500
TCP/UDP
ISAKMP/Oakley negotiation traffic (IPSec)
522
TCP
User Location Store
636
TCP/UDP
LDAP (over TLS/SSL)
750
UDP
Kerberos Authentication
750
TCP
Kerberos Authentication
751
UDP
Kerberos Authentication
751
TCP
Kerberos Authentication
752
UDP
Kerberos Password Server
753
UDP
Kerberos User Registration Server
754
TCP
Kerberos Slave Propagation
888
TCP
Logon and Environment Passing
Dynamic
TCP
Directory Replication
1109
TCP
POP with Kerberos
1723
TCP
PPTP Control Channel (IP Protocol 47 – GRE)
2053
TCP
Kerberos de-multiplexor
2105
TCP
Kerberos encrypted login
3268

Global Catalog
3269

Global Catalog
3389
RDP
Terminal Services
The following is a list of ports and protocols for Microsoft Exchange 2000 Server services.
Port
TCP/UDP
Service Name
25
TCP
SMTP
80
TCP
HTTP
102
TCP
MTA – X.400 over TCP/IP
110
TCP
POP3
119
TCP
NNTP
135
TCP
Client/Server Communication, RPC, Exchange Administration
143
TCP
IMAP4
389
TCP
LDAP
443
TCP
HTTP (SSL)
465
TCP
SMTP (SSL)
563
TCP
NNTP (SSL)
636
TCP
LDAP (SSL)
993
TCP
IMAP4 (SSL)
995
TCP
POP3 (SSL)
1720
TCP
H.323 Call Setup
1731
TCP
Audio Call Control
2980
TCP/UDP
Instant Messaging Service
Dynamic
TCP
H.323 Call Control
Dynamic
UDP
H.323 Call (RTP Over UDP)

2/11/2003

Internet::E-Mail::Security

Test your e-mail system for vulnerabilities
I don't use the product sold at the link below, so I can't recommend for or against it.
However, they will automatically generate several test e-mails to determine your level of exposure
to various exploits commonly sent via e-mail. I found a few adjustments I needed to make to my e-mail gateway.
http://www.gfi.com/emailsecuritytest

2/10/2003

Outlook::Exchange::Public Folder::Define default public folder view

I want to make a custom view the default view for everyone who views my public folder.
To create a default custom view for a public folder, follow these steps:
  • Log on to the Outlook client as the owner of a public folder, and select the public folder.

  • Customize the public folder to the desired view. This can be done using the menu items for View.

  • Save the custom view by clicking on View menu, then Define Views, and selecting Current View Settings. Click Copy, and then type in your view name. Then select This folder, visible to everyone. Click OK, then Close.

  • To select a custom view for a public folder, follow these steps:
  • Log on to the Outlook client as the owner of a public folder.

  • Right-click on the folder, and select Properties. Select the Administration tab.

  • NOTE:  If users have already customized their view for that public folder, their view will stay until they specifically choose a different view. All users that have not customized the public folder view will receive the newly selected public folder view.

    From: MS KB#202186 http://support.microsoft.com/default.aspx?scid=kb;en-us;202186

    2/04/2003

    Internet::E-Mail::Testing

    e-mail autoresponder addresses
    I like to have the ability to do a quick test of my e-mail system a few times throughout the day. I've gotten in the habit of sending a message to an autoresponder.
    The one I liked best, echo@psi.com, quit working. It's been quite some time so I've given up hope that it was just a temporary problem. I liked it because it echoed back the message you sent it. I always used a message with the time I sent it as the subject that gave me a response time for comparison without having to figure it out myself.
    Some other options I found while searching:
    1. echo@osi.com.au - a long physical distance from the us so it takes a little while. It also doesn't echo back you exact same message so it is not as helpful or useful in as many ways.
    2. spam.echo@clearswift.com - will send you back a test spam message.
    3. test@sstar.com - will send you back a message containing a list of other autoresponders: (I haven't tried them all yet.)
    test@bayonne.net - doesn't work.
    test@buscom.net - works
    test@buscomnet.com -
    test@cshore.com - works
    test@digiplay.com
    test@ifxgroup.net
    test@tcmetro.net
    test@toltbbs.com
    test@tznet.com
    test@zzapp.org
    4. You could setup your own with a yahoo account and a vacation response or a hotmail account with an alert e-mail to your internal e-mail address or pager.

    E-Mail me any others you know of or any other ideas you have for verifying e-mail connectivity.