Tuesday, 30 May 2017

Using DiskPart to change read-only settings

You can use the Windows DiskPart command line utility to enable or disable read-only mode on your removable disk.
  1. Press Win+R to open the Run box. Type diskpart and press enter.
Running diskpart from the Windows run box
  1. If you receive a User Account Control prompt asking you for permission to continue, click Yes.
  2. At the DISKPART> prompt, type list disk and press enter.
Using Windows diskpart to list disks
From the size of the disk, you should be able to figure out which one is your removable disk. In this example, we know that Disk 1 is our removable USB thumbdrive because its size is listed as 14 GB.
  1. Select your removable disk with the select disk command. This tells the diskpart utility which disk it should change. In this example, we want disk 1, so the command is select disk 1.
Using Windows diskpart to select disk
  1. You can list the attributes of the disk with the command attributes disk.
Using Windows diskpart to list disk attributes
  1. To clear the read-only attribute (making the disk writable), use the command attributes disk clear readonly.
Using Windows diskpart to clear the readonly attribute
Or, to set the read-only attribute (making the disk write-protected), use the command attributes disk set readonly.
Using Windows diskpart to set the readonly attribute
  1. When you are finished, type exit to quit the program.

Friday, 10 March 2017

Creating Virtual Hard Disks

Applies To: Windows 7, Windows Server 2008 R2

For IT professionals who are getting started with using virtual hard disks (VHDs), this topic describes some of the basic operations that you can perform including creating .vhd files and attaching them so they appear as a disk on the computer. You can perform these operations by using the Disk Management MMC snap-in and the DiskPart command line tool.
In this topic:
For information about more advanced tasks that you can perform to modify VHDs, see Servicing and Backing Up Virtual Hard Disks.

Using Disk Management

This section explains how to use the Disk Management MMC snap-in to perform the following operations:

  • Create a new .vhd file by using the available disk space on the computer, and then save it to the location that you specify.
  • Attach (sometimes referred to as “mounts” or “surfaces”) the .vhd file so that it shows up as a disk and assigns it a drive letter.
  • Detach (sometimes referred to as “unmounts” or “unsurfaces”) the .vhd file and unassigns a drive letter.

To create and attach a VHD file by using Disk Management

  1. Open Disk Management (click Start, type diskmgmt.msc in the Search box, and then press ENTER).
  2. Select Create VHD from the Action menu. This launches a dialog box that you can use to specify the following settings for the VHD:
    • Location: This is the location and file name where the new VHD will be saved when it is created. For example: E:\test.vhd.
    • Virtual hard disk size: This is the size of the VHD. Note that if you create a dynamically expanding VHD, the virtual hard disk size is the maximum size the VHD will expand to.
    • Virtual hard disk format: This is the format of the VHD: dynamically expanding or fixed. Note that when you create a dynamically expanding VHD, Windows does not test for free space on the physical computer based on the maximum size requested. Therefore it is possible to create a dynamically expanding VHD with a maximum size that is larger than the available free space on the hard disk drive of the physical computer. The maximum size of a dynamically expanding VHD is 2,040 GB.
    5e0f9f84-3ff0-483a-b5c1-cb5753d37081
  3. Click OK to create the VHD. After it is created, the VHD is attached and it appears as an uninitialized disk.
    c557a8f9-8d7a-4aca-84c0-0e90b5981622
  4. To initialize the disk, right-click the disk name in the Disk Management pane and click Initialize Disk. (In the previous example, you would right-click the area that says Disk 3.)
  5. Click OK to confirm that you want to initialize the disk.
  6. After the VHD is initialized, you can treat the VHD as any other disk, including creating new volumes, formatting volumes, and assigning drive letters to volumes within the VHD. For example, right-click the unallocated space and click New Simple Volume. Follow the instructions in the New Simple Volume Wizard to select the volume size, drive letter, format, and disk block size.
  7. Optionally, you can detach the VHD so that it no longer shows up as a disk. You should always detach VHDs prior to restarting the operating system to prevent data corruption. To do this, right-click the disk name, and then click Detach VHD.
Alternatively, if you have an existing .vhd file that you want to attach as a disk, use the following procedure.

To attach an existing VHD by using Disk Management

  1. Select Attach VHD from the Action menu.
  2. Enter the path to the .vhd file and specify whether it should be attached as a read-only disk.
      
    00e19af2-4e21-43fd-a966-662cae2af7d5
      
  3. Click OK. After the VHD is attached, you can treat it as any other disk. For example, you can create new volumes, format volumes, and assign drive letters to volumes within the VHD. Additionally you can browse existing volumes within the VHD.
  4. To detach the VHD, right-click the disk name, and then click Detach VHD.

Using DiskPart

If you prefer to work from the command line, you can use the DiskPart command-line tool to perform these operations. For more information about DiskPart commands, see DiskPart (http://go.microsoft.com/fwlink/?LinkId=128458).
The following procedure provides an example for how to create and configure a VHD by using DiskPart.

To create and configure a VHD

  1. To start the DiskPart command interpreter, open an elevated Command Prompt window (click Start, right-click Command Prompt, and click Run as administrator) and type:
    diskpart
    
  2. To create a new 2 GB dynamically expanding .vhd file (called Test.vhd) and save it to the C:\vhd folder, type the following command. If you do not specify the type=expandable parameter, DiskPart will create a fixed VHD. For more information about the syntax of this command, see Create vdisk (http://go.microsoft.com/fwlink/?LinkID=205510).
    create vdisk file=c:\vhd\test.vhd maximum=2000 type=expandable
    
    noteNote
    Another type of VHD that you can create with Diskpart is a differencing VHD. A differencing VHD (sometimes referred to as a “child” VHD) is similar to a dynamically expanding VHD, but it contains only the modified disk blocks of the associated parent VHD. The parent VHD is read-only, so you must modify the child VHD. To create a differencing VHD, use the parent command. For example, to create a differencing VHD (called Child.vhd) that is the child of Test.vhd, type: create vdisk file=”c:\vhd\child.vhd” parent=”c:\vhd\test.vhd”.
  3. To view the .vhd file that you just created, type:
    list vdisk
    
  4. To attach the VHD, type:
    attach vdisk
    
  5. Optionally, to view information about the VHD, type:
    detail vdisk
    
  6. To create a 1 GB primary partition inside the new VHD, type:
    create partition primary size=1000
    
    
  7. To format the partition, type:
    format fs=ntfs label=”test volume” quick
    
    
  8. To assign the drive letter M, type:
    assign letter=m
    
  9. Optionally, you can detach the VHD so that it no longer shows up as a disk. You should always detach VHDs prior to restarting the operating system to prevent data corruption. To do this, first select the file that you want to detach (select vdisk file="c:\vhd\test.vhd"), and then type detach vdisk.
Additionally, you can perform the following operations by using DiskPart:
  • Expand the size of a VHD. To expand the maximum size available in a VHD, first ensure that the VHD is detached. Then, select it (type select vdisk file=<full path>), and then type expand vdisk maximum=<new size>. For example, expand vdisk maximum=3000 will expand a VHD to be 3 GB. To view information about the VHD, type detail vdisk.
  • Extend a volume within a VHD. You can extend a volume within a VHD into free unallocated space within the VHD. To do this, ensure that the VHD is attached. Then select the volume that you want to extend (for example, type select volume=<drive letter>), and then type extend size=<increase size>. For example, extend size=1000 will increase the size of a partition by 1 GB. For more information about the syntax of this command, see Extend (http://go.microsoft.com/fwlink/?LinkId=204232).
  • Compact a dynamically expanding VHD. Reducing the size of dynamically expanding VHDs is useful because these files increase in size as you add files, but they do not automatically reduce in size when you delete files. To compact a dynamically expanding VHD, first ensure that the VHD is either detached or attached as read-only. Then select the VHD (type select vdisk file=<full path>), and type compact vdisk.

    To view information about the size of the VHD, type detail vdisk. For dynamically expanding VHDs, the virtual size is the maximum size of the VHD (specified when you created the VHD), and the physical size is the actual size. For fixed VHDs, these values are the same.
  • Merge a differencing VHD. To merge a differencing VHD with its parent VHD, first ensure that the differencing VHD is detached. Then select the VHD (type select vdisk file=<full path>), and type Merge vdisk depth=1. Note that Depth=1 indicates that one level of the differencing chain will be merged. If you specify a number larger than 1, the VHD must have a differencing chain that is more than 2. For more information about the syntax of the Merge parameter, see Merge vdisk (http://go.microsoft.com/fwlink/?LinkId=204233)

Tuesday, 7 March 2017


How to Start Windows 10, 8(.1), 7 or XP in Safe Mode


Safe Mode is a special diagnostic mode in which Windows runs with the minimum amount of features. As the features are limited, Windows does not load unnecessary startup items and runs only those files and drivers that are necessary for the basic functioning of the operating system. This allows users to remove recently installed programs that might be preventing Windows from starting correctly. As Windows does not start unnecessary programs while in Safe Mode, it can also be used to remove viruses and malware without risking the infection getting worse.

Start Safe mode WindowsThere are different ways in which you can get into the Safe Mode in Windows. They depend on the version of Windows you are using.

In this article:

1. Steps for Windows 10, Windows 8 and Windows 8.1 users

2. Steps for Windows 7, Windows Vista, Windows XP and previous versions

3. Force Windows to start in Safe mode

4. Which Safe Mode option should you choose?

Windows 10, Windows 8 and Windows 8.1


The F8 key method does not work on Windows 10, Windows 8 and 8.1. Hence, getting onto Safe Mode requires the following steps:-

If your PC is working properly:

1) On the Windows Start Screen/Menu, type Advanced.
2) Click on Advanced startup options.
3) Under the Advanced Startup heading at the bottom of the General Settings screen, click on Restart now.
4) Your computer will restart and you will be taken to the Advanced Startup Options menu. To easily reach this menu, on Windows start screen, you could choose restart while holding the Shift key.
5) Click on Troubleshoot and then on the Advanced Options button.
6) Now, click on Startup Settings.
7) At the Startup Settings Screen, click on Restart.
8) Your computer will restart to Advanced Boot options from where you can choose a Safe mode option based on your need.Windows Safe mode

Windows Safe mode

You can also force Windows to start in Safe mode.

If your PC is not working properly:

Windows monitors your PC's startup for problems and when an error is detected, it automatically takes you to the new Recovery mode with the message "Recovery. It looks like Windows didn't load correctly." In this case:-

1) Select Advanced Repair Options and then click on Troubleshoot.
2) Click on the Advanced Options button.
3) Now click on Startup Settings.
4) At the Startup Settings Screen, click on Restart.
5) Your computer will restart to Advance Boot Options from where you can choose a Safe mode option based on your need.

Windows 7, Windows Vista, Windows XP and Previous versions


If you are using these versions of Windows, you can try the following methods.


The Trusted F8 key method

1) Restart your computer if it is on.
2) Right before the system starts to boot, start tapping the F8 key continuously.
3) This should load the Windows Advanced Options boot menu.
4) Select a Safe Mode option based on your need using the arrow keys and press Enter.
5) Windows will start in Safe mode. To get out of Safe mode, simply restart your computer.

This method should work on Windows 7, Windows Vista, Windows XP, Windows 2003 and Windows ME. However, if it does not, you can always force Windows to boot in Safe Mode if your computer is working "properly".


Faulty Startup Method

If the F8 key method does not take you to the Advanced options boot menu, you could try turning your computer off when it boots into Windows. Upon next restart, Windows will notice that the computer did not boot successfully and take you to the Advanced Options boot menu. Then, select a Safe mode option based on your need. This method is risky and should only be tried as a last resort. It could result in some of your files being deleted which could make your Windows installation unusable.


Force Windows to restart in Safe Mode using the System Configuration Utility


Most users looking to boot Windows in safe mode will have a computer that is not working properly. Unfortunately, this method will not help them as it requires the user to have a working computer.

Start Windows in Safe mode
Start Windows in Safe mode


Steps:
1) Press Windows key+R to load the Run dialog box.
2) Type msconfig and press Enter.
3) This will start the System Configuration Utility.
4) On Windows 10, Windows 8, Windows 7 and Windows Vista, go to the Boot tab and tick Safe Boot. On Windows XP, go to the BOOT.INI tab and tick /SAFEBOOT.
5) Click OK.
6) Click on Restart in the following dialog box to boot into Safe Mode.
7) To start your computer normally, untick the Safe Boot option in the System Configuration Utility.

Your computer will restart in Safe mode.

Different Safe Mode Options. Which to choose?


These are the various safe mode options available in Windows. You can choose one based on the features you require.



Safe Mode

This is safe mode in its most basic form without any extra features. It is useful for troubleshooting most common problems .

Safe Mode with Networking

This offers additional support of connecting to the internet or any other network. This is useful when your PC has a problem which might require you to frequently use the internet to troubleshoot.

Safe Mode with Command Prompt

This option will allow you to use all the unique features of the Windows command prompt while in Safe mode.

Thursday, 23 February 2017

THRUSDAY, 24 FEBRUARY 2017

THRUSDAY, 24 FEBRUARY 2017


How To Break Windows 7 Password Without Any Third Party Software/USB Media...

विंडोज ७ का पासवर्ड कैसे तोड़े बिना किसी टूल्स के उपयोग से.… 

स्टेप १ :- सबसे पहले उस मशीन को रीस्टार्ट करेंगे जिसका पासवर्ड ब्रेक करना है।
स्टेप २ :- जब मशीन स्टार्टिंग विंडोज स्क्रीन पर पहुंचे तो तुरंत मशीन के पावर बटन को दबाएं जैसा की निचे के चित्र में दिखाया गया है.
फिर से मशीन को रीस्टार्ट करेंगे तो एक Launch Startup Repair ऑप्शन दिखाई देगा
Launch Startup Repair पर एंटर करने के बाद ऑपरेटिंग सिस्टम लोडिंग स्क्रीन आयेगा.
इस विंडो के बाद स्टार्टअप रिपेयर विंडो ओपन होगा।
स्टेप ३ :- यहाँ पर आप View Problems Details लिंक पर क्लिक करेंगे तो निचे एक और लिंक नोटपैड फाइल का आयेगा.
उस लिंक पर क्लिक करते ही नोटपैड ओपन हो जायेगा जिसके फाइल मेनू से आप ओपन कमांड से  Computer के ड्राइव पर जा सकते है.

स्टेप ४ :- यहाँ से आप  उस ड्राइव पर जायेंगे जिसमे आपका विंडोज ७ इनस्टॉल है.
स्टेप ५ :- Windows Drive के अंदर System32 Directory होती है.

स्टेप ६ :- निचे Files of Type Box से All Files select करेंगे.
स्टेप ७ :- फिर उस विंडोज  में से Sethc  file को सर्च करेंगे.
स्टेप ८ :- फिर Sethc file को rename करके King करेंगे।
स्टेप ९ :- फिर cmd file को rename करके sethc करेंगे।
और मशीन को रीस्टार्ट कर लेंगे।






स्टेप १० :- और Login Screen पर पांच बार Shift दबाएंगे तो तुरंत कमांड प्रांप्ट ओपन हो जाएगा। 


स्टेप ११ :- और यहाँ पर आप net user command को उपयोग करके किसी भी यूजर अकाउंट का पासवर्ड ब्रेक कर सकते है. 

Command                                                                                           Action

net user                                                                                          See users list
net user username password                                                         Change user password
net user username /active:yes                                                       Enable user account
net localgroup administrators username /add                               To move user in admin groups.