Windows

Certificates (Creating and managing)

Creating Certificates

makecert

To create a certificate to sign code (Excel) use:
makecert -r -pe -n "CN=Your Name" -b 01/01/2009 -e 01/01/2099 -eku 1.3.6.1.5.5.7.3.3 -ss My

Note: not all versions of makecert support the -pe option

MakeCertificate.zip

Managing Certificates

start (open) certmgr.msc ,
or start mmc.exe (Microsoft Management Console) and add the Certificate snap-in (Demo)

BitLocker

Listing Protectors

manage-bde -protectors -get C:

Correction when password not working

manage-bde -protectors -disable C:
manage-bde -protectors -enable C:

Commands

APPWIZ.CPL
starts the application wizard.
ASSOC
show/change file-extension to file-type associations. See FTYPE.
CACLS
edit files Access Control List.
CERTMGR.MSC
open certificate manager.
CHARMAP
show character mapping.
CLEANMGR
clean disk (started if disk full).
DISKPART
partition manager, set volume to read only.
FTYPE
show/change the command executed for a given file-type. See ASSOC.
GETMAC
get the MAC number of network adapters.
MKLINK
creates a symbolic link.
MOUNTVOL
enable/disable automount, manage mount points.
MSCONFIG
startup config (run by Windows-R or from C:\WINDOWS\pchealth\helpctr\binaries
NBTSTAT
show netbios status.
NETSH
config network (netsh diag gui).
SC
manage services and the Service Controller.
SUBST
associates a path with a drive letter.
SYSDM.CPL
system properties.

internals / DLL's

hotplug (USB)
"C:\WINDOWS\system32\rundll32.exe" shell32.dll,Control_RunDLL hotplug.dll

Terminal Server

Microsoft Terminal Server Commands
Scripting Terminal Server Commands

Registry

Explorer

avoid "Shortcut" in name
do not add "- Shortcut" to the name when creating a link

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer]
"link"=hex:00,00,00,00

Keyboard

DOS here
%SystemRoot%\system32\cmd.exe /K "cd %1"

[HKEY_CLASSES_ROOT\Folder\shell\dos]
@="DOS here"

[HKEY_CLASSES_ROOT\Folder\shell\dos\command]
@=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25, 00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,63,00,6d,00, 64,00,2e,00,65,00,78,00,65,00,20,00,2f,00,4b,00,20,00,22,00,63,00,64,00,20, 00,25,00,31,00,22,00,00,00

enabe Unicode
HKEY_Current_User/Control Panel/Input Method/EnableHexNumpad

Create as string (REG_SZ) with value "1". To enter an unicode character press and hold the ALT key while typing the + on the numpad followed by the hexadedcimal value.

layouts
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layouts
login priority
HKEY_USERS\.DEFAULT\Keyboard Layout\Preload (Cannot log on after changing keyboard settings)

Network

MAC
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\{4D36E972-E325-11CE-BFC1-08002bE10318}\xxxx\NetworkAddress

ZIP

disable search
HKEY_CLASSES_ROOT\SystemFileAssociations\.zip\CLSID

remove/rename this key to disable search in .zip files.
(on XP, CLSID = {E88DCCE0-B7B3-11d1-A9F0-00AA0060FA31} )

regsvr32 c:\windows\\system32\zipfldr.dll /u
diasble search in ZIP.
regsvr32 c:\windows\\system32\zipfldr.dll
enable search in ZIP.

General

Autorun
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Cdrom
Autorun = 0 to disable
add to Start-Menu
add key HKEY_CLASSES_ROOT\Folder\shellex\ContextMenuHandlers\{a2a9545d-a0c2-42b4-9708-a0b2badd77c8}
hide user
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\Winlogon\SpecialAccounts\UserList\$USERNAME$ DWORD: $0$ to hide, $1$ to show

Copy File Path

an explorer extension to copy file/folder path to the clipboard
Uncompress the file CopyPathExtension.zip and merge (double-click) the content to the registry.
It will add an entry to the explorer context menu (right-click) to copy the path of the selected file/folder to the clipboard.
Requires the Clipboard Utility ( cb.exe ) from AutoHotKey on the command PATH. I got it here. (cb.exe should be replaced by standard CLIP command)

Mount Drive Read-only

Start DISKPART.EXE and use:

list vol to get a list of volumes
sel vol X to select the desired volume
att vol set readonly to set readonly
att vol clear readonly to clear readonly
detail vol or att vol to see actual settings

Send To

Clipboard

open shell:sendto and add shortcut with
cmd /c CLIP <

Tools

Editor

vim / gvim

Network

Firefox (Add-ons, Quicksearch)

Office

Excel

=SUMME(WENN(ZEILE(A1:A8)<3;A1:A8))    (Ctrl-Shift-Return)
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-Noncommercial-Share Alike 2.5 License.