Where's Your Cheat Sheet?



  • So I think we all have one, or maybe several. Random snippets of info that we gather over time and jot down for future use. Personally, I keep mine in my Dropbox in a text document that I edit with Notepad++. Here is what mine contains...
    __
    net user username /active:yes
    net user "username" "new_password"
    net localgroup administrators username /add

    nslookup
    set type=all
    _ldap._tcp.dc._msdcs.DOMAIN_NAME

    rundll32 printui.dll,PrintUIEntry /k /n "\atl-ps-01\color-printer" - Print Test Page

    net stats srv - Uptime

    nltest /dsgetdc:domain_name - get DC authenticating against

    Alltel - @message.alltel.com
    Cingular/AT&T - @txt.att.net
    Nextel - @messaging.nextel.com
    Sprint - @messaging.sprintpcs.com
    SunCom - @tms.suncom.com
    T-mobile - @tmomail.net
    VoiceStream - @voicestream.net
    Verizon - @vtext.com

    del /s /f DECRYPT_INSTRUCTION.*
    del /s /f HOWTODECRYPT.*

    netsh interface ip set address "Ethernet" dhcp
    netsh interface ip set address "Ethernet" static 192.168.1.225 255.255.255.0 192.168.1.254 1

    C:\Windows\System32\GroupPolicy\User\Scripts\Logon

    rundll32.exe keymgr.dll, KRShowKeyMgr

    :: Sets the proper date and time stamp with 24Hr Time for log file naming

    SET HOUR=%time:~0,2%
    SET dtStamp9=%date:~-4%%date:~4,2%%date:~7,2%0%time:~1,1%%time:~3,2%%time:~6,2%
    SET dtStamp24=%date:~-4%%date:~4,2%%date:~7,2%
    %time:~0,2%%time:~3,2%%time:~6,2%

    if "%HOUR:~0,1%" == " " (SET dtStamp=%dtStamp9%) else (SET dtStamp=%dtStamp24%)

    __

    A lot of this is stuff I've pieced together from specific tickets I've worked, etc. Some of it I may never use again, other stuff I use several times a week. The command:

    echo %userdomain%
    nltest /dsgetdc:domain_name
    

    Quite handy. And then things like the del /s /f HOWTODECRYPT.* is just a one-line command I execute after changing directory to the root of 😄 (or whatever drive it might be) on a PC that clears out all files named that with any extension in a recursive delete in Windows. I figured that out because at a previous job, people would get Cryptolocker and we'd remove it, but then they'd still have the HTML and text files, primarily, left over. This just goes through the entire system and cleans those out. The syntax was handy so I kept it.

    Anyways, that stuff might seem like a waste to a lot of people but we each have our own notes. So my question to you is how do you track your tidbits/tips? OneNote? Word? Notepad program of your choice? A KB through some application?

    Thanks,
    A.J.



  • I am yet to organise my stuff properly but I have a few things up on SW that I found useful and have stuff scattered on my work PC.

    I set up a blog that I am hoping to transfer a lot of my stuff to so that I have an easily accessible platform that I can link to if necessary.

    The How-To's and Script area of SW should probably be more useful but people expect you to answer them if they post a reply to your script/how-to. That looks like it can get out of hand quite quickly.


Log in to reply