Random Quick Tips

In: General

19 Dec 2005

Everyone has their own way of doing things, whether its through one short cut or another, anyway heres some quick tips. If you have any submit them below, i’m sure I we all still have plenty to learn.

Minimise Outlook to Systray…

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Microsoft\Office\11.0\Outlook\Preferences]
"MinToTray"=dword:00000001

MAP Network drives, including Samba from the command line.

NET VIEW
\\PC192
\\PC193
\\SVR50
\\SVR51
\\SVR52
\\SVR57
\\SVR59
NET USE P: \\127.0.0.1/Projects

Get general SystemInformation command line

systeminfo

Copy local DNS from a server, if you don’t have a DNS server from the command line.

copy  \ \SVR69 \netlogon \hosts %systemroot% \system32 \drivers \etc \hosts

Running admin commands on a workstation from the command line

runas /u:127.0.0.1 \administrator cmd.exe

Lookup Name Server information including TTL from the command line.

nslookup
Default Server:
Address:  192.168.2.1

> set d2
> set domain=ajohnstone.com
> set type=all
> ls
Server:
Address:  192.168.2.1

------------
SendRequest(), len 35
    HEADER:
        opcode = QUERY, id = 2, rcode = NOERROR
        header flags:  query, want recursion
        questions = 1,  answers = 0,  authority records = 0,  additional = 0

    QUESTIONS:
        ls.ajohnstone.com, type = ANY, class = IN

------------
------------
Got answer (97 bytes):
    HEADER:
        opcode = QUERY, id = 2, rcode = NOERROR
        header flags:  response, want recursion, recursion avail.
        questions = 1,  answers = 1,  authority records = 2,  additional = 0

    QUESTIONS:
        ls.ajohnstone.com, type = ANY, class = IN
    ANSWERS:
    ->  ls.ajohnstone.com
        type = A, class = IN, dlen = 4
        internet address = 70.85.198.202
        ttl = 86371 (23 hours 59 mins 31 secs)
    AUTHORITY RECORDS:
    ->  ajohnstone.com
        type = NS, class = IN, dlen = 16
        nameserver = ns.aplosmedia.com
        ttl = 86166 (23 hours 56 mins 6 secs)
    ->  ajohnstone.com
        type = NS, class = IN, dlen = 6
        nameserver = ns2.aplosmedia.com
        ttl = 86166 (23 hours 56 mins 6 secs)

------------
Non-authoritative answer:
ls.ajohnstone.com
        type = A, class = IN, dlen = 4
        internet address = 70.85.198.202
        ttl = 86371 (23 hours 59 mins 31 secs)

ajohnstone.com
        type = NS, class = IN, dlen = 16
        nameserver = ns.aplosmedia.com
        ttl = 86166 (23 hours 56 mins 6 secs)
ajohnstone.com
        type = NS, class = IN, dlen = 6
        nameserver = ns2.aplosmedia.com
        ttl = 86166 (23 hours 56 mins 6 secs)
>

Display DNS Cache, Flush DNS, Release IP Address, and Renew IP Address from the command line.

ipconfig /displaydns
ipconfig /flushdns
ipconfig /release
ipconfig /renew

Alternative to Tracert

PathPing

DNSLint [Description of the DNSLint] (Download)
DNSLint is a Microsoft Windows utility that helps you to diagnose common DNS name resolution issues.

Comment Form

About this blog

I have been a developer for roughly 10 years and have worked with an extensive range of technologies. Whilst working for relatively small companies, I have worked with all aspects of the development life cycle, which has given me a broad and in-depth experience.