User Tools

Site Tools


microsoft:windows:runcommands

rundll32.exe

devcon.exe

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: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: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:Running CMD.EXE as Local System
Zie ook: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

CommandoResultaat/Applicatie
access.cplAccessibility Controls
hdwwiz.cplAdd Hardware Wizard
appwiz.cplAdd/Remove Programs
control admintoolsAdministrative Tools
wuaucpl.cplAutomatic Updates
fsquirtBluetooth Transfer Wizard
calcCalculator
certmgr.mscCertificate Manager
charmapCharacter Map
chkdskCheck Disk Utility
clipbrdClipboard Viewer
cmdCommand Prompt
dcomcnfgComponent Services
compmgmt.mscComputer Management
timedate.cplDate and Time Properties
ddeshareDDE Shares
devmgmt.mscDevice Manager
directx.cplDirect X Control Panel (If Installed)
dxdiagDirect X Troubleshooter
cleanmgrDisk Cleanup Utility
dfrg.mscDisk Defragment
diskmgmt.mscDisk Management
diskpartDisk Partition Manager
control desktopDisplay Properties
desk.cplDisplay Properties
control colorDisplay Properties (w/Appearance Tab Preselected)
drwtsn32Dr. Watson System Troubleshooting Utility
verifierDriver Verifier Utility
eventvwr.mscEvent Viewer
sigverifFile Signature Verification Tool
findfast.cplFindfast
control foldersFolders Properties
control fontsFonts
fontsFonts Folder
freecellFree Cell Card Game
joy.cplGame Controllers
gpedit.mscGroup Policy Editor (XP Prof)
msheartsHearts Card Game
iexpressIexpress Wizard
ciadv.mscIndexing Service
inetcpl.cplInternet Properties
ipconfig /allIP Configuration (Display Connection Configuration)
ipconfig /displaydnsIP Configuration (Display DNS Cache Contents)
ipconfig /flushdnsIP Configuration (Delete DNS Cache Contents)
ipconfig /releaseIP Configuration (Release All Connections)
ipconfig /renewIP Configuration (Renew All Connections)
ipconfig /registerdnsIP Configuration (Refreshes DHCP & Re-Registers DNS)
ipconfig /showclassidIP Configuration (Display DHCP Class ID)
ipconfig /setclassidIP Configuration (Modifies DHCP Class ID)
jpicpl32.cplJava Control Panel (If Installed)
javawsJava Control Panel (If Installed)
control keyboardKeyboard Properties
secpol.mscLocal Security Settings
lusrmgr.mscLocal Users and Groups
logoffLogs You Out Of Windows
winchatMicrosoft Chat
winmineMinesweeper Game
control mouseMouse Properties
main.cplMouse Properties
control netconnectionsNetwork Connections
ncpa.cplNetwork Connections
netsetup.cplNetwork Setup Wizard
notepadNotepad
nvtuicpl.cplNview Desktop Manager (If Installed)
packagerObject Packager
odbccp32.cplODBC Data Source Administrator
oskOn Screen Keyboard
ac3filter.cplOpens AC3 Filter (If Installed)
password.cplPassword Properties
perfmon.mscPerformance Monitor
perfmonPerformance Monitor
telephon.cplPhone and Modem Options
powercfg.cplPower Configuration
control printersPrinters and Faxes
printersPrinters Folder
eudceditPrivate Character Editor
QuickTime.cplQuicktime (If Installed)
intl.cplRegional Settings
regeditRegistry Editor
regedit32Registry Editor
mstscRemote Desktop
ntmsmgr.mscRemovable Storage
ntmsoprq.mscRemovable Storage Operator Requests
rsop.mscResultant Set of Policy (XP Prof)
sticpl.cplScanners and Cameras
control schedtasksScheduled Tasks
wscui.cplSecurity Center
services.mscServices
fsmgmt.mscShared Folders
shutdownShuts Down Windows
mmsys.cplSounds and Audio
spiderSpider Solitare Card Game
cliconfgSQL Client Configuration
syseditSystem Configuration Editor
msconfigSystem Configuration Utility
sfc /scannowSystem File Checker Utility (Scan Immediately)
sfc /scanonceSystem File Checker Utility (Scan Once At Next Boot)
sfc /scanbootSystem File Checker Utility (Scan On Every Boot)
sfc /revertSystem File Checker Utility (Return to Default Setting)
sfc /purgecacheSystem File Checker Utility (Purge File Cache)
sfc /cachesize=xSystem File Checker Utility (Set Cache Size to size x)
sysdm.cplSystem Properties
taskmgrTask Manager
telnetTelnet Client
nusrmgr.cplUser Account Management
utilmanUtility Manager
firewall.cplWindows Firewall
magnifyWindows Magnifier
wmimgmt.mscWindows Management Infrastructure
syskeyWindows System Security Tool
wupdmgrWindows Update Launches
tourstartWindows XP Tour Wizard
writeWordpad

Bron: WINDOWS RUN COMMANDS via Altiris Juice: Windows RUN Commands.

microsoft/windows/runcommands.txt · Last modified: 2012/02/16 18:03 by bas

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki