Changing the Ownership of a File or Folder

There are many times when you have to change the ownership of a folder or a file so that other users can use them as well or if you want to transfer files to them, or an old account has been removed and all the files need to be assigned to a new user. Windows 10 keeps all these files locked under the account by default which created a folder or file. So unless a user is an admin or if the file belongs to that particular user, other users won’t be able to access or edit the file. So if you want to change the ownership of a folder or a file, then you’ve come to the right place as this post will guide you on how exactly you can do that.

To get started, make sure to follow the instructions provided below carefully.

Step 1: First, you need to open File Explorer by tapping the Win + E keys. Once you’ve opened it, navigate to the folder or file that you want to change the ownership.

Step 2: Right-click on the folder or file and click on Properties and then go to the Security tab.

Step 3: From there, click on the Advanced button located at the bottom right part of the window to open the Advanced Security Settings of the folder or file.

Step 4: As you can see, the current owner will be listed with the Change link available next to the “Owner” label. Now click on this link to open the Select User or Group window.

Step 5: After that, click on the Advanced button once again and click on the “Find Now” button to see the list of all the users as well as groups that are available in the computer.

Step 6: Then select the user you want to give ownership to and click on the OK button and then click the OK button once more to save the changes made.

Step 7: This will take you back to the Advanced Security Settings window but this time, the owner will be changed to whoever user you’ve selected. But you’re not done yet as you still have to check two additional options to help you completely transfer the ownership of the sub-folders as well as the files. You have to check the checkbox of the following options:

  • Replace owner on sub-containers and objects
  • Replace all child permission entries with inheritable permission entries from the object.

Step 8: After that, you need to click the Apply and OK buttons to confirm and save the changes made. This will completely transfer the ownership of the file. However, there is still one last thing you have to do – you have to go back to the Advanced Security Settings window to remove the access of any other user on the folder or file. Once you’re there, remove the existing user to make sure that the only assigned user has the access to the folder or file.

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

How to Fix Error 0x800CCC90

Error 0x800CCC90 - What is it?

Error 0x800CCC90 is a typical Outlook error. This error indicates that Outlook has failed to connect to the mail server that handles and manages the incoming and outgoing emails. The error message is displayed in the following format:

“There was a problem logging onto your mail server. Your User Name was rejected.”

This error limits your ability to send and receive emails on Outlook. If you largely communicate at the workplace using your Outlook account, this error may slow down your work productivity and performance dramatically. Therefore it is advisable to fix it immediately.

Solution

Restoro box imageError Causes

The error 0x800CCC90 is triggered several reasons including but not limited to:
  • Authentication issues
  • Failure of POP 3 Server
  • PST File Corruption
  • Registry issues- Invalid Entries
  • Viral infection

Further Information and Manual Repair

To resolve error 0x800CCC90, try the methods given below:

Method 1 - Adjust the Authentication Settings

To resolve the error 0x800CCC90, adjust the authentication settings. Here’s what you need to do:
  • First, go to the ‘Tools’ tab and select the ‘Accounts’ option.
  • Once you select the account option, an internet accounts box will appear on the computer screen.
  • Simply double click on the account property box after that go to the server tab and click on it.
  • Check the box that says ‘My Server Requires Authentication’.
  • Click on apply to accept changes tab to save changes and close the window.
  • To activate changes made, restart Outlook and then try sending emails again.

Method 2 - Download a PST Repair Tool

If the error is triggered by PST file corruption, then the best way to resolve it is to download the PST repair tool. Download the PST repair tool from a trusted website. Run it on your system to fix PST file issues and resolve error 0x800CCC90.

Method 3 - Scan for Viruses

Another way to resolve this error is to scan for viruses. Viruses usually enter computer systems through phishing emails or while downloading attachments. You may not know this but viruses may be affecting your PC. Due to viruses, errors like error 0x800CCC90 can also be triggered. Therefore install an antivirus to scan and remove errors on your PC.

Method 4 - Clean the Registry and Remove Invalid Entries

Due to poor PC maintenance, misconfigured and invalid registry entries may be stored in the registry. Such entries may lead to Outlook errors too. Thus to resolve you must clean the registry and remove these entries right away. Download a registry cleaner to fix the error. Whether the error is triggered by viral infection or registry issues, it is recommended you download only Restoro. This is the one-stop solution to resolve all PC related errors. This software is deployed with 6 scanners including a registry cleaner, an antivirus, and a system optimizer. It is user-friendly and has simple navigation. It is compatible with all Windows versions. In just a few clicks this software resolves practically all types of PC-related errors including error 0x800CCC90. Click here to download Restoro today!
Read More
Fix DRIVER_PAGE_FAULT_IN_FREED_SPECIAL_POOL
If you suddenly encounter the DRIVER_PAGE_FAULT_IN_FREED_SPECIAL_POOL Blue Screen error on your Windows 10 computer along with the error codes, 0x000000D5, 0xb10BBD9E, 0x0D82DA24, 0Xfecd479D, 0x779827CB then read on as this post will provide you some troubleshooting tips that could help you resolve the BSOD error. Getting this kind of BSOD error means that a driver has referenced memory that was freed earlier and it could also mean that the Driver Verifier Special Pool option has caught the driver accessing memory which was freed earlier. Follow the given options below to fix the DRIVER_PAGE_FAULT_IN_FREED_SPECIAL_POOL BSOD error.

Option 1 – Use the Driver Verifier Manager

The Driver Verifier Manager is another tool in Windows that could help you fix driver-related issues.
  • Type in the keyword “Verifier” in the Cortana search box to search for Verifier in Windows 10.
  • After that, select the option “Create custom settings”.
  • Make sure that you have checked everything except the options “DDI compliance checking” and “Randomized low resources simulation”.
  • Next, select the option “Select driver names from a list” option.
  • Afterward, you have to select all the drivers from any unofficial or third-party provider. To simply put it, you have to select all the drivers that are not supplied by Microsoft.
  • Then click on the Finish button.
  • Open Command Prompt as administrator and execute this command – verifier /querysettings
  • The command you just executed will display the Driver Verifier settings so if you see any of the flags enabled boot your Windows 10 PC into Safe Mode.
  • Open the Command Prompt as admin again and run this command – verifier /reset
  • The command will reset the Driver Verifier. Once the process is done, restart your PC and check.

Option 2 – Try updating SSD firmware

If you have installed SSD on your computer recently and you have started getting the DRIVER_PAGE_FAULT_IN_FREED_SPECIAL_POOL Blue Screen error since then you may have to update the SSD firmware. To fix this, you can download the Intel Solid-State Drive Toolbox from the official website. This toolbox is compatible with Windows 10 and Windows 7 and later versions.

Option 3 – Try running the Blue Screen Troubleshooter

The Blue Screen troubleshooter is a built-in tool in Windows 10 that helps users in fixing BSOD errors like DRIVER_PAGE_FAULT_IN_FREED_SPECIAL_POOL. It can be found in the Settings Troubleshooters page. To use it, refer to these steps:
  • Tap the Win + I keys to open the Settings panel.
  • Then go to Update & Security > Troubleshoot.
  • From there, look for the option called “Blue Screen” on your right-hand side and then click the “Run the troubleshooter” button to run the Blue Screen Troubleshooter and then follow the next on-screen options. Note that you might have to boot your PC into Safe Mode.

Option 4 – Try running Microsoft’s online Blue Screen Troubleshooter

If running the built-in Blue Screen Troubleshooter didn’t work, you can also try running Microsoft’s online Blue Screen Troubleshooter. All you have to do is go to Microsoft’s website and from there, you will see a simple wizard that will walk you through the troubleshooting process.

Option 5 – Try to reinstall or update device drivers of recently installed hardware

If the first few options didn’t work for you, then it’s time to either update or roll back the device drivers. It is most likely that after you updated your Windows computer that your driver also needs a refresh. On the other hand, if you have just updated your device drivers then you need to roll back the drivers to their previous versions. Whichever applies to you, refer to the steps below.
  • Open the Devices Manager from the Win X Menu.
  • Then locate the device drivers and right-click on them to open the Properties.
  • After that, switch to the Driver tab and click on the Uninstall Device button.
  • Follow the screen option to completely uninstall it.
  • Finally, restart your computer. It will just reinstall the device drivers automatically.
Note: You can install a dedicated driver on your computer in case you have it or you could also look for it directly from the website of the manufacturer.

Option 6 – Try disabling Hardware Acceleration

You might want to disable Hardware Acceleration system-wide or for a particular program like Google Chrome and see if it resolves the DRIVER_PAGE_FAULT_IN_FREED_SPECIAL_POOL BSOD error
Read More
Attempt was made to reference a token
If you were trying to open File Explorer but it suddenly stopped working and you encounter an error message that states, “An attempt was made to reference a token that does not exist”, read on as this post will guide you in fixing this problem. This problem was initially reported after the April Update and Microsoft was able to fix it right after correcting the build. However, this effort seems futile for some users as recently, some reported getting the same error when they try to open not just Windows File Explorer but also with utilities like Microsoft Management Console or MMC, Visual Studio, Task Manager, Printer, Recycle Bin, etc. Two of the most likely causes of this error are a troublesome Windows Update and corrupted system files. Whatever the cause is, here are some suggestions you can follow to fix the “An attempt was made to reference a token that does not exist” error.

Option 1 – Try to re-register the problematic DLL file

You may have to re-register the ntdll.dll file using the regsvr32.exe before you can successfully install the program and fix the ntdll.dll file crash error. The Regsvr32 tool is a command-line utility that can be used to register and unregister OLE controls like DLL and ActiveX (OCX) control in the Windows operating system. Follow the steps below to use it.
  • Open Command Prompt as admin from the WinX menu.
  • Next, type the following commands in the elevated Command Prompt and hit Enter to execute the command. This will re-register the affected DLL file using the Windows operating system tool, regsvr32.exe.
    • exe /[DLL file]
    • exe [DLL file]
Note: Replace “[DLL file]” with the name of the DLL file that was pointed out in the error.
  • After you execute the given commands, you should see a message saying, “DllRegisterServer in vbscript.dll succeeded” if the Regsvr32 tool was able to run successfully. After that, try to install the program again and see if it now works.

Option 2 – Replace the DLL file from a trusted source

  • First, you need to get the new DLL file from another computer with preferably the same file version number.
  • After that, you need to boot your PC into Safe Mode and navigate to the paths listed below and then replace the file using a USB drive or other external storage devices.
    • x86: This PC > C:/Windows/System32
    • x64: This PC > C:/Windows/SysWOW64
  • Next, type “cmd” in the Cortana search box and right-click on Command Prompt, and select “Run as administrator” to open it with administrator privileges.
  • Now type the “regsvr32 ntdll.dll” command and hit Enter.
  • Restart your PC and check if the error is now fixed.

Option 3 – Perform a System File Checker scan

The System File Checker or SFC scan could detect and automatically repair damaged system files that could be causing the “An attempt was made to reference a token that does not exist” error to pop up. SFC is a built-in command utility that helps in restoring corrupted files as well as missing files. It replaces bad and corrupted system files with good system files. To run the SFC command, follow the steps given below.
  • Tap Win + R to launch Run.
  • Type in cmd in the field and tap Enter.
  • After opening Command Prompt, type in sfc /scannow and hit Enter.
The command will start a system scan which will take a few whiles before it finishes. Once it’s done, you could get the following results:
  1. Windows Resource Protection did not find any integrity violations.
  2. Windows Resource Protection found corrupt files and successfully repaired them.
  3. Windows Resource Protection found corrupt files but was unable to fix some of them.

Option 4 – Try reverting back to the previous build of Windows

This kind of error might have something to do with a Feature Update so you can try to revert your computer to a previous build of Windows 10 as it could help you fix the problem. In this case, it would better if you refrain from updating your Windows 10 computer until this problem is completely resolved by Microsoft.
Read More
How to Fix Runtime Error 339

What is Runtime Error 339?

Runtime Error 339 is a common error code format that appears when a computer overloads with too much data. However, in some cases, it may occur due to the missing registry keys, DLL files, or during installation. It may lead some programs to shut down all of a sudden and may also corrupt files on the system.

Solution

Download Available to Completely Repair Runtime Error 339

Restoro box imageError Causes

This error code is alarming as it is a critical sign of an unstable system followed by improper maintenance of the computer. The potential risks associated with the Runtime Error 339 include:
  • System startup issues
  • Slow PC performance
  • System crash and failure
  • System file corruption
Therefore, to avoid these risks and system failure, it is advisable to fix the runtime error 339 immediately.

Further Information and Manual Repair

If you have a Runtime Error 339 issue on your computer, here is a great way how you can fix it right away:

Scan For Viruses

Improper maintenance of the computer indicates that your system might be exposed to viruses and malware. Viruses can modify the Windows registry and lead to Runtime Error 339. Therefore, first, it is important to scan for viruses on your PC.

Identify Software that Causes Errors

Scanning will help you identify software that produces this error on your PC. Once you identify them, either uninstall them or update the program. To uninstall the program, go to the Control Panel and then click on the Add/Remove program if you have Windows XP, if not then click on the Programs and Features item. Now delete the program from your system.

Obtain the Latest Version of the Installer and Re-install the Deleted Program

Once you get your hands on the latest version of the installer, run it on your system by following the on-screen instructions. Install the program. There is also another way to fix Runtime Error 339 and that is by downloading the Runtime Error tool.

Use a Professional Runtime Error Fixer Tool

To fix the error you can also use a professional Runtime Error fixer tool to scan for viruses on your PC. It is available for free download here. Download the tool and install it on your computer. Simply scan your PC after installation. Click the repair button once the scan is complete. This tool fixes problems in just a few minutes.
Read More
Expand right-click menu in Windows 11
Windows 11 brought with it a simplified right-click menu that has limited options. If you would like to bring the old Windows 10 right-click menu you will have to do some registry tweaking but it is doable. right click menuSince this requires registry tweak, please follow given solution step by step
  1. Press Start and type RegEdit
  2. Click on Registry Editor
  3. Inside registry editor find next key: Computer\H_KEY_CURRENT_USER\SOFTWARE\CLASSES\CLSID\
  4. Right click in the right part of editor window and select New > Key
  5. Type in as a name: {86ca1aa0-34aa-4e8b-a509-50c905bae2a2}
  6. Right click on {86ca1aa0-34aa-4e8b-a509-50c905bae2a2} key and select New > Key again to create new key inside this one
  7. Name inside key InprocServer32
  8. Double click the “(Default)” key in InprocServer32 to open it
  9. When the Default key opens close it without making any changes by clicking on OK. This will make its value property Blank instead of value not set
  10. Close Registry Editor
  11. Restart your PC
Once the system is up if the followed solution is applied you will now have an old school menu once right-click is used.
Read More
Configure Windows 10 to create Dump Files on Blue Screen of Death
If your Windows PC encounters an error, it will display a Blue Screen of Death or BSOD error which usually comes up for a fraction of second and creates some logs or Dumps Files as what other user prefers to call it and then boots your PC suddenly. This process usually takes place quickly that most users find it hard to get the error code and won’t probably be able to check what really went wrong with their PCs. This is where the dump files come in. They are stored internally in your computer and can only be accessed by an administrator. They are classified into 4 main types and in Windows 10 they are either:
  1. Complete Memory Dump
  2. Kernel Memory Dump
  3. Small Memory Dump (256 KB)
  4. Active Memory Dumps
Dump Files are useful as they could help you in resolving the problem and so you need to configure your Windows 10 PC to create them but first, you need to make a system restore point. This is essential as you are about to modify some system files as well as critical Windows 10 settings. There are two ways you can create Dump files – first is by modifying the settings in the Startup and Recovery and lastly is via the WMIC command line. Refer to the instructions prepared below to be guided on how you can create Dump files after any BSOD error using these options.

Option 1 – via Startup and Recovery

  • Type in “control panel” in the Cortana Search box and then click on Control Panel from the search results to open it.
  • After opening Control Panel, you need to make sure that you view the contents by their Category then click on the header link which is labeled “System and Security” or you could also right-click on the This PC icon and then click on Properties.
  • Next, select the Advanced system settings from the left panel. Once you do, a new and small window will pop up.
  • Under the newly opened window, look for the section called Startup and Recovery and then click on the Settings button.
  • And from the System Failure section, you can choose any option from the drop-down for Write debugging information such as:
    • None – this means that there is no dump file created by Windows
    • Small Memory Dump – this means that Windows will create a Minidump file on BSOD
    • Complete Memory Dump – this means that Windows will create a Complete Memory Dump file on BSOD
    • Automatic Memory Dump – this means that Windows will create an Automatic Memory Dump file on BSOD
    • Active Memory Dump – this means that Windows will create an Active Memory Dump file on BSOD
Note: The complete dump needs a page file that is allowed to be the size of the physical memory installed in your PC with a dedicated 1 MB of space for just the page header.
  • Now once you have selected the most suitable option for you, just click on OK/Apply and then exit.
  • Restart your PC to successfully apply the changes made.

Option 2 – via the WMIC command line

  • The first thing you need to do to create Dump files via the WMIC command line is to tap the Win + X keys combination or simply right-click on the Start button and then select the Command Prompt (Admin) option. You could also type in “cmd” in the Cortana search box and then right-click on Command Prompt from the results and select Run as administrator.
  • After that, type in any of the commands given below depending on your preferences so that your Windows 10 PC will be configured to create Dump Files:
    • No dump file: wmic RECOVEROS set DebugInfoType = 0
    • Small Memory Dump: wmic RECOVEROS set DebugInfoType = 3
    • Kernel Memory Dump: wmic RECOVEROS set DebugInfoType = 2
    • Complete Memory Dump: wmic RECOVEROS set DebugInfoType = 1
    • Automatic Memory Dump: wmic RECOVEROS set DebugInfoType = 7
    • Active Memory Dump: wmic RECOVEROS set DebugInfoType = 1
Note: A complete dump has to have a Page file which is allowed to be the size of the physical memory installed on your PC accompanied by a 1 MB space for just the page header.
  • Now type in “exit” in the Command Prompt to exit it.
  • Restart your PC to apply the changes made successfully.
Read More
Nostalgic gaming with Retroid pocket 2
We have talked about gaming on old computers and have covered new and upcoming Steam deck handheld console. Today we are combining old gaming with a handheld console and our target of talk is Retroid pocket 2. This product is packed with really high-quality plastic and with some great features in it. retroid pocket 2So let's dive into this cool handheld in more detail and find out why we like it so much.

Good manufacturing quality

Plastic and overall manufacturing quality are really, really good. The battery is great, packing 4000mAh that can hold over 3 hours of nonstop gaming, and all buttons and joysticks are great. The screen is a 640 x 480 60Hz 3.5″ IPS screen (4:3 aspect ratio) that performs really great for its purpose, retro gaming. There is a Digital D-Pad and dual analog joysticks. The right joystick is the lower profile to avoid being accidentally moved when pressing the four gaming buttons. There are three buttons at the bottom which are Home, Start, and Select. On either side are good-quality stereo speakers. On the bottom of the device are a Micro SD Card slot and a 3.5mm headphone port. On the top of the device are Left and Right shoulder and trigger buttons. There are the power button and volume adjustments. There are a USB Type-C OTG port and a Micro HDMI output for connection to a TV.

Good technical statistics

Good, not great but then again since this is retro handheld you cannot really expect some crazy stuff like alder lake inside. So the console is punching ARM Cortex A7 CPU with 2 cores and a clock of 1.5GHz paired with ARM Mali 400-MP2 500MHz GPU. The console has 1GB LPDDR3 RAM memory and 8GB eMMC Storage where 5GB is freely available, the rest is taken for OS. As mentioned before the display is 640x480 resolution with a size of 3.5″. The battery is Lithium-Ion with a power of 4000mAh and on the handheld, there is a USB Type-C connector, 3.5mm headphone jack, and Micro-HDMI. It also has Wifi/Bluetooth 4.0

Retroid Pocket 2 OS and support

Pocket 2 comes with Android 6 but you can update its firmware to the 8.1 version on the official site that I would highly recommend. New versions of the handheld will come with 8.1 on it from the box. Having Android as OS opens many possibilities like you can download Android apps such as Steam Link, allowing you to play actual PC games on your Retroid Pocket 2. Not just that, if it does get a newer version of Android it could even have the ability to use xCloud, Xbox’s cloud gaming service. Of course, hardware will not be able to handle modern games but the option is still there and for some old PC titles available on steam like Commander Keen, for example, this is a great option. The console can emulate basically everything up to Dreamcast, including N64, PSP, and Playstation 1. It can emulate Nintendo DS also, but it can only do so with one screen. The only problem with this console is you will need to install and update Apps. You’ll need to learn about RetroArch, an app that lets you download emulators or cores to play games.

Retroid price

The last thing on the list is the price of the console itself. Going just under the 100$ mark this really makes it an affordable option for plenty of people that would like to experience retro handheld gaming or for ones like me, nostalgic gamers wanting to relive some era of playing games on the road.

Conclusion

Among Chinese handheld devices for retro gaming, Retroid Pocket 2 is really on top of what the market can offer. If you are looking for a great handheld retro console and are not afraid of little dive-ins into the OS and various configurations, Pocket 2 will reward you with plenty and wide emulation support.
Read More
Troubleshooting Error 106

What Is Error 106?

Error 106 is a common error experienced by Windows 7 users. Generating as a result of Misconfigured, damaged or corrupt system files on the computer, this is not a critical error. However, troubleshooting this error is important to keep any undesired inconvenience at bay. Essentially, error 106 is one of the error codes employed by Windows and other compatible driver and software vendors. The 106 in this error is essentially the memory address or location where the instructions reside when the error was generated.

Solution

Restoro box imageError Causes

Primarily, error 106 is caused by the damaged, Misconfigured or corrupt system files. The error may appear harmless at first. However, if allowed to persist, it can lead to grave consequences. Allowing an error to thrive on your system is synonymous with putting the well-being of your system at risk. As far as the events, conditions, or scenarios are concerned that lead to the generation of error 106, they are listed below as follows. It is important to understand that these conditions lead to the corruption of system files in most cases.
  • An improper or incomplete installation or uninstallations
  • Improper or incomplete deletion of hardware or applications
  • Improper, unintentional or sudden system shutdown
  • Existence of adware, spyware, malware, or virus on your computer
It is worth mentioning that any of the conditions listed above can lead to the corruption of system files or registry entries in the system. Since the system needs correct and complete files for proper functioning which the system will be unable to find, it will result in unexplained behavior. This also happens because the system will be lead to wrongly linked or missing information.

Further Information and Manual Repair

There are different ways to rectify this error but two of the most useful ones are briefly listed below as follows.
  • This solution is for the advanced user. First and foremost, turn on your system. Log on to it as the Administrator. Now click on the start button and follow this sequence: All Programs -> Accessories -> System Tools -> System Restore.A new window will appear in front of you. On this window, choose the option, ‘Restore my computer to an earlier time’. Now click Next.A list of restore points will appear in front of you. From this list, choose the most recent Restore Point and click Next. Click Next on the confirmation windows. Restart the computer when the restoration is complete.
  • This solution for the novice user. Download an error 106 windows repair utility. Now install this program on your computer and use it to scan your computer. Try to locate the option for fixing errors as soon as the scan complete. Make use of this option. Once all the errors have been fixed, restart your computer once again. You will now realize that the error has vanished and your computer is now free of error 106.
Use any of the solutions listed above according to your skill level.
Read More
Make AI images on your local PC

Stable Diffusion is a machine learning model developed by Stability AI to generate digital images from natural language descriptions. The model can be used for different tasks like generating image-to-image translations guided by text prompts and upscaling images.

Unlike competing models like DALL-E, Stable Diffusion is open source and does not artificially limit the images it produces. Stable diffusion was trained on a subset of the LAION-Aesthetics V2 data set. It can run on most consumer hardware equipped with a modest GPU and was hailed by PC World as "the next killer app for your PC".

stable diffusion

Since Stable Diffusion is run locally and not in the cloud, as mentioned there is no limit to the number of images that you can produce but in order to use it you will have to get down a little dirty with setting your PC environment for it since it is not really an application, it is a command line text based descriptor that will use python to generate your images, so there is no install nor GUI.

In this guide, we will show you how to both install and run Stable Diffusion on your local PC so you can start producing some cool images all by yourself.

Hardware and software requirements

Make no mistake, Stable Diffusion will not run on a potato PC, in order to harvest the power of AI-generated imagery this is what you will need:

  • A GPU with at least 4GB of VRAM
  • 10GB of hard disk space
  • Python and libraries (Miniconda3 installer will install everything you need)
  • The Stable Diffusion files
  • Git
  • Any OS (Windows, Linux, macOS)

Installing components

For this tutorial, we are covering the installation and running of Stable Diffusion on Windows PC. The steps presented here are presented in a way that installation can be performed on any operating system but precise instructions will be for Windows OS.

GIT

The first thing to do is to install GIT. It is a tool that will let you easily maintain and install repos from the internet. to install it go to: https://git-scm.com/ and click on download. Follow the instructions for your version of the operating system. If you are a developer you are familiar with GIT and if you already have it installed you can skip this step.

One thing that is important when installing GIT locally is to select to use it via the command line (the second option that says "Git from the command line and also from 3rd-party software").

Miniconda3

Now when we have GIT installed, next thing is to use Miniconda3 to install python and all required libraries that are needed. Get the installer at: https://docs.conda.io/en/latest/miniconda.html

Miniconda3 is basically an easy installer so you do not have to install tons of stuff manually from different websites and sources, it is nicely packaged in the installer that will take care of everything.

Stable Diffusion

After the previous two steps, we are ready now to actually install Stable Diffusion. Go to https://huggingface.co/CompVis/stable-diffusion#model-access and install the latest library (as of the writing of this article currently it is stable-diffusion-v1-4-original, the last one on the right), the library is almost 5GB in size so be prepared for big download.

After installing stable diffusion's latest library it is time to update it to the newest version. You can download ZIP from GIT HUB https://github.com/CompVis/stable-diffusion

Once downloaded click on the Windows start button and type in Miniconda3 and click on open. Create a folder and name it how you want on a drive of your choice. For this example, we will install it all in disk C under folder AI_art, follow the instructions below but use your own names and destination instead. Do not close Minicoda3 after typing commands!!!

cd c:/
mkdir AI_art
cd AI_art 

Extract GitHub files that you have downloaded into your new folder and get back to Minicoda3 and type the next commands:

cd C:\AI_art\stable-diffusion-main
conda env create -f environment.yaml
conda activate ldm
mkdir models\ldm\stable-diffusion-v1

Let the whole process finish, some files are large and it might take a while. After the whole process is finished and completed, copy the checkpoint file that you have downloaded into: C:\AI_art\stable-diffusion-main\models\ldm\stable-diffusion-v1

After the file is copied rename it to model.ckpt and you are finished.

Running Stable Diffusion

The created environment is needed in order to actually use Stable Diffusion to create images. Each time you want to use it you will have to run it, so go into Miniconda3, and inside it type:

conda activate ldm
cd C:\AI_art\stable-diffusion-main

after we are inside the folder call the script with the parameters:

python scripts/txt2img.py --prompt "TXT DESCRIPTION OF IMAGE THAT YOU WANT TO CREATE" --plms --n_iter 5 --n_samples 1

and that's it, your image is created and it is located in C:\AI_art\stable-diffusion-main\outputs\txt2img-samples\samples

Read More
Fix Winload.efi file missing error
The Winload.efi file is an Extensible Firmware Interface or EFI file. EFI files are executable files for the firmware of the computers that are mainly based on UEFI and execute the tasks of loading the files to the bootloader of the computer. They are used for a specific set of tasks such as turning on the computer, installing Windows, restarting the computer or resetting it, and so on. This is why the Winload.efi file is a significant file so if it gets corrupted, lost, or damaged, it would be impossible for the Windows operating system to proceed. Here are some errors you can encounter that are related to the Winload.efi file:
  • efi is missing
  • efi cannot be found
  • efi is missing or contains errors
  • This program can’t start because winload.efi is missing from your computer
  • This application requires the file winload.efi, which was not found on this system.
  • There was a problem starting [path]winload.efi. The specified module could not be found.
In addition, the 0xc0000225 , 0xc00000e and 0xc0000001error codes are also associated with the Winload.efi file. Before you start troubleshooting the problem, you can try to perform System Restore first. This will help undo any changes you’ve made in your computer that might have triggered the Blue Screen error. To perform System Restore, here’s what you have to do:
  • First, press the Win + R keys to open the Run dialog box.
  • After that, type in “sysdm.cpl” in the field and tap Enter.
  • Next, go to the System Protection tab then click the System Restore button. This will open a new window where you have to select your preferred System Restore point.
  • After that, follow the on-screen instructions to finish the process and then restart your computer and check if the problem is fixed or not.
If System Restore didn’t help in fixing the Blue Screen error, now’s the time for you to resort to the troubleshooting tips provided below but before you get started, make sure that your create a System Restore point first.

Option 1 – Try rebuilding the Boot Configuration Data (BCD) and repairing MBR

  • Once you get to the Welcome Screen part, click on Next.
  • Afterwards, click on the Repair your computer option located on the bottom-left part of the window.
  • Then click on Troubleshoot.
  • Next, select the Advanced Options and then Command Prompt.
  • Once Command Prompt has been pulled up, the following commands to rebuild BCD files and repair MBR. Don’t forget to hit Enter right after you type each command.
    • bootrec /repairbcd
    • bootrec /osscan
    • bootrec /repairmbr
  • Once the command line is successful in finding out a Windows installation, hit Y to let it boot from the list which will successfully rebuild BCD.
  • Now type “exit” to close Command Prompt and then restart your computer to successfully apply the changes made.

Option 2 – Disable the Secure Boot in the BIOS

Disabling the Secure Boot in the BIOS settings is definitely recommended to resolve errors related to the Winload.efi file. To disable Secure Boot, here’s what you have to do:
  • First, boot your computer into Windows 10.
  • Next, go to Settings > Windows Update. From there, check if there is anything that you have to download and install if you see any available updates. Usually, OEMs send and update the list of trusted hardware, drivers, and operating systems for your computer.
  • After that, go to the BIOS of your computer.
  • Then go to Settings > Update & Security > Advanced Startup options. If you click on Restart Now, it will restart your computer and give you all the advanced options.
  • Next, select Troubleshoot > Advanced Options. As you can see, this screen offers you further options including System restore, Startup repair, Go back to the previous version, Command Prompt, System Image Recovery and UEFI Firmware Settings.
  • Select the UEFI Firmware Settings which will take you to the BIOS.
  • From there, go to Security > Boot > Authentication tab where you should see Secure Boot. Note that every OEM has its own way of implementing the options so it varies.
  • Next, set Secure Boot to Disabled and set Legacy Support to On or Enabled.
  • Save the changes made and exit. Afterward, your computer will reboot.

Option 3 – Run System File Checker scan

You might also try running the System File Checker or SFC scan to fix the error. System File Checker is a command utility built into your computer that helps restore corrupted files and missing files. Refer to the following steps to run it:
  • Hit the Win + R keys to launch Run.
  • Type in cmd in the field and tap Enter.
  • After opening Command Prompt, type in sfc /scannow
The command will start a system scan which will take a few whiles before it finishes. Once it’s done, you could get the following results:
  1. Windows Resource Protection did not find any integrity violations.
  2. Windows Resource Protection found corrupt files and successfully repaired them.
  3. Windows Resource Protection found corrupt files but was unable to fix some of them
  • Reboot your computer.

Option 4 – Disable the Early Launch Anti-Malware Protection

  • You need to restart your computer in the Start Menu first while holding down the Shift key on your keyboard.
  • After that, it will restart your computer to Startup Settings.
  • Now ensure that the 8th option is labeled as “Disable early launch anti-malware protection.
  • Then tap the F8 key since the aforementioned option above is listed at number 8. This should launch and load Windows on your PC with the Early Anti-malware protection disabled for that session only when you try to carry out the same task and then check if the error related to the Winload.efi file is now fixed.
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