Updated: October 25, 2010
Applies To: Windows 7, Windows Server 2003, Windows Server 2003 R2, Windows Server 2008, Windows Server 2008 R2, Windows Vista
Alphabetical listing of commands:
The list of the return/exit codes and their respective meaning...
Please add them to the documentation (either in /? output and here)
Many thanks
C:\Users\danjam>verMicrosoft Windows [Version 6.1.7600]C:\Users\danjam>net use /?The syntax of this command is:NET USE[devicename | *] [\\computername\sharename[\volume] [password | *]] [/USER:[domainname\]username] [/USER:[dotted domain name\]username] [/USER:[username@dotted domain name] [/SMARTCARD] [/SAVECRED] [[/DELETE] | [/PERSISTENT:{YES | NO}]]NET USE {devicename | *} [password | *] /HOMENET USE [/PERSISTENT:{YES | NO}]C:\Users\danjam>net use P: \\fileman80\Private\danjam /persistent:yesThe command completed successfully.C:\Users\danjam>net /?The syntax of this command is:NET [ ACCOUNTS | COMPUTER | CONFIG | CONTINUE | FILE | GROUP | HELP | HELPMSG | LOCALGROUP | PAUSE | SESSION | SHARE | START | STATISTICS | STOP | TIME | USE | USER | VIEW ]C:\Users\danjam>
Microsoft (R) Windows (R) Resource Checker Version 6.0 Copyright (c) 2006 Microsoft Corporation. All rights reserved.Scans the integrity of all protected system files and replaces incorrect versions with correct Microsoft versions.
SFC [/SCANNOW] [/VERIFYONLY] [/SCANFILE=<file>] [/VERIFYFILE=<file>][/OFFWINDIR=<offline windows directory> /OFFBOOTDIR=<offline boot directory>]
/SCANNOW Scans integrity of all protected system files and repairs files withproblems when possible./VERIFYONLY Scans integrity of all protected system files. No repair operation isperformed./SCANFILE Scans integrity of the referenced file, repairs file if problems areidentified. Specify full path <file>/VERIFYFILE Verifies the integrity of the file with full path <file>. No repairoperation is performed./OFFBOOTDIR For offline repair specify the location of the offline boot directory/OFFWINDIR For offline repair specify the location of the offline windows directorye.g.
sfc /SCANNOWsfc /VERIFYFILE=c:\windows\system32\kernel32.dllsfc /SCANFILE=d:\windows\system32\kernel32.dll /OFFBOOTDIR=d:\ /OFFWINDIR=d:\windowssfc /VERIFYONLY