Advertise with me..................................

Your Ads Here..................................

Just for my note..................................

You can read but don't do negative..................................

You get +, then don't do - ..................................

Showing posts with label windows7. Show all posts
Showing posts with label windows7. Show all posts

How to Fix ‘File Path Too Long’ Error

9:13:00 PM | , , , , , ,


How to Fix ‘File Path Too Long’ Error While Copying, Deleting or Opening Files, Without Using Third Party Applications
Here I Fix ‘File Path Too Long’ Error While Copying, Deleting or Opening Files. ‘File Path Too Long’ Error is an error that when you try to copy something. So, it happens when you copy any file and then just try to paste it. This error stops you from the copying process and you can’t complete the process. This happens due to the pre-defined character limit and beyond this limit you cannot name any file or other stuffs. Mostly the character range is 256-260 characters. The important thing is that the character limit is for the file path and the file paths are too long if the file is too deep behind the folders and folders and hence the error occurs. Now lets see the solution to this error.

Step 1:

The first easy thing is that you just shorten the file and the folder names coming along the path to reduce the characters length.

Step 2:

Now open the command prompt and type the below command:
subst J: “the file path you want to shorten”
In above command in place of “J” you can write any drive letter.

Step 3:

Now open the J drive and just copy the data from there.
Note: Now to remove the new drive J just type subst J: /d in command prompt.
That’s it.

==================
Why does it come?
There is a pre-defined character limit beyond which you cannot name a file or folder, and it varies from one OS to another. Mostly it varies between 256 and 260 characters. This is the character limit for a file name, which excludes the file path under which it is located, like “C:\Documents and Settings\Test User\Desktop\test file.txt”. But, when you copy a file from one location, it takes into account the entire file path. So, if the file is residing under a folder which is too deep or too long, that has a length beyond the set-limit, you will get errors like the ones shown above.
How do I know that the file path length is causing the issue?
  • One way you will know is definitely from the error messages similar to the ones above which clearly mentions the problem.
  • Some other times, it won’t. You will simply get a message saying ‘Cannot Copy’ in the title.
  • Or, some other times, the files won’t open properly. They would open and close instantly without giving any errors.
  • Also when you right-click such files, the number of options available in the right-click menu would also be limited compared to other files.
Error 4
All these are caused by those incredibly long file paths.
So, how can I copy the files or fix this issue?
There are a couple of ways you can fix this easily without the use of any 3rd party applications.
  1. Check the folder path, and shorten some of the folder names in between thereby reducing the file path length. You don’t necessarily need to put the folder name as ‘Mission Impossible Three’ when you can still recognize it as ‘MI 3.’
  2. The main thing many people miss when they save a file or folder their Desktop is that the actual path to that folder in desktop is either ‘C:\Documents and Settings\%username%\Desktop’ or ‘C:\Users\%username%\Desktop’ depending on your OS. So as you can see, its already longer than you thought it is. Go to Start — Run and type ‘cmd‘ and press OK, or click start/press windows key and type ‘Command Prompt‘. Once in the command prompt window, type the following command :
subst V: “C:\TheRidiculouslyLongFolderNameWhichYouDontNeedAtAll” ,
where
subst = substitute command
V = a drive letter of my choice, you can select your own.
C:\TheRidiculouslyLongFolderNameWhichYouDontNeedAtAll = the file path you want to shorten. Change it according to your situation.
Error Fix Command
So, basically this command would convert the entire folder path you provide in the command, into a single temporary drive letter, like V in this case, which gets created in My Computer. Now all you need to do is, go to the My Computer, and open the V drive, and copy the data from there.
After the Fix to File Path Error
Note : To remove the new drive from My Computer, go to Command Prompt again and type subst V: /d
Read More

HDMI Output Problems in Windows

1:24:00 PM | , , , , ,

If you upgrade/downgrade your system and getting trouble with your HDMI output,

Rollback to the older driver

Open Device Manager and find the driver that is giving you trouble.
Right click it and choose Rollback driver to install the previous version of the driver.

Sometimes, it’s better to use the default driver than the newer version of driver. (sometimes, your system do not support newer of latest driver.) 

To use the default driver you’ll need to uninstall the current one you’re using and the default one will install itself. To uninstall the driver, do this:
  1) Open Device manager and find the buggy driver.
  2) Right click it and choose Uninstall.
  3) Check Delete the driver software for this device and click OK.
  4) Restart your computer.

(or)

Sometimes, your driver is getting old and you need to update a newer or latest version.

Read More

Network reset with commands prompt - Windows 7

7:37:00 AM | ,

The following is a list of the Netsh commands you can use to reset your Windows 7 network adapter:
Restores the Windows Firewall with Advanced Security policy to the default policy. The current active policy can be optionally exported to a specified file. In a Group Policy object, this command returns all settings to notconfigured and deletes all connection security and firewall rules.netsh advfirewall reset
Resets the BranchCache service. Flushes the local cache. Every configuration parameter of BranchCache will be reset to its default value.netsh branchcache reset
Resets TCP/IP and related components to a clean state.netsh int ip reset c:\resetlog.txt
Resets IPv6 configuration state.netsh int ipv6 reset
Resets Winsock Catalog to a clean state. All Winsock Layered Service Providers which were previously installed must be reinstalled. This command does not affect Winsock Name Space Provider entries.netsh winsock reset
Read More

Windows 7 Command Prompt Commands

11:42:00 AM | , ,

An A-Z Index of the Windows CMD command line

   ADDUSERS Add or list users to/from a CSV file
   ADmodcmd Active Directory Bulk Modify
   ARP      Address Resolution Protocol
   ASSOC    Change file extension associations•
   ASSOCIAT One step file association
   AT       Schedule a command to run at a specific time
   ATTRIB   Change file attributes
b
   BCDBOOT  Create or repair a system partition
   BCDEDIT  Manage Boot Configuration Data
   BITSADMIN Background Intelligent Transfer Service
   BOOTCFG  Edit Windows boot settings
   BROWSTAT Get domain, browser and PDC info
c
   CACLS    Change file permissions
   CALL     Call one batch program from another•
   CERTREQ  Request certificate from a certification authority
   CERTUTIL Utility for certification authority (CA) files and services
   CD       Change Directory - move to a specific Folder•
   CHANGE   Change Terminal Server Session properties
   CHKDSK   Check Disk - check and repair disk problems
   CHKNTFS  Check the NTFS file system
   CHOICE   Accept keyboard input to a batch file
   CIPHER   Encrypt or Decrypt files/folders
   CleanMgr Automated cleanup of Temp files, recycle bin
   CLIP     Copy STDIN to the Windows clipboard
   CLS      Clear the screen•
   CMD      Start a new CMD shell
   CMDKEY   Manage stored usernames/passwords
   COLOR    Change colors of the CMD window•
   COMP     Compare the contents of two files or sets of files
   COMPACT  Compress files or folders on an NTFS partition
   COMPRESS Compress one or more files
   CONVERT  Convert a FAT drive to NTFS
   COPY     Copy one or more files to another location•
   Coreinfo Show the mapping between logical & physical processors
   CSCcmd   Client-side caching (Offline Files)
   CSVDE    Import or Export Active Directory data 
d
   DATE     Display or set the date•
   DEFRAG   Defragment hard drive
   DEL      Delete one or more files•
   DELPROF  Delete user profiles
   DELTREE  Delete a folder and all subfolders
   DevCon   Device Manager Command Line Utility 
   DIR      Display a list of files and folders•
   DIRQUOTA File Server Resource Manager Disk quotas
   DIRUSE   Display disk usage
   DISKPART Disk Administration
   DISKSHADOW Volume Shadow Copy Service
   DISKUSE  Show the space used in folders
   DOSKEY   Edit command line, recall commands, and create macros
   DriverQuery Display installed device drivers
   DSACLs   Active Directory ACLs
   DSAdd    Add items to active directory (user group computer) 
   DSGet    View items in active directory (user group computer)
   DSQuery  Search for items in active directory (user group computer)
   DSMod    Modify items in active directory (user group computer)
   DSMove   Move an Active directory Object
   DSRM     Remove items from Active Directory
e
   ECHO     Display message on screen•
   ENDLOCAL End localisation of environment changes in a batch file•
   ERASE    Delete one or more files•
   EVENTCREATE Add a message to the Windows event log
   EXIT     Quit the current script/routine and set an errorlevel•
   EXPAND   Uncompress CAB files
   EXTRACT  Uncompress CAB files
f
   FC       Compare two files
   FIND     Search for a text string in a file
   FINDSTR  Search for strings in files
   FOR /F   Loop command: against a set of files•
   FOR /F   Loop command: against the results of another command•
   FOR      Loop command: all options Files, Directory, List•
   FORFILES Batch process multiple files
   FORMAT   Format a disk
   FREEDISK Check free disk space
   FSUTIL   File and Volume utilities
   FTP      File Transfer Protocol
   FTYPE    File extension file type associations•
g
   GETMAC   Display the Media Access Control (MAC) address
   GOTO     Direct a batch program to jump to a labelled line•
   GPRESULT Display Resultant Set of Policy information
   GPUPDATE Update Group Policy settings
h
   HELP     Online Help
   HOSTNAME Display the host name of the computer
i
   iCACLS   Change file and folder permissions
   IEXPRESS Create a self extracting ZIP file archive
   IF       Conditionally perform a command•
   IFMEMBER Is the current user a member of a group
   IPCONFIG Configure IP
   INUSE    Replace files that are in use by the OS
l
   LABEL    Edit a disk label
   LOGMAN   Manage Performance Monitor logs
   LOGOFF   Log a user off
   LOGTIME  Log the date and time in a file
m
   MAKECAB  Create .CAB files
   MAPISEND Send email from the command line
   MBSAcli  Baseline Security Analyzer
   MEM      Display memory usage
   MD       Create new folders•
   MKLINK   Create a symbolic link (linkd) •
   MODE     Configure a system device COM/LPT/CON
   MORE     Display output, one screen at a time
   MOUNTVOL Manage a volume mount point
   MOVE     Move files from one folder to another•
   MOVEUSER Move a user from one domain to another
   MSG      Send a message
   MSIEXEC  Microsoft Windows Installer
   MSINFO32 System Information
   MSTSC    Terminal Server Connection (Remote Desktop Protocol)
n
   NET      Manage network resources
   NETDOM   Domain Manager
   NETSH    Configure Network Interfaces, Windows Firewall & Remote access
   NBTSTAT  Display networking statistics (NetBIOS over TCP/IP)
   NETSTAT  Display networking statistics (TCP/IP)
   NLSINFO  Display locale information (reskit).
   NLTEST   Network Location Test (AD)
   NOW      Display the current Date and Time 
   NSLOOKUP Name server lookup
   NTBACKUP Backup folders to tape
   NTDSUtil Active Directory Domain Services management
   NTRIGHTS Edit user account rights
   NVSPBIND Modify network bindings
o
   OPENFILES Query or display open files
p
   PATH     Display or set a search path for executable files•
   PATHPING Trace route plus network latency and packet loss
   PAUSE    Suspend processing of a batch file and display a message•
   PERMS    Show permissions for a user
   PERFMON  Performance Monitor
   PING     Test a network connection
   POPD     Return to a previous directory saved by PUSHD•
   PORTQRY  Display the status of ports and services
   POWERCFG Configure power settings
   PRINT    Print a text file
   PRINTBRM Print queue Backup/Recovery
   PRNCNFG  Configure or rename a printer
   PRNMNGR  Add, delete, list printers and printer connections
   ProcDump Monitor an application for CPU spikes
   PROMPT   Change the command prompt•
   PsExec     Execute process remotely
   PsFile     Show files opened remotely
   PsGetSid   Display the SID of a computer or a user
   PsInfo     List information about a system
   PsKill     Kill processes by name or process ID
   PsList     List detailed information about processes
   PsLoggedOn Who's logged on (locally or via resource sharing)
   PsLogList  Event log records
   PsPasswd   Change account password
   PsPing     Measure network performance
   PsService  View and control services
   PsShutdown Shutdown or reboot a computer
   PsSuspend  Suspend processes
   PUSHD    Save and then change the current directory•
q
   QGREP    Search file(s) for lines that match a given pattern
   Query Process / QPROCESS  Display processes
   Query Session / QWinsta   Display all sessions (TS/Remote Desktop)
   Query TermServer /QAppSrv List all servers (TS/Remote Desktop)
   Query User    / QUSER     Display user sessions (TS/Remote Desktop)
r
   RASDIAL  Manage RAS connections
   RASPHONE Manage RAS connections
   RECOVER  Recover a damaged file from a defective disk
   REG      Registry: Read, Set, Export, Delete keys and values
   REGEDIT  Import or export registry settings
   REGSVR32 Register or unregister a DLL
   REGINI   Change Registry Permissions
   REM      Record comments (remarks) in a batch file•
   REN      Rename a file or files•
   REPLACE  Replace or update one file with another
   Reset Session  Delete a Remote Desktop Session
   RD       Delete folder(s)•
   RMTSHARE Share a folder or a printer
   ROBOCOPY Robust File and Folder Copy
   ROUTE    Manipulate network routing tables
   RUN      Start | RUN commands
   RUNAS    Execute a program under a different user account
   RUNDLL32 Run a DLL command (add/remove print connections)

s
   SC       Service Control
   SCHTASKS Schedule a command to run at a specific time
   SET      Display, set, or remove session environment variables•
   SETLOCAL Control the visibility of environment variables•
   SetSPN   Edit Service Principal Names
   SETX     Set environment variables
   SFC      System File Checker 
   SHARE    List or edit a file share or print share
   ShellRunAs Run a command under a different user account
   SHIFT    Shift the position of batch file parameters•
   SHORTCUT Create a windows shortcut (.LNK file)
   SHUTDOWN Shutdown the computer
   SLEEP    Wait for x seconds
   SLMGR    Software Licensing Management (Vista/2008)
   SORT     Sort input
   START    Start a program, command or batch file•
   STRINGS  Search for ANSI and UNICODE strings in binary files
   SUBINACL Edit file and folder Permissions, Ownership and Domain
   SUBST    Associate a path with a drive letter
   SYSMON   Monitor and log system activity to the Windows event log
   SYSTEMINFO List system configuration
t
   TAKEOWN  Take ownership of a file
   TASKLIST List running applications and services
   TASKKILL End a running process
   TELNET   Communicate with another host using the TELNET protocol
   TIME     Display or set the system time•
   TIMEOUT  Delay processing of a batch file
   TITLE    Set the window title for a CMD.EXE session•
   TLIST    Task list with full path
   TOUCH    Change file timestamps    
   TRACERT  Trace route to a remote host
   TREE     Graphical display of folder structure
   TSDISCON Disconnect a Remote Desktop Session
   TSKILL   End a running process
   TSSHUTDN Remotely shut down or reboot a terminal server
   TYPE     Display the contents of a text file•
   TypePerf Write performance data to a log file
   TZUTIL   Time Zone Utility
v
   VER      Display version information•
   VERIFY   Verify that files have been saved•
   VOL      Display a disk label•
w
   W32TM    Time Service
   WAITFOR  Wait for or send a signal
   WEVTUTIL Clear event logs, enable/disable/query logs
   WHERE    Locate and display files in a directory tree
   WHOAMI   Output the current UserName and domain
   WINDIFF  Compare the contents of two files or sets of files
   WINRM    Windows Remote Management
   WINRS    Windows Remote Shell
   WMIC     WMI Commands
   WUAUCLT  Windows Update
x
   XCACLS   Change file and folder permissions
   XCOPY    Copy files and folders
   ::       Comment / Remark•
Commands marked • are Internal commands only available within the CMD shell.
All other commands (not marked with •) are external commands.
External commands may be used under the CMD shell, PowerShell, or directly from START-RUN.   Technology Lists
Read More

Windows Host Process Rundll32 has stopped working

4:52:00 PM | , ,

Windows Host Process Rundll32 has stopped working
If you get this error message frequently, here are a few troubleshooting steps you may try:
1] First and foremost, ensure that your Windows is fully updated.
2] If you get the error when opening folders that contain video files, turn off thumbnails view and see if it helps:
Open Control Panel > Folder Options > Always show Icons, Never Thumbnails
3] Try to remember, when did this error start popping up.
Was it after installing a particular program? Was it after installing, say, Nero ? if yes try this:
Open Computer > System Drive > Program files > Common Files > Ahead > DSfilter. Rename “NeroVideoProc.ax” to say “1NeroVideoProc.ax”. Also rename “NeVideo.ax” to say “1NeVideo.ax”
Reboot.
Maybe you could update or uninstall Nero software and see if it helps.
4] The Intel ViiV software and the K-Lite Codec Pack too are known to cause this problem. If you have installed any of them, update them or uninstall them and see if it helps.
5] Follow these steps to try and find out, which software is causing this issue.
Run msconfig to open up the System Configuration Utility window. Click on Services, and check in the “Hide all Microsoft services” check box. Click on “Disable All” button.
Now click on “Startup” tab, and then click on “Disable All” button again. Press OK button and then “Restart” button on the following window.
Effectively, you have turned off all non-Microsoft services and start ups.
If the issue is resolved, open System Configuration Windows again and then enable all the services from Services tab and then check the issue after restarting the computer in the same way as mentioned above disabling one service at a time.
6] Turn off Data Execution Prevention and see if it helps. But remember that this is a security feature that is there to help protect your computer.
7] Run the Microsoft Windows File and Folder Troubleshooter and see if it helps.
This way, you will have to enable/disable services and start ups to narrow down on the culprit. Agreed, this is a lengthy and painfully boring process, but it will help you identify the culprit.
Read More

How to Fix DNS Server is not responding on Windows 7, 8

7:21:00 PM | , ,

When you try to connect to the Internet, the connection might fail when we run the Troubleshooter, and you might get this error: The device or resource (DNS server) is not responding. The exact error would be:
You computer appears to be correctly configured, but the device or resource (DNS server) is not responding.
11 FIX: DNS Server is not responding on Windows 7 | 8

DNS Server is not responding

In such a scenario, there are few things you could try to resolve it.
1.       First backup your Router settings and update the Firmware of your Router. Check the Router manual for more information
2.       Next thing is to change the DNS server address manually.
  • Go to Start and Click on Control Panel
  • Open up Network and Internet and go to the Network and Sharing Center.
  • Click on Change adapter settings

2 FIX: DNS Server is not responding on Windows 7 | 8
  • Now you’ll see the list of Network adapters select the Network adapter  that your using and right click on it and go to properties
31 600x379 FIX: DNS Server is not responding on Windows 7 | 8
  • Then Click on “Internet Protocol Version 4 (TCP/IPv4)”
  • You’ll see the Internet Protocol Properties
41 FIX: DNS Server is not responding on Windows 7 | 8
  • Select “Use the Following DNS server address:”
  • Enter the Preferred DNS address:   208.67.222.222
  • Enter the Alternative DNS address: 208.67.220.220
  • Then select on Validate settings upon exit.
511 FIX: DNS Server is not responding on Windows 7 | 8
  • Click OK, and then Close to finish.
3.       Now you have to enter the same DNS address in Router configuration as well refer the router manual for more information.
4.       Try to Install and Configure OpenDNS and see if that helps
5.       Next step is entering the Physical address in the Network adapter setting
  • Go to Start and type in CMD and Hit Enter
  • In command prompt type in IPCONFIG /ALL
  • Then look for your network adapter
51 600x194 FIX: DNS Server is not responding on Windows 7 | 8
  • Then right down the Physical address according to this screenshot it’s 78-DD-08-F1-DF-B0
  • Then go to Start and type in NCPA.CPL
  • Then Right Click on your Network adapter and go to Properties
61 FIX: DNS Server is not responding on Windows 7 | 8

  • Then select Configure

7 FIX: DNS Server is not responding on Windows 7 | 8
  • Then Click on Advance Tab and select Network address
  • Select the radial button Value
  • Type in the physical address you wrote down before
  • i.e. 78-DD-08-F1-DF-B0 (Remove the dashes when you type in i.e. 78DD08F1DFB0
  • Then Click Ok and Reboot the System.
6.       Next step is to look up your Network adapter model and go to the manufactures website and find the appropriate drivers and update the Drivers and see if that resolves your issue.
7.       Disable your Firewall settings completely and see if that blocks your connection.
Read More

How to fix Network problem: DNS server not detected?

9:56:00 PM | ,

For DNS server follow the below steps and check for any errors listed in event viewer–

a. Click Start. Type cmd in the Start Search box, and then press ENTER.

b. At the command prompt, type the following command, and then press ENTER:

ipconfig /flushdns (there is a space between ipconfig and / )

It will show the message successfully flushed the DNS resolver cache.
Read More

How to Repair Windows Errors?

4:48:00 PM | , , , , ,

Problem: If you do not maintain your PC on regular basis, many PC errors may occur such as windows crashes, slow performance and error messages. Regular PC usage, continue installing and uninstalling software, accumulates junk on your PC which badly affects Windows's smooth operation and performance.

Solution: In order to fix these errors and avoid them in future, it is recommended to use Windows Repair Tool regularly. Perform your routine Windows maintenance tasks easily and automatically with it and make PC stable and faster.
Download windows repair toolDownload Windows Repair Tool
Compatibility: Windows 8, 7,Vista, XP, ME, 2000 (32/64)
Download File Size: 4.1 MB, Download Time: 2sec on dsl, 2min on dial-up

Diagnose & Fix your PC problems in 3 simple steps:
1.Click here to download Windows repair tool.
2.Double click on the setup file and follow the on-screen instructions to install the product.
3.Run a Scan and fix the detected errors by clicking the "Fix All" button.
Download now
McAfee SECURE sites help keep you safe from identity theft, credit card fraud, spyware, spam, viruses and online scams

Windows Repair Tool helps:
This software is designed to diagnose your PC problems and repair them quickly. It scans your PC and finds the problems and effectively fixes them.
Read More

Why is my screen black when I start Windows 7?

12:15:00 AM | , ,

Video adapter problems are the most common cause of this issue.
Try the following troubleshooting procedures, in order. If the steps in the first procedure don't fix the problem, move on to the next procedure.

Reinstall your video driver

  1. Right-click the taskbar, and then click Start Task Manager.
  2. Click the Processes tab, click explorer.exe, and then click End Process.
  3. Click File, and then click New Task (Run).
  4. In the Open text box, enter explorer.exe, and then click OK.
  5. Click the Start button Picture of the Start button, enter device manager in the search box, and then, in the search results, click Device Manager.
  6. Double-click Display adapters, right-click your display device, click Update Driver Software, and then follow the steps in the wizard that appears.

Note

  • After the driver is reinstalled, you might need to restart your computer again to complete the installation. You might also need to adjust the screen resolution to its previous setting. For more info, see Change your screen resolution.
If these steps solved the problem, you're done. If not, go on to the next set of steps.

Check for registry issues

  1. Right-click the taskbar, and then click Start Task Manager.
  2. Click the Processes tab, click explorer.exe, and then click End Process.
  3. Click File, and then click New Task (Run)
    In the Open text box, enter explorer.exe, and then click OK.
  4. Click the Start button Picture of the Start button, enter regedit in the search box, and then, in the search results, click regedit.exe.
  5. Browse to the following registry key: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon
  6. Click to select the WinLogon key, and then, in the right pane, click Shell. The value of Shell in the Data column should be explorer.exe. If the value of Shell isn't explorer.exe, double-click Shell, and then, in the Value datatext field, enter explorer.exe, and then click OK.
  7. Close the registry editor, and then restart your PC.
If these steps solved the problem, you're done. If not, go on to the next set of steps.

Start the computer in safe mode and run System Restore

  1. Click the Start button Picture of the Start button, click the arrow next to Shut Down, and then click Restart.
  2. Do one of the following:
    • If your computer has a single operating system installed, press and hold the F8 key as your computer restarts. You must press F8 before the Windows logo appears. If the Windows logo appears, try again by waiting until the Windows logon prompt appears, and then shutting down and restarting your computer.
    • If your computer has more than one operating system, use the arrow keys to highlight the operating system you want to start in safe mode, and then press F8.
  3. On the Advanced Boot Options screen, use the arrow keys to highlight Safe Mode, and then press Enter.
  4. Log on to your computer with a user account that has administrator rights. When your computer is in safe mode, you'll see the words Safe Mode in the corners of your monitor.
  5. Click the Start button Picture of the Start button, type "system restore" in the search box, click System Restore, and then click Next. Administrator permission required If you're prompted for an administrator password or confirmation, type the password or provide confirmation.
  6. Choose a restore point when your PC worked as expected, click Next, and then click Finish.
  7. Restart your computer normally.
If these steps solve the problem, you're done. If not, try repeating the steps and selecting an older restore point (if one is available). If that still doesn't solve the problem, contact your computer manufacturer or technical support for further assistance.
Read More

Repair Missing or Corrupt Files with Command Prompt

1:32:00 AM | ,

Fix Missing or Corrupt Files When the Computer Won't Boot

In the Command Prompt window, use the sfc command with two additional parameters:/offbootdir and /offwindir.
The parameter /offbootdir is used to specify the boot partition - the partition that contains the boot files needed for booting Windows 7. The /offwindir parameter is designed to specify the location of the Windows 7 directory.
For example, I wanted to scan the drive that contains my operating system. On my computer it was D:. On most computers, it generally is C:. The directory where Windows 7 is installed on my computer is D:\Windows. On most computers, it generally is C:\Windows.
Therefore I need to type sfc /scannow /offbootdir=d:\ /offwindir=d:\windows and press Enter. The translation for this command is: scan the windows folder located on boot partition, in this case the D: partition, and fix missing or corrupt files.
Command Prompt
If any corrupt or missing files are found, they are repaired automatically.

Fix Missing or Corrupt Files When Your Computer Boots

When your computer boots, simply open the Command Prompt as administrator and type sfc /scannow. The /scannow parameter allows you to scan the integrity of all protected system files and repairs the problematic files when possible. In the picture below you can see how this command works.
Command Prompt
If any corrupt files are found, they are repaired automatically and a log file is created, generally found at this location: C:\Windows\Logs\CBS\CBS.log. The result of the command is displayed below.
Command Prompt
Read More

10 Windows 7 commands every administrator should know

1:26:00 AM | ,

1) System File Checker
Malicious software will often attempt to replace core system files with modified versions in an effort to take control of the system. The System File Checker can be used to verify the integrity of the Windows system files. If any of the files are found to be missing or corrupt, they will be replaced. You can run the System File Checker by using this command:
sfc /scannow
2) File Signature Verification
One way to verify the integrity of a system is to make sure that all the system files are digitally signed. You can accomplish this with the File Signature Verification tool. This tool is launched from the command line but uses a GUI interface. It will tell you which system files are signed and which aren’t. As a rule, all the system files should be digitally signed, although some hardware vendors don’t sign driver files. The command used to launch the File Signature Verification tool is:
sigverif
3) Driverquery

Incorrect device drivers can lead to any number of system problems. If you want to see which drivers are installed on a Windows 7 system, you can do so by running the driverquery tool. This simple command-line tool provides information about each driver that is being used. The command is:
driverquery
If you need a bit more information, you can append the -v switch. Another option is to append the -si switch, which causes the tool to display signature information for the drivers. Here’s how they look:
driverquery -vdriverquery -si
4) Nslookup
The nslookup tool can help you to verify that DNS name resolution is working correctly. When you run nslookup against a host name, the tool will show you how the name was resolved, as well as which DNS server was used during the lookup. This tool can be extremely helpful when troubleshooting problems related to legacy DNS records that still exist but that are no longer correct.

To use this tool, just enter the nslookup command, followed by the name of the host you want to resolve. For example:
nslookup dc1.contoso.com
5) Ping
Ping is probably the simplest of all diagnostic commands. It’s used to verify basic TCP/IP connectivity to a network host. To use it, simply enter the command, followed by the name or IP address of the host you want to test. For example:
ping 192.168.1.1
Keep in mind that this command will work only if Internet Control Message Protocol (ICMP) traffic is allowed to pass between the two machines. If at any point a firewall is blocking ICMP traffic, the ping will fail.

6) Pathping
Ping does a good job of telling you whether two machines can communicate with one another over TCP/IP, but if a ping does fail, you won’t receive any information regarding the nature of the failure. This is where the pathping utility comes in.

Pathping is designed for environments in which one or more routers exist between hosts. It sends a series of packets to each router that’s in the path to the destination host in an effort to determine whether the router is performing slowly or dropping packets. At its simplest, the syntax for pathping is identical to that of the ping command (although there are some optional switches you can use). The command looks like this:
pathping 192.168.1.1

7) Ipconfig
The ipconfig command is used to view or modify a computer’s IP addresses. For example, if you wanted to view a Windows 7 system’s full IP configuration, you could use the following command:
ipconfig /all

Assuming that the system has acquired its IP address from a DHCP server, you can use the ipconfig command to release and then renew the IP address. Doing so involves using the following commands:
ipconfig /releaseipconfig /renew
Another handy thing you can do with ipconfig is flush the DNS resolver cache. This can be helpful when a system is resolving DNS addresses incorrectly. You can flush the DNS cache by using this command:
ipconfig /flushdns
8) Repair-bde
If a drive that is encrypted with BitLocker has problems, you can sometimes recover the data using a utility called repair-bde. To use this command, you will need a destination drive to which the recovered data can be written, as well as your BitLocker recovery key or recovery password. The basic syntax for this command is:
repair-bde <source> <destination> -rk | rp <source>
You must specify the source drive, the destination drive, and either the rk (recovery key) or the rp (recovery password) switch, along with the path to the recovery key or the recovery password. Here are two examples of how to use this utility:
repair-bde c: d: -rk e:\recovery.bek
repair-bde c: d: -rp 111111-111111-111111-111111-111111-111111
9) Tasklist

The tasklist command is designed to provide information about the tasks that are running on a Windows 7 system. At its most basic, you can enter the following command:
tasklist
The tasklist command has numerous optional switches, but there are a couple I want to mention. One is the -m switch, which causes tasklist to display all the DLL modules associated with a task. The other is the -svc switch, which lists the services that support each task. Here’s how they look:
tasklist -m
tasklist -svc
10) Taskkill
The taskkill command terminates a task, either by name (which is referred to as the image name) or by process ID. The syntax for this command is simple. You must follow the taskkill command with -pid (process ID) or -im (image name) and the name or process ID of the task that you want to terminate. Here are two examples of how this command works:
taskkill -pid 4104
taskkill -im iexplore.exe
Read More