=====Links===== [[http://www.computerworld.com.au/index.php/id;987318737;fp;2;fpid;2|DOS lives! Secrets of the Windows command prompt]] \\ [[http://technet.microsoft.com/en-us/library/cc778084.aspx|Microsoft TechNet - Command-line reference A-Z]] \\ =====rundll32.exe===== [[http://support.microsoft.com/kb/164787/en-us|Microsoft Support - INFO: Windows Rundll and Rundll32 Interface]] \\ =====devcon.exe===== Verwijderen van alle ports: devcon.exe remove =ports [[http://support.microsoft.com/kb/311272/en-us|Microsoft Support - The DevCon command-line utility functions as an alternative to Device Manager]] \\ [[http://technet2.microsoft.com/WindowsServer/f/?en/library/0b077318-2bac-4399-8230-461d5d2a055f1033.mspx|Microsoft TechNet - Devcon Examples]] \\ =====Format.com===== format.com heeft naast de gebruikelijke schakelopties ook nog een verborgen optie /y. \\ Dit is vooral handig als je een schijf wil formatteren vanuit een script: \\ format.com d: /fs:ntfs /q /y =====inuse.exe====== C:\>inuse /? INUSE replacement destination [/Y] Description: This tool replaces a file which is in use by the operating system upon reboot. Parameter List: replacement Specifies the new file (including fully qualified path). destination Specifies the file to be replaced (including fully qualified path). /Y Suppresses the confirmation prompt. /? Displays this help message. Examples: INUSE /? INUSE C:\FOO.DLL C:\WINDOWS\SYSTEM32\FOO.DLL INUSE C:\ODBCTRAC.DLL C:\WINDOWS\SYSTEM32\ODBCTRAC.DLL /Y INUSE \\SERVER1\TEMP\CABINET.DLL C:\CABINET.DLL /Y Bron:[[http://support.microsoft.com/kb/228930|Microsoft Support - How to replace currently locked files with Inuse.exe]] \\ =====net localgroup====== Een gebruiker toevoegen aan de Administrators groep op de lokale machine: \\ net localgroup Administrators username /ADD Een gebruiker verwijderen uit de Administrators groep op de lokale machine: \\ net localgroup Administrators bon /DELETE =====odbcconf.exe===== ODBC zaken regelen vanaf de commandline. \\ Aanmaken system DSN: "%systemroot%\system32\odbcconf.exe" /a {CONFIGSYSDSN "SQL Native Client" "DSN=prod|Description=prod|SERVER=localhost|Trusted_Connection=no|Database=prod"} Zie:[[http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=762839&SiteID=1|Error Creating DSN using odbcconf.exe for SQL Server]] \\ =====Running CMD.EXE as Local System===== Met het volgende commando kan een cmd.exe gestart worden als SYSTEM: at 16:30 /interactive cmd.exe Vergeet niet om daarna de job weer te verwijderen met: at 1 /delete Waarbij 1 staat voor het job nummer. Een andere optie is om een service aan te maken met sc.exe en deze te starten: sc create testsvc binpath= "cmd /K start" type= own type= interact sc start testsvc Weer verwijderen kan zo: sc delete testsvc Bron:[[http://blogs.msdn.com/adioltean/articles/271063.aspx|Running CMD.EXE as Local System]] \\ Zie ook:[[http://verbalprocessor.com/2007/12/05/running-a-cmd-prompt-as-local-system/|The Realm of the Verbal Processor - Running a CMD prompt as System (XP and Vista)]] \\ =====icacls===== Get a list of all non-inherited NTFS rights on a directory with subdirectories: icacls C:\Directory /T /C|find /v "(I)(" > Report.txt =====Commando's===== ^Commando|**Resultaat/Applicatie**| |access.cpl|Accessibility Controls| |hdwwiz.cpl|Add Hardware Wizard| |appwiz.cpl|Add/Remove Programs| |control admintools|Administrative Tools| |wuaucpl.cpl|Automatic Updates| |fsquirt|Bluetooth Transfer Wizard| |calc|Calculator| |certmgr.msc|Certificate Manager| |charmap|Character Map| |chkdsk|Check Disk Utility| |clipbrd|Clipboard Viewer| |cmd|Command Prompt| |dcomcnfg|Component Services| |compmgmt.msc|Computer Management| |timedate.cpl|Date and Time Properties| |ddeshare|DDE Shares| |devmgmt.msc|Device Manager| |directx.cpl|Direct X Control Panel (If Installed)| |dxdiag|Direct X Troubleshooter| |cleanmgr|Disk Cleanup Utility| |dfrg.msc|Disk Defragment| |diskmgmt.msc|Disk Management| |diskpart|Disk Partition Manager| |control desktop|Display Properties| |desk.cpl|Display Properties| |control color|Display Properties (w/Appearance Tab Preselected)| |drwtsn32|Dr. Watson System Troubleshooting Utility| |verifier|Driver Verifier Utility| |eventvwr.msc|Event Viewer| |sigverif|File Signature Verification Tool| |findfast.cpl|Findfast| |control folders|Folders Properties| |control fonts|Fonts| |fonts|Fonts Folder| |freecell|Free Cell Card Game| |joy.cpl|Game Controllers| |gpedit.msc|Group Policy Editor (XP Prof)| |mshearts|Hearts Card Game| |iexpress|Iexpress Wizard| |ciadv.msc|Indexing Service| |inetcpl.cpl|Internet Properties| |ipconfig /all|IP Configuration (Display Connection Configuration)| |ipconfig /displaydns|IP Configuration (Display DNS Cache Contents)| |ipconfig /flushdns|IP Configuration (Delete DNS Cache Contents)| |ipconfig /release|IP Configuration (Release All Connections)| |ipconfig /renew|IP Configuration (Renew All Connections)| |ipconfig /registerdns|IP Configuration (Refreshes DHCP & Re-Registers DNS)| |ipconfig /showclassid|IP Configuration (Display DHCP Class ID)| |ipconfig /setclassid|IP Configuration (Modifies DHCP Class ID)| |jpicpl32.cpl|Java Control Panel (If Installed)| |javaws|Java Control Panel (If Installed)| |control keyboard|Keyboard Properties| |secpol.msc|Local Security Settings| |lusrmgr.msc|Local Users and Groups| |logoff|Logs You Out Of Windows| |winchat|Microsoft Chat| |winmine|Minesweeper Game| |control mouse|Mouse Properties| |main.cpl|Mouse Properties| |control netconnections|Network Connections| |ncpa.cpl|Network Connections| |netsetup.cpl|Network Setup Wizard| |notepad|Notepad| |nvtuicpl.cpl|Nview Desktop Manager (If Installed)| |packager|Object Packager| |odbccp32.cpl|ODBC Data Source Administrator| |osk|On Screen Keyboard| |ac3filter.cpl|Opens AC3 Filter (If Installed)| |password.cpl|Password Properties| |perfmon.msc|Performance Monitor| |perfmon|Performance Monitor| |telephon.cpl|Phone and Modem Options| |powercfg.cpl|Power Configuration| |control printers|Printers and Faxes| |printers|Printers Folder| |eudcedit|Private Character Editor| |QuickTime.cpl|Quicktime (If Installed)| |intl.cpl|Regional Settings| |regedit|Registry Editor| |regedit32|Registry Editor| |mstsc|Remote Desktop| |ntmsmgr.msc|Removable Storage| |ntmsoprq.msc|Removable Storage Operator Requests| |rsop.msc|Resultant Set of Policy (XP Prof)| |sticpl.cpl|Scanners and Cameras| |control schedtasks|Scheduled Tasks| |wscui.cpl|Security Center| |services.msc|Services| |fsmgmt.msc|Shared Folders| |shutdown|Shuts Down Windows| |mmsys.cpl|Sounds and Audio| |spider|Spider Solitare Card Game| |cliconfg|SQL Client Configuration| |sysedit|System Configuration Editor| |msconfig|System Configuration Utility| |sfc /scannow|System File Checker Utility (Scan Immediately)| |sfc /scanonce|System File Checker Utility (Scan Once At Next Boot)| |sfc /scanboot|System File Checker Utility (Scan On Every Boot)| |sfc /revert|System File Checker Utility (Return to Default Setting)| |sfc /purgecache|System File Checker Utility (Purge File Cache)| |sfc /cachesize=x|System File Checker Utility (Set Cache Size to size x)| |sysdm.cpl|System Properties| |taskmgr|Task Manager| |telnet|Telnet Client| |nusrmgr.cpl|User Account Management| |utilman|Utility Manager| |firewall.cpl|Windows Firewall| |magnify|Windows Magnifier| |wmimgmt.msc|Windows Management Infrastructure| |syskey|Windows System Security Tool| |wupdmgr|Windows Update Launches| |tourstart|Windows XP Tour Wizard| |write|Wordpad| Bron: [[http://groups.google.com/group/niederheitmann/browse_thread/thread/e40658f09b54fc72/b7ed3e597f9f8dea?lnk=st&q=windows+xp+disable+%22date+and+time+properties%22&rnum=2&hl=en#b7ed3e597f9f8dea|WINDOWS RUN COMMANDS]] via [[http://juice.altiris.com/heads-up/1563/windows-run-commands|Altiris Juice: Windows RUN Commands]].