DiskPart has encountered an error

As you know, Diskpart is a useful utility that helps in managing the disks in a computer. It is a very useful tool that even when the GUI-based disk management tools in Windows 10 operating system fails, the Diskpart utility still tends to work. However, it also does not mean that this utility does not experience issues as it still does, from time to time. One of the issues you may encounter when using the Diskpart utility is when you encounter an error message that says, “DiskPart has encountered an error, Access is denied”.

This kind of error in the Diskpart utility could be caused by a number of factors. For one, it could be that the Write-Protection is enabled on the drive where the operating is being performed or it could also be that the Command Prompt terminal does not have administrator-level permissions to carry out the command. Thus, you can try to run the Diskpart utility again but this time with admin privileges or you could also remote the Write-Protection from the concerned drive. For more details, refer to the instructions given below.

Option 1 – Try running Command Prompt with Administrator-level permissions

  • In the Start Search, type “command prompt” and from the search results that appear, look for Command Prompt.
  • Once you found it, right-click on it and select the “Run as administrator” option.
  • After that, try to execute the Diskpart operation once again and see if you still encounter the same error.

Option 2 – Try to remove the Write Protection from the drive

As mentioned, removing the Write-Protection on the concerned drive could also help you fix the problem and there are two ways to get rid of the write protection – you can either use the Diskpart utility or the Registry Editor. How? Refer to the following steps.

Via Diskpart utility:

  • Open Command Prompt with admin privileges and then type the “diskpart” command and tap Enter to execute it.
  • Next, type “list disk” and tap Enter to get the list of all the Disk connects or all the partitions that are formed on those disks.
  • After that, you need to choose one command depending on the list of commands you entered. Type “select disk #” and tap Enter to select the disk or partition you want to select.
  • Then type “attribute disk clear readonly” and tap Enter to Disable the Write Protection on the selected disk or partition.

Via Registry Editor:

  • Tap the Win + R keys to open the Run utility and type “Regedit” in the field and then tap Enter to open the Registry Editor.
  • Next, navigate to the following registry key:

ComputerHKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlStorageDevicePolicies

  • After that, look for the DWORD named “WriteProtect” and double click on it, and then set its Value Data to “0”.
  • Now restart your computer and see if the problem is now fixed or not.

Do You Need Help with Your Device?

Our Team of Experts May Help
Troubleshoot.Tech Experts are There for You!
Replace damaged files
Restore performance
Free disk space
Remove Malware
Protects WEB browser
Remove Viruses
Stop PC freezing
GET HELP
Troubleshoot.Tech experts work with all versions of Microsoft Windows including Windows 11, with Android, Mac, and more.

Share this article:

You might also like

Step By Step Guide to Fixing Regsvr32.exe Error On Windows

What is Regsvr32.exe Error?

Regsvr32 (Microsoft Register Server) is a command-line utility in Microsoft Windows Operating System. This is used for registering and unregistering OLE controls such as ActiveX controls and DLLs in the Windows Registry. This is executed as Regsvr32.exe.  The filename extension .exe is the abbreviation for executable.   It is installed in the %systemroot%System32 folder in Windows XP and new Windows versions. The Regsvr32.exe is an error that occurs when you attempt to run Regsvr32.exe to register a 32 bit DLL (Dynamic Link Library) on a 64-bit version of Windows. The error message is displayed as the following:
  • Filename.dll is not an executable file and no registration helper is registered for this file type.
  • Unrecognized flag: /invalid_flag
  • No DLL name specified
  • Dll_Name is not an executable file and no registration helper is registered for this file type.
  • The module "%1" failed to load.

Solution

Restoro box imageError Causes

There are multiple causes for the Regsvr32.exe error code. These include:
  • Invalid entry (command) path
  • Active X control errors
  • Missing or Damaged .dll files
  • Viral infection (Trojans) (.exe can easily get infected by viruses)
  • Registry issues
If you come across the Regsvr32.exe error code, it is advisable to repair it immediately before the damage sets in. Since this may occur due to viral infection, it can pose privacy and data security risks to your PC.

Further Information and Manual Repair

Here are solutions that you can implement to resolve the Regsvr32.exe error code on your system:
  1. If an invalid entry point is the cause of the error, then simply open an elevated command prompt. If the 32-bit DLL is in the %systemroot%System32 folder, then move it to the %systemroot%SysWoW64 folder. After that run the following command: %systemroot%SysWoW64regsvr32 <full path of the DLL>. This will help resolve the Regsvr32.exe error.
  2. If the cause of the error is a viral infection, then you will need to run a powerful antivirus to detect and remove viruses from your system to resolve the Regsvr32.exe error on your system.
  3. Nonetheless, if the causes for Regsvr32.exe are either Active X controls or registry corruption, then you will need to scan your computer with different tools to resolve each issue separately.
This can be time-consuming and too many program installations at one time can also slow down your system’s performance. This means you’ll also have to compromise on your PC’s speed.

Repair Regsvr32.exe Error With Restoro

To avoid all this hassle yet repair the Regsvr32.exe error, download Restoro. This is a multi-functional and innovative PC repair tool deployed with multiple utilities in one program including features like a registry cleaner and an Active X controls error fixer. It also functions as a system optimizer. It is a one-stop solution for all your PC-related errors including the Regsvr32.dll error. It is safe, efficient, and user-friendly. It is compatible with all Windows versions. When the RAM overloads it leads to damaged dlls and registry corruption. The registry cleaner utility repairs the damaged dll files and the corrupt registry. It wipes out all the unnecessary files cluttering the RAM including the junk files, invalid registry entries, and temporary files. Restoro also has an Active X controls scanning utility. This utility can be of great use if the Regsvr32.exe error is triggered by Active X control-related issues. Click here to download Restoro and resolve Regsvr32.exe on your computer right away.
Read More
PrintNightmare returns Microsoft states
PrintNightmareA few days ago we celebrated fixing of months-long PrintNightmare vulnerability by Microsoft, sadly a new bug and issue have been found. Firstly discovered Microsoft stated:
A remote code execution vulnerability exists when the Windows Print Spooler service improperly performs privileged file operations. An attacker who successfully exploited this vulnerability could run arbitrary code with SYSTEM privileges. An attacker could then install programs; view, change, or delete data; or create new accounts with full user rights.
A few days ago, Microsoft officially released a patch that was supposed to finally fix it. As you might recall this vulnerability was present for quite some time, Microsoft's solution after a long struggle was to elevate certain privileges to administrator account only and remove user accounts from managing printers. It complicated things a little bit but it was stated payoff was worth it. The new issue now is that on a system that already had accounts created and set, old accounts still can hijack the system, patch issues address only accounts that are created after the fix is administrated, old ones can still do whatever they want. Once again of course Microsoft has stated that until it is again resolved you should again disable the Print Spooler service as a temporary workaround.
Read More
Change default audio output for Narrator
For PC users that are blind or have low vision, the Narrator accessibility feature in Windows 10, lets you use your PC without a display or mouse to complete common tasks – it reads and interacts with things on the screen, like text and buttons. The narrator can be used to read and write an email, browse the internet, and work with documents. In Windows 10, there are a lot of options for Narrator that you can customize. You can change its keyboard shortcuts, personalize Narrator’s voice, enable Caps Lock warnings, and more. You can choose the voice for the Narrator, adjust the speaking rate, pitch, and volume. To change the default audio output device used to play the voice of the Narrator in Windows 10:
  • Press the ⊞ WINDOWS + I
  • From the Settings menu, click Ease of Access.
  • Click Narrator on the left pane.
  • In the Narrator window, on the right pane, toggle the button to On to enable Narrator if required.
  • Scroll down to the Personalize Narrator’s voice section.
  • For the Select where you hear Narrator’s voice option, click the drop-down and select the audio output device you want from the list. Please know that you will not be able to choose if you do not have multiple audio output devices connected to your Windows 10 computer.
  • Exit Settings when done.
If you would like to read more helpful articles and tips about various software and hardware visit errortools.com daily.
Read More
Different types of computer viruses
Computer viruses are malicious applications that have the ability to self replicate and spread over the system and various devices, just like viruses in organisms. We all know that computer viruses are bad and that you should avoid them however you can. So in this spirit, we are taking a deeper dive into what kind of viruses exist and how they function.

viruses types1. File-infecting Virus

A virus that attached itself to an executable program. It is also called a parasitic virus which typically infects files with .exe or .com extensions. Some file infectors can overwrite host files and others can damage your hard drive’s formatting.

2. Macro Virus

This type of virus is commonly found in programs such as Microsoft Word or Excel. These viruses are usually stored as part of a document and can spread when the files are transmitted to other computers, often through email attachments.

3. Browser Hijacker

This virus targets and alters your browser setting. It is often called a browser redirect virus because it redirects your browser to other malicious websites that you don’t have any intention of visiting. This virus can pose other threats such as changing the default home page of your browser.

4. Web Scripting Virus

A very sneaky virus that targets popular websites. What this virus does is overwrite code on a website and insert links that can install malicious software on your device. Web scripting viruses can steal your cookies and use the information to post on your behalf on the infected website.

5. Boot Sector Virus

These viruses are once common back when computers are booted from floppy disks. Today, these viruses are found distributed in forms of physical media such as external hard drives or USB. If the computer is infected with a boot sector virus, it automatically loads into the memory enabling control of your computer.

6. Polymorphic Virus

This virus has the capability to evade anti-virus programs since it can change codes every time an infected file is performed.

7. Resident Virus

A resident virus stores itself on your computer’s memory which allows it to infect files on your computer. This virus can interfere with your operating system leading to file and program corruption.

8. Multipartite Virus

A type of virus that is very infectious and can easily spread on your computer system. It can infect multiple parts of a system including memory, files, and boot sector which makes it difficult to contain.
Read More
Windows 10 Power Toys detailed guide
Hello and welcome everyone, today we will be talking about power toys, a great, completely free, open-source, Microsoft-supported Windows project which aims to provide Windows itself with powerful features not found natively in it. We will explore power toys completely here and explain each module and its features. The first thing is of course to download power toys themselves. You can find them here. After you download them, double click on the downloaded file and install. Start power toys, you will find them at the bottom of the taskbar, note that power toys need to be active in order to use their features. power toysWhen opened you will be greeted with general settings window. These are settings for power toys themselves, Here you can check for updates, change the looks of power toys, run it on system startup and run them as administrator. Set them up so they best suit your needs.

Color Picker

Moving down next tab we have is Color picker. power toys colorpicker hex editorThe color picker will let you as the name suggests pick colors, it will sample colors from running applications and windows, snap their values, and place them in the clipboard. A useful application if you are working as a graphic designer, want to create some cool word document, or just want to compare the difference between colors. After the Color Picker is activated, hover your mouse cursor over the color you would like to copy and left-click the mouse button to select a color. If you want to see the area around your cursor in more detail, scroll up to zoom in. The copied color will be stored in your clipboard in the format that is configured in the settings (HEX by default). The editor lets you see the history of picked colors (up to 20) and copy their representation in any predefined string format. You can configure what color formats are visible in the editor, along with the order that they appear. This configuration can be found in PowerToys settings. The editor also allows you to fine-tune any picked color or get a new similar color. Editor previews different shades of currently selected color - 2 lighter and 2 darker ones. Clicking on any of those alternative color shades will add the selection to the history of picked colors (appears on the top of the colors history list). Color in the middle represents your currently selected color from the history of the colors. By clicking on it, the fine-tuning configuration control will appear, which will let you change the HUE or RGB values of the current color. Pressing OK will add newly configured color into the history of the colors.

Fancy Zones

Moving down, we have fancy zones. power toys fancy zonesFancyZones is a window manager utility for arranging and snapping windows into efficient layouts to improve the speed of your workflow and restore layouts quickly. FancyZones allows the user to define a set of window locations for a desktop that are drag targets for windows. When the user drags a window into a zone, the window is resized and repositioned to fill that zone. When first launched, the zones editor presents a list of layouts that can be adjusted by how many windows are on the monitor. Choosing a layout shows a preview of that layout on the monitor. The selected layout is applied automatically.

File Explorer

Next, File Explorer. power toys settings file explorerOnly 3 options here but maybe some are important to you. This extension lets you enable SVG file preview in File Explorer, enable Markdown preview, and enable SVG thumbnails. Turn on each one you might need.

Image Resize

Next down the line, we have Image resize. power toys image resizeImage Resizer is a Windows shell extension for bulk image-resizing. After installing PowerToys, right-click on one or more selected image files in File Explorer, and then select Resize pictures from the menu. You can specify your own sizes if you want, you can resize when dragging files, you can overwrite files or make new copies of new sizes, and many more options. A very useful tool I am sure plenty of users can use since this eliminates the need for pictures or any other image application for common resizing tasks.

Keyboard Manager

The keyboard manager is the next tab in power toys. power toys keyboard shortcutsThe PowerToys Keyboard Manager enables you to redefine keys on your keyboard. For example, you can exchange the letter A for the letter D on your keyboard. When you select the A key, a D will display. You can also exchange shortcut key combinations. For example, the shortcut key, Ctrl+C, will copy the text in Microsoft Word. With the PowerToys Keyboard Manager utility, you can exchange that shortcut for ⊞ Win+C). Now, ⊞ Win+C) will copy text. If you do not specify a targeted application in PowerToys Keyboard Manager, the shortcut exchange will be applied globally across Windows. PowerToys Keyboard Manager must be enabled (with PowerToys running in the background) for remapped keys and shortcuts to be applied. If PowerToys is not running, key remapping will no longer be applied.

Power Rename

Nex we have a very cool and powerful Power Rename power toys power renamePowerRename is a bulk renaming tool that enables you to:
  • Modify the file names of a large number of files (without renaming all of the files with the same name).
  • Perform a search and replace on a targeted section of file names.
  • Perform a regular expression rename on multiple files.
  • Check expected rename results in a preview window before finalizing a bulk rename.
  • Undo a rename operation after it is completed.

Run Utility

Power Toys Run utility follows next. power toys run warningPowerToys Run is a quick launcher for power users that contains some additional features without sacrificing performance. PowerToys Run features include:
  • Search for applications, folders, or files
  • Search for running processes (previously known as WindowWalker)
  • Clickable buttons with keyboard shortcuts (such as Open as the administrator or Open containing folder)
  • Invoke Shell Plugin using > (for example, > Shell:startup will open the Windows startup folder)
  • Do a simple calculation using the calculator

Shortcut Guide

Last but not least we have a Shortcut guide. power toys shortcut guide largeThis guide uses PowerToys to display common keyboard shortcuts that use the Windows ⊞ key. Windows key keyboard shortcuts can be used while the guide is being shown and the result of those shortcuts (active window moved, arrow shortcut behavior changes, etc) will be displayed in the guide. Releasing the Windows ⊞ key will make the overlay disappear. Tapping the Windows ⊞ key will display the Windows Start menu. Hey, you made it till the end, thank you for reading and I hope to see you soon.
Read More
How to Fix Windows 8 Error 0x80070490

Error Code  0x80070490 - What is it?

Error code 0x80070490 occurs in versions of Windows including Windows 8 or 8.1 and Windows 7 or Windows Vista. This error often arises when users attempt to install updates via Windows Update or Microsoft Update.

The main reason for the error relates to the Component-Based Servicing (CBS) manifest which has become damaged. When the error occurs, the Windows device is unable to successfully install updates.

Solution

Restoro box imageError Causes

Error code 0x80070490 might appear for various reasons but is most prominent in the following cases:

  • Attempts to install Windows 8 or 8.1
  • A corrupted Component-Based Servicing (CBS)

Further Information and Manual Repair

The solutions for error code 0x80070490 vary so users may need to attempt each solution to find the best results.

  1. Repair Corrupted Windows Files with System File Checker

The System File Checker (SFC.exe) is a Windows-based utility that enables users to check and repair corrupted or damaged system files. It can also restore missing systems files which can be the cause of errors such as error code 0x80070490.

To repair files, begin scan by swiping the right edge of the screen then opening the search box. Type Command Prompt, right-click this option, then select Run as Administrator. Once the scan begins, wait for the process to be completed then restart your device. Check if the error is resolved by reattempting updates. If error code 0x80070490 in Windows 8 or 8.1 persists on your device, proceed to the solution below.

  1. Perform Clean Boot

A clean boot is one of the best ways to reduce conflict among files – an issue that may arise whenever users update, install or run programs on their Windows device.

To run a clean boot, your device reboots using limited drives and programs. The process allows you to identify which conflict among programs is causing errors on your Windows device.

You can access the clean boot tool by entering msconfig in the search box. Select Services, then System Configuration. Check the Hide all Microsoft services checkbox then select Disable all. Next, go to the Startup tab, click and open Task Manager. After selecting the Startup tab, make sure you right-click each startup program. Click Disable from the context menu then close Task Manager when done. Select OK on the System Configuration menu then restart your machine to clean boot Windows 8 or 8.1.

If the clean boot successfully identifies and resolves issues with corrupted files, you will be able to access updates using Windows Update or Microsoft Update. Error code 0x80070490 will no longer occur. But if that proves unsuccessful, other options are available below including running Windows Update Troubleshooter.

  1. Run Windows Update Troubleshooter

This method can provide a simple solution for users as it verifies whether your Internet connection, network adapter and Windows Update services are functioning properly. However, if you are uncertain as to whether you will be able to troubleshoot, seek assistance from a qualified Microsoft technician.

To run Windows Update Troubleshooter, simply download from Microsoft’s website. Be sure you are downloading the tool recommended for your operating system, in this case Windows 8 or 8.1. After you download Windows Update Troubleshooter, run it to enable the tool to check for and resolve update issues on your device.

  1. Use DSIM or System Update Readiness Tool

The System Readiness Tool or DSIM is another method you can use to correct issues related to error code 0x80070490. This tool checks problems on your system that might prevent your computer from performing Windows updates including issues related to damaged system files.

Once you download and install this tool, it will be able to run automatically. The process may be technical, however, requiring specialized knowledge to successfully download and run the tool. Consider getting assistance from an IT professional in this case. Also, check Microsoft's online resources to download the tool.

  1. Use an Automated Tool

Having an automated tool at hand will enable users to always be prepared. Download a powerful automated utility tool to provide solutions whenever error codes or other problems affect your Windows 8 device.

Read More
How to Fix msrtn32.exe error or high CPU usage
If your Windows 10 computer slows down, the first thing you can do is to check the status of the resource usage in the Task Manager. In such cases, it shoots up to even 1000% which causes the system to either hang or freeze since some programs are using a major chunk of system resources. And this is the case with msrtn32.exe. Msrtn32.exe is a malicious file that may try to steal your digital currency. It can get installed on your computer when you install a browser plugin or extension that can modify the default settings of browsers, the content of web pages, search results, as well as display tons of intrusive ads. So if you see msrtn32.exe under the Processes tab of the Task Manager If you see msrtn32.exe under the Processes tab of your Task Manager, refer to the suggestions given below to get rid of it and restore your computer’s normal function. Before you proceed, take note that this executable file is found in the following location:
C:/Program Files(x86)msrtn32

Option 1 – Delete the folder where msrtn32.exe is located

The first thing you can do is to go to C:/Program Files(x86)/msrtn32. From there, look for the malicious executable file and delete its folder. If you are not able to delete the folder, make sure that you’re logged in as administrator and then try again.

Option 2 – Try scanning your computer using Windows Defender

Since you are dealing with a malicious file, if you weren’t able to delete the folder where the file is located, you can scan your computer using the built-in Windows Defender program and then eliminate the malicious file. Follow the steps below to do so:
  • Tap the Win + I keys to open Update & Security.
  • Then click on the Windows Security option and open Windows Defender Security Center.
  • Next, click on Virus & threat protection > Run a new advanced scan.
  • Now make sure that Full Scan is selected from the menu and then click the Scan Now button to get started.
Read More
How to Fix Tcpip.sys Blue Screen Error in Windows 10
If you have received a BSOD error message that says, “Tcpip.sys”, read on as this post will show you how you can fix the problem. The “Tcpip.sys” means Transmission Control Protocol over Internet Protocol. It is a library of a set of rules that are used to interconnect different devices all over the internet. The Tcpip.sys file is a driver and if a BSOD error message includes this one, it could only mean that the driver file is corrupted or incompatible with your system or there are some conflicting programs installed in your computer. To fix this error, you can try the following workarounds. Make sure to carefully follow each one of them.

Option 1 – Check for conflicting or incompatible programs by putting your PC in a Clean Boot state

As mentioned, the “tcpip.sys” BSOD error might be caused by some problematic programs that clash with your existing operating system. Several users reported that numerous programs that are supposedly designed to enhance computer performance are causing conflict in the system instead. To identify which program is causing the problem, you need to put your computer in a Clean Boot State. To do so, follow the steps below.
  • Log onto your PC as an administrator.
  • Type in MSConfig in the Start Search to open the System Configuration utility.
  • From there, go to the General tab and click “Selective startup”.
  • Clear the “Load Startup items” checkbox and make sure that the “Load System Services” and “Use Original boot configuration” options are checked.
  • Next, click the Services tab and select the “Hide All Microsoft Services” checkbox.
  • Click Disable all.
  • Click on Apply/OK and restart your PC. (This will put your PC into a Clean Boot State. And configure Windows to use the usual startup, just simply undo the changes.)
After putting your PC in a Clean Boot State, try creating a system restore point and see if the problem still occurs. Clean Boot troubleshooting is designed to help you isolate the problem. For you to execute a clean boot troubleshooting, you must do a couple of actions (the steps are given above) and then restart your PC after every action. You might have to disable one third-party app after the other to really isolate the issue. And once you’ve narrowed down the problem, you can either disable the third-party app that’s causing the problem or remove it. Note that you must switch your PC back into the Normal Startup mode after you’re done troubleshooting the problem. Here’s how you can do it:
  • From the “Start” menu, go to System Configuration.
  • After that, switch to the General tab and click the option for “Normal Startup”.
  • Next, go to the Services tab and clear the checkbox for “Hide all Microsoft services”.
  • Then find and click “Enable all” and if prompted, you have to confirm.
  • Afterward, go to the Task Manager and enable all the Startup programs and confirm the action.
  • Restart your PC when prompted.

Option 2 – Disabling Antivirus Software

There are cases when the “tcpip.sys” BSOD error is caused by the antivirus program installed in your computer that’s blocking some essential operations. Because of this, the operating system fails which throws up the BSOD error. As you know, the antivirus program is designed to protect the computer and monitor every action in the system. However, there are instances when the antivirus program gives false positives and shuts down some modules even if it’s harmless. So this could be the case for the “tcpip.sys” error. To verify if the problem is indeed caused by the antivirus program in your computer, you need to temporarily disable it. After you’ve disabled it, restart your PC and then check if the problem’s fixed or not.

Option 3 – Try to update all your Drivers

From time to time, drivers get corrupted or outdated so it’s no surprise that they conflict with the operating system and cause errors like the “tcpip.sys” BSOD error. To fix the problem, you need to update all your drivers especially the network driver since the “tcpip.sys” error is closely related to this driver. Follow the steps below to update your drivers.
  • Tap the Win + R keys to launch Run.
  • Type in devmgmt.msc into the box and tap Enter or click OK to open the Device Manager.
  • After that, a list of device drivers will be displayed. If you see a red or yellow sign that shows up against the driver, right-click on the driver’s name and select “Update Driver Software” or “Uninstall”. And if you find any “Unknown device”, you need to update it as well.
  • Select the “Search automatically for updated driver software” option and then follow the instructions to complete the process.
  • Restart your PC.
Note: You also have the option to go directly to the website of your graphics card manufacturer and check if there’s a new update – if there is, download it. After that, you could also check if there’s a new update of the game you’re getting the issue of the black bar.
Read More
How to Resolve “We couldn’t update system reserved partition” Error in Windows 10 Installation

We couldn’t update system reserved partition” - What is it?

Customers will most likely encounter the “We couldn’t update system reserved partition” error when upgrading to Windows 10 from Windows 7 or Windows 8.1. This error may also come with error code 0xc1900104 or error code 0x800f0922.

Solution

Restoro box imageError Cause

“We couldn’t update system reserved partition” Windows 10 upgrade error is normally caused by too little space on the System Reserved Partition (SRP). The System Reserve Partition is an additional small partition created by Windows, which stores boot files. The SRP can be filled up with security apps and third-party anti-virus. Once this partition has insufficient space, the system will not be able to upgrade to Windows 10.

Further Information and Manual Repair

Caution: The following steps are complex and need to be done by experienced users especially using the command line. Once an error is made in entering commands, there’s a chance that your device can be put in a no-boot situation, or data stored on the device can possibly get lost.

To upgrade to Windows 10, your device needs to have at least 15MB free space on the System Reserved Partition. Follow the procedure below and then try upgrading again.

First, know if the System Reserved Partition is whether in GPT or MBR partition style:

  1. Open the Run window by pressing the Windows key + R. Type msc in the window then press Enter.
  2. Right-click on the Disk where SRP is located then select
  3. Click over the Volumes
  4. On the Partition Style line, you’ll see which partition style your device is using, either Master Boot Record (MBR) or GUID Partition Table (GPT)

Second, determine which method you will need:

Depending on what partition style your device has and whether you’re currently on Windows 7 or Windows 8/8.1, there are various methods you need to do.

Method 1: Windows 7 or 8/8.1 with GPT partition

  1. Click on the Start button and search for cmd. In the results, right-click on Command Prompt then choose Run as administrator. The command prompt window will appear.
  2. Type mountvol y: /s at the command prompt then press Enter. This command will add the Y: drive letter where you can access the System Partition.
  3. Type taskkill /im explorer.exe /f then hit Enter. Afterward, restart explorer in Admin mode by typing exe and hitting Enter.

NOTE: While in Admin mode, some apps like OneNote will not run.

  1. Open File Explorer then type Y:EFIMicrosoftBoot in the address bar. Hit Enter.
  2. Choose the language folders you want to permanently delete. Language folders are named with four letters split with a hyphen. For instance, you want to delete the German language: choose de-DE.
  3. Optional: You can also delete unused font files for more space. Type Y:EFIMicrosoftBootFonts in the address bar then press enter.
  4. Once you permanently deleted the unnecessary files, reboot the device to return to explorer.exe to normal mode and remove the Y: drive letter.

Method 2: Windows 7 with MBR partition

Doing this method will make a permanent, but small increase in the free space of the device’s SRP.

  1. Delete language folders

a. Open the Run window by pressing the Windows key + R. Type diskmgmt.msc then hit Enter. b. Select System Reserve partition then right-click on it.

c. Choose Change Drive Letter and Paths then select Add.

d. Type Y for the drive letter then click OK.

e. Click on the Start button and search for cmd. In the results, right-click on Command Prompt then choose Run as administrator. The command prompt window will appear.

f. Type Y: at the command prompt then press Enter.

g. Once you’ve switched to drive Y, type takeown /d y /r /f . then hit Enter.

NOTE: Ensure that the space and period after “f” is included in order for the command to work properly      

h. Type icacls Y:* /save %systemdrive%NTFSp.txt /c /t then hit Enter to back up the permission to the drive.

NOTE: Ensure that all files are marked as successful and that no files are marked as failed.

i. Type whoami then hit Enter. Record the username that appears. Afterwards, type icacls . /grant <username you got from whoami>:F /t then press Enter.

NOTE: Ensure that there’s no space between the username and “:F” or the command will not work.

j. In the File Explorer, open the SRP drive and select the Boot folder. Choose the             language folders you want to permanently delete. Language folders are named      with four letters split with a hyphen. For example: de-DE is the German language          while en-US is the U.S. English language.

2. Truncate the NTFS Log:

a. Open the Command Prompt then type chkdsk /L Y: to check the size of the NTFS Log. If the NTFS Log size is less than 5000KB, you need not truncate the file.

b. Type chkdsk /L:5000 /X /F then hit Enter to truncate the NTFS Log.

c. Return to Disk Management window. Select Action menu then select Check if the device’s SRP now has a larger amount of free space. Once there’s enough space, right click the System Reserve Partition then select Change Drive Letter and Paths. Choose Y: then select Remove.

3. If there’s still not enough available space after truncating the NTFS Log, resize the USN journal:

a. Open the command prompt then type fsutil usn queryjournal Y: to display the size in hex value. Convert the hex value to decimal then divide it by 1048576. The result you will get will be in MB. If the journal size is 30MB or more, proceed with truncating the file.

NOTE: To convert the Hex value to Decimal, open the Calculator app in Windows then choose View menu. Select Programmer then choose Hex. Type the Hex value then choose Dec.

b. Type fsutil usn deletejournal /D /N Y: then hit Enter to delete the journal. Type fsutil usn createjournal m=1500 a=1 Y: to recreate the journal having the new log size value.

  1. Restore permissions

a. Type icacls Y: /restore %systemdrive%NTFSp.txt /c /t in the Command Prompt. Check if the files were successfully processed before proceeding. If you see a message saying some files failed while processing, this is normal since some of the files have already been deleted before performing a backup. However, if there are no successful files indicated, the command was not properly executed.

b. Type icacls . /grant system:f /t then hit Enter to adjust the ACL back to System. Now, you can set the owner of the drive by typing icacls Y: /setowner “SYSTEM” /t /c then press Enter.

c. Check if the device’s SRP now has enough free space by going back to Disk Management and refreshing the data. If the SRP already has sufficient space, you can now remove the drive letter. Right-click on the System Reserved Partition then choose Change Drive Letter and Paths. Select the Y: drive then choose Confirm deleting the drive letter by clicking OK.

Method 3: Windows 8/8.1 with MBR partition

This method makes a larger, but temporary, increase in the SRP free space.

1. Be sure you have an external drive having at least 250 MB free space and formatted as NFTS.

2. Open Run by pressing the Windows key + R. Type mscthen to choose the Recovery Partition. Right-click on it then choose Change Drive Letter and Paths.

3. Select Add then type Y for the drive letter, click

4. Click on the Start screen then type cmd in the search bar. In the results, right-click on Command Prompt then choose Run as administrator. The command prompt window will appear.

5. Switch to another drive by typing Y: in the command prompt. Once you’re in the drive Y, type takeown /d y /r /f .

NOTE: Ensure that space and period after “f” are included in order for the command to work properly.

  1. Type whoami then hit Enter. Record the username that appears. Afterward, type icacls . /grant <username you got from whoami>:F /t then press Enter.
NOTE: Ensure that there’s no space between the username and “:F” or else the command will not work.
  1. Once the command is completed, type attrib -s -r –h Y:RecoveryWindowsREwinre.wim then hit Enter.
  2. Open File Explorer and check the drive letter of the external drive you’re using (In this case, let’s assume F: is the drive letter of the external drive so when you see F: for the rest of the steps, this means the drive letter of the external drive you’re using).
  3. Type mkdir F:RecoveryWindowsRE in the Command Prompt then hit Enter. Afterward, type xcopy Y:RecoveryWindowsREwinre.wim F:RecoveryWindowsREwinre.wim /h
  4. Type C:WindowsSystem32Reagentc /SetREImage /Path F:RecoveryWindowsRE /Target C:Windows to map the new path
  5. Verify if the copy was successfully done then type del Y:RecoveryWindowsREwinre.wim /F
  6. Return to Disk Management window. Click on the Action menu then hit Check if the device’s SRP now has a larger amount of available space. Once there’s enough space, you can proceed with the upgrade.
  7. Upon completion of the upgrade, move back the wim file to the Recovery Partition. At this point, you can re-map now the location by:
    1. Open the Command Prompt then type xcopy F:RecoveryWindowsREwinre.wim Y:RecoveryWindowsREwinre.wim /h and press Enter.
    2. Type C:WindowsSystem32Reagentc /SetREImage /Path Y:RecoveryWindowsRE /Target C:Windows to re-map to the original path.
  8. Return to the Disk Management window. Right-click on the Recovery Partition then choose Change Drive Letter and Paths. Select the Y: drive then choose Remove.

Method: Download a Powerful Automated Tool

Not inclined to go through a long and technical process (as highlighted above)? Download and install a powerful automated tool and get the job done in a jiffy.
Read More
Run Windows Updates from Command Line
As you know, one of the most highlighted features of Windows 10 is Windows Updates. It was offered to the customers as a service rather than a product with the release of Windows 10 under the scenario of Software as a Service which led to Windows Updates being set by default on Windows 10 and without an option for any users to disable it. Although not all users are happy with what Microsoft did, this is an ultimate step towards the greater good of all its customers since Windows Updates helps users in keeping their computers secured against all kinds of threats as well as provide them with the greatest and latest updates from Microsoft. So if you are one of those users who approved of the Windows Updates service, then read on as this post will guide you in running Windows Updates from Command Line either via Command Prompt or Windows PowerShell. For the complete set of instructions, refer to the options given below.

Option 1 – Run Windows Update via Command Prompt

Command Prompt in the Windows operating system exists for a very long time now compared to the comparatively new Windows PowerShell. That’s why it has similar capabilities to run Windows Updates. However, the highlighting point here is that you don’t have to download any module for Windows Updates. To get started running Windows Updates using Command Prompt, refer to the steps below.
  • First, type “cmd” in the Cortana search box, and from the search results, right-click on Command Prompt and select the Run as Administrator option to open it with Administrator privileges.
  • If a User Account or UAC prompt appears, just click on Yes to proceed.
  • Next, type in the commands listed below, and don’t forget to tap Enter right after you type each one of them.
    • UsoClient StartScan – use this command to start checking for updates.
    • UsoClient StartDownload – use this command to start downloading updates.
    • UsoClient StartInstall – use this command to start installing the downloaded updates.
    • UsoClient RestartDevice – use this command to restart your computer after you install.
    • UsoClient ScanInstallWait – use this command to check, download and install updates.
Note: Keep in mind that the commands in Command Prompt listed above are only meant for Windows 10. On the other hand, if you are using an older Windows version, you can try using the following commands instead:
  • wuauclt /detectnow – use this command to start checking for updates.
  • wuauclt /updatenow – use this command to start installing the updates detected.
  • wuauclt /detectnow /updatenow – use this command to check, download and install updates.

Option 2 – Run Windows Updates via Windows PowerShell

If you run Windows Updates in the Windows PowerShell, it will require you to install the Windows Update module manually. Hence, you have to get the Windows Updates downloaded and install Windows Updates.
  • Search for PowerShell in the Cortana search box and then run it with administrator privileges.
  • Once you’ve opened the Windows PowerShell, type the following command and hit Enter.
    • Install-Module PSWindowsUpdate – use this command to install the Windows Update module for Windows PowerShell.
    • Get-WindowsUpdate – use this command to connect to the servers of Windows Update and download the updates if found.
    • Install-WindowsUpdate – use this command to install the Windows Updates you’ve downloaded to your computer.
Read More
1 2 3 171
Logo
Copyright © 2023, ErrorTools. All Rights Reserved
Trademark: Microsoft Windows logos are registered trademarks of Microsoft. Disclaimer: ErrorTools.com is not affiliated with Microsoft, nor claims direct affiliation.
The information on this page is provided for information purposes only.
DMCA.com Protection Status