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

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 2753, The file is not marked
Installing programs on your Windows 10 computer does not go smoothly as you could encounter some issues along the way that could prevent you from successfully installing the program. One of the common errors you can encounter during the installation of programs is Error 2753. There are times when the packages are corrupted or those packages are not working properly or it wasn’t able to create files and paths. When you encounter this kind of error, you will get the following error message:
“Error 2753, The File is not marked for installation.”
Note that this kind of error is not bound to only some specific files but it can also happen with any file, be it an executable file or an MSI file. To fix this error, here are some possible solutions that you could try.

Option 1 – Fresh download the setup file

The first thing you can do is to fresh download the setup file from the official homepage and then place it in a different location. Just make sure that you download the correct setup file that’s compatible with your operating system. Then restart your computer and sign in as administrator. After that, right-click on the setup file and select the Run as administrator to proceed with the installation.

Option 2 – Try removing all the previous versions of the software

If there is a previous version of the program that’s still installed on your computer, you need to uninstall that program since it might be the reason why you’re getting Error 2753.
  • Tap the Win + R keys to open the Run dialog box
  • Then type “appwiz.cpl” in the field and hit Enter to open the Programs and Features in Control Panel.
  • From there, look for the previous version of the program you are trying to install, select it and then click on Uninstall to remove it.
  • After that, restart your computer and try to install the latest version of the program again. It should work now. If not, proceed to the next available option below.

Option 3 – Run the setup file as administrator

The setup file may need more permission in order to execute properly and so you need to run it as an administrator. To do so, you need to give it more privileges for it to work as intended by its developer.
  • Right-click on the setup file and select the Run as administrator option.
  • Afterward, a User Account Control or UAC prompt will appear and from there, click on Yes and then check if the file runs or not.
Note: If the setup file does not run, you may have to take ownership of the folder where the setup file is located. To take ownership of the folder, refer to these steps:
  • First, locate the concerned folder and right-click on it then select Properties.
  • Next, click on the Edit button in the Properties window and click OK to confirm if you got a User Account Control elevation request.
  • After that, select user/group from the permission windows or click on the Add button to add another user or group. It would be best if you add “Everyone” to give permission.
  • Then check “Full Control” under the “Allow” column to assign full access rights control permissions.
  • Now edit the permission to Full Control for “Everyone”.
  • Click OK to save the changes made and then exit.

Option 4 – Try running the setup file in Compatibility Mode

You may be getting Error 2753 if the setup file is not intended to run on the Windows 10 version you are using which is why you have to run it in Compatibility Mode. This will allow the setup file to think that it is running in a compatible environment as it is intended to.

Option 5 – Try to re-register the vbscript.dll file

You may have to re-register the vbscript.dll file using the regsvr32.exe before you can successfully install the program and fix Error 2753. The Regsvr32 tool is a command-line utility that can be used to register and un-register the 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 exe vbscript.dll 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.
  • 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.
Read More
Fix Downloader.dll Not Found Error in Windows
Stumbling upon downloader.dll not found error is not pleasant to experience, usually, it means that desired application can not be started. There could be several reasons why this error happens from user mistakes, corrupted files, bad installation, and even bad RAM memory. Whatever the reason might be solutions provided are the same for all and offer a fix to this issue. it is advisable to follow provided solutions from start to finish not skipping any one of them since they are tailored to address the simplest solutions and issues and move toward more complicated ones.
  1. Reinstall application

    If you are receiving Downloader.dll not found when trying to run just a single certain application, reinstall the application, there is the possibility that the application has somehow corrupted downloader.dll during the installation process. Reinstalling might fix the problem.
  2. Run SFC scan

    SFC scan is the tool meant to scan all files and fix any corrupted ones. To run this tool, open the command prompt in administrator mode by right-clicking on the windows start button and then left-clicking on the command prompt (admin). When you are in command prompt type in SFC /scannow and let the whole process finish.
  3. Update device driver

    If previous steps have not provided results, go to device manager and visually check is there a device with an exclamation or other sign next to it, if there is, right-click on it and choose update driver.
Read More
Fix fatal device hardware error on Windows
This post will help you fix the request that failed due to a fatal device hardware error on your Windows 10 PC. You can encounter this error when that hard drive/SSD on your computer is damaged physically and the system is either unable to access or perform read/write operations in it. Aside from hard drive/SSD, this error can also happen to removable drives. This kind of error is not uncommon and in most cases, the hardware is physically damaged due to which you are not able to perform operations. However, there are a couple of fixes that you can try to resolve the problem before you go ahead and back up your data and move them to a different drive. What exactly causes this error? It’s actually self-explanatory and it gives you an idea that the drive is either corrupted or in a bad state. To resolve the error, follow the given options below carefully and see which one worked best for you.

Option 1 – Verify the hard drive using SMART attributes

In case you don’t know, Windows has a built-in feature of SMART analysis which analyzes the hard drive/SSD and checks all the parameters by performing some minor operations. To use it, follow these steps:
  • Tap the Win + S keys and type “command prompt” in the field then right-click on the related search result and select the “Run as administrator” option.
  • After opening Command Prompt as admin, type the “wmic diskdrive get status” command and hit Enter.
  • You should get a result after that, and if you see that it’s “normal”, proceed to the next option below.

Option 2 – Use the CHKDSK utility

When it comes to some issues concerning the hard drive or removable devices, there is a utility in Windows that might help which is called “chkdsk”. This error check utility can help with several issues in the system.
  • Tap the Win + S keys to open the Search box.
  • Then type “command prompt” in the field and from the search results that appear, right-click on Command Prompt and select “Run as administrator”.
  • After opening an elevated command prompt, copy and paste the following command and hit Enter:
CHKDSK [volume [[path] filename]] [/F] [/V] [/R] [/X] [/C] [: size]]
Note: In the command given above, “[/F]” will try to fix the system errors while “[/R]” will be the one to fix the bad sectors.
  • Now if you are prompted to run CHKDSK after your reboot your PC, just tap Y and reboot your PC.
  • If CHKDSK is not able to find any errors, tap the Win + E keys and navigate the access window. From there, right-click on the concerned drive and click on Properties.
  • After opening Properties, click on the tab Tools and then click on the “Check” button under the Error-checking section.
  • Wait until the process is completed and then restart your computer.

Option 3 – Format your drive

You can try formatting your drive since this problem also occurs on removable hard drives. In addition, if your drive is not properly initialized, this error will really pop up. Thus, you need to make sure that the hard drive is initialized and that the correct partition style is selected.
  • To get started formatting your drive, tap the Win + E keys and then go to the access page of the drive.
  • Next, right-click on the drive and select Format.
  • After that, uncheck the “Quick Format” option and then format your drive properly.
  • Now once the formatting process is finished, unplug the drive and plug it back in afterward.
  • Check if the error is already fixed. If the drive is not initialized, tap the Win + R keys and hit Enter.
  • After opening the Run dialog box, type “diskmgmt.msc” and hit Enter to open Disk Management.
  • From there, right-click on the drive volume and select Initialize Disk.
  • Next, select the correct partition type and proceed.
That should fix the problem, if not, follow the next advanced option below.
Read More
How to Fix INTERNAL_POWER_ERROR in Windows
This post will guide you through fixing the INTERNAL_POWER_ERROR Blue Screen Error on your Windows 10 computer. If you encounter this kind of Blue Screen of Death error, this means that the policy manager experienced a fatal error which in turn means that it can happen because of Drivers or Software or even due to external hardware. And so to resolve the issue, here are some suggestions that might be of help.

Option 1 – Update the Device drivers

As mentioned, the INTERNAL_POWER_ERROR BSOD error might have something to do with the drivers. It could be that the drivers are outdated so you need to update them in order to resolve the issue.
  • 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 drivers with a label saying, “Unknown device”, you need to update them as well.
  • Select the “Search automatically for updated driver software” option and then follow the instructions to complete the process.
  • Restart your PC.

Option 2 – Check the Device performance and health

You can also try checking the device's performance and health in the Windows Defender Security Center.
  • Open the Windows Defender Security Center.
  • From there, check if there is a yellow exclamation icon in the Device performance and health section.
  • After that, click on the View report option and you might see Health Report that points towards Storage Capacity, Device Drivers, or Apps and Software which should give you an idea of what the root cause of the problem really is.

Option 3 – Try to run the Chkdsk utility

Running the CHKDSK utility might also help you resolve the INTERNAL_POWER_ERROR Blue Screen error. If your hard drive has issues with integrity, the update will really fail as the system will think that it’s not healthy and that’s where the CHKDSK utility comes in. The CHKDSK utility repairs hard drive errors that might be causing the problem.
  • Open Command Prompt with admin privileges.
  • After opening Command Prompt, execute the following command and hit Enter:
chkdsk /f /r
  • Wait for the process to be completed and then restart your computer.

Option 4 – Try increasing the size of the Hibernation file

  • In the Cortana search box, type “command prompt” in the field, and from the search results that appear, right-click on Command Prompt and select “Run as administrator”.
  • Next, type in the following command and hit Enter to execute it:
powercfg /hibernate /size 100
  • Note that the default size of the Hibernation file is 75% and after executing the command, it should increase to 100%. Now exit Command Prompt and check if the problem’s now fixed or not.

Option 5 – Try to run the troubleshooters

Blue Screen Troubleshooter:

  • 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.

Performance Troubleshooter:

  • Tap the Win + R keys to open the Run dialog box.
  • Type “msdt.exe /id PerformanceDiagnostic” in the field and hit Enter to open the Performance troubleshooter.
  • Then click on Next to get started. Wait until the process is completed.

System Maintenance Troubleshooter:

  • Tap the Win + R keys to open the Run dialog box.
  • Type “msdt.exe /id MaintenanceDiagnostic” in the field and hit Enter to open the System Maintenance Troubleshooter.
  • After that, click on Next to start troubleshooting the problem and wait until it’s done then check if it fixes the problem or not.

Option 6 – Uninstall the programs you installed recently

Chances are, some programs that you just installed might be the one that’s causing the BSOD error. Thus, you need to uninstall the program to resolve the problem.
  • In the search box, type in “control” and then click on Control Panel (desktop app) among the search results.
  • After that, select Programs and Features from the list which will give you a list of all the programs installed on your computer.
  • From there, look for the concerned program and select it and then uninstall it.
Note: If you have downloaded the app from the Windows Store, you can simply right-click on it from the application list and then uninstall it.

Option 7 – Run Windows Defender offline

You also have the option to run Windows Defender offline and scan your computer to see if any malware has infected the computer and the one that’s causing the INTERNAL_POWER_ERROR Blue Screen Error.
Read More
0x80071771, The specified file could not ...
If you are tried encrypting or decrypting a file using the default EFS engine but you receive an error message instead saying, “Error Applying Attributes, An error occurred applying attributes to the file: The specified file could not be decrypted”, read on as this post will help you sort out the problem. If you encounter this error you can use the error code in it. You will most likely get error code 0x80071771. This kind of error occurs when the File Explorer’s copy and paste feature was not able to read the source file being encrypted or decrypted. It could also occur if you try to access a file that has been on another computer previously.

To fix error code 0x80071771 when decrypting or encrypting a file, refer to the instructions provided below.

Step 1: You need to check first if you can decrypt the files encrypted by EFS. However, if you can’t, just proceed and then take full control of the file. Step 2: To take control of the file, open File Explorer and right-click on the partition, and then click on Properties. Step 3: After that, click on the Edit button under the Security tab. Step 4: Next, make sure that “Everyone” is selected under the Group or user names section. Step 5: Afterwards, the Permissions for Everyone section will be activated. Just make sure that all the checkboxes for Allow are checked and then click on the Apply button. Step 6: Once you’re done, click on the Advanced button. This will open a new window labeled Advanced Security Settings. From there, click on the Change link under the Owner section. Step 7: Now type your account name in the field and click on Check Names to verify the account name and click OK. Step 8: After that, select the “Replace owner on sub-containers and objects” option and then click OK. Step 9: Next, select Administrators in the Group or User names list and select Full Control in the Permissions for Administrators panel and click OK.
Read More
Diablo 2 Resurrected facing server issues
It has been some time since the release of Diablo 2 resurrected and overall reception was pretty good. People are enjoying the old classic game in hi-def. resolution and with new and improved visuals. Sadly some server issues are present still until this day and somewhat spoil the experience for players. diablo 2 server statusThe greatest lag and server crashes are pinpointed to game-creating events. When a player creates a new online game, the server needs to pull a lot of details from the database and make a game, due to some legacy code present this process takes some time and it is demanding a bit on the server-side, and although code was optimized to cater to more modern approach some legacy code still remains. Another thing that was spotted to affect performance itself is player behavior, to be more specific, modern gamer behavior. Where players find good builds and runs on the internet and then go to farm-specific areas or bosses for loot or experience points, which in return boils down to making plenty and short runs that are made by creating games and after run eliminating them. Now pair that with the previous statement about legacy server and database code and you can add 1 and 1 and see how this might be an issue. A lot of short games over legacy code are placing games in a state it was not designed for back in 2001 and therefore we have issues. Sadly solutions without completely rewriting the whole code are not very promising and they include rate limiting, which will prevent players to create many games in succession in a short period of time and maybe even login queues to drop a load on servers. Blizzard reached to people in the whole company, even old diablo 2 developers to ask for advice and they say that they are working on solutions so they could lift limitations and have everything running fine.
Read More
Bluetooth flaw, Android and Windows in danger
bluetoothResearchers have discovered 16 vulnerabilities in Bluetooth connections that could be exploited and make from minor to some serious damage to your device. The flaw can be used on chips manufactured by Intel, Qualcomm, and Texas Instruments while connecting to external devices like speakers, headphones, keyboards, mice, etc.

Who is affected?

Mentioned chips are used by many in a vast range of devices including big players with their products like Microsoft Surface laptops, Dell desktops, Samsung Phones, Google Pixel, and OnePlus handsets. The Bluetooth bug affects a wide range of devices, including smartphones, laptops as well as smart home gadgets. In total, more than one billion devices that rely on Bluetooth are believed to be impacted.

What is the damage?

The amount of damage possible with this flaw depends on the type of device with the chipset. Some devices can only be crashed after a specially crafted packet is sent to the flawed chip. If that's the case with your gadget, it can be easily resolved with a simple restart. With other devices, hackers can take advantage of the Bluetooth Classic flaw to remotely run malicious code. That could allow malware to be installed remotely. Researchers say vendors were informed about these issues months ago before the findings were published. The good news is this should have given plenty of time for the relevant patches to be pushed out that remedy the flaws. However, you'll need to make sure that you're running the latest version of the operating system to be protected by the patch crafted by the manufacturers.

Android Bluetooth threat

The researchers emphasize the lack of basic tests in Bluetooth certification to validate the security of Bluetooth Low Energy (BLE) devices. The BrakTooth family of vulnerabilities revisits and reasserts this issue in the case of the older, but yet heavily used Bluetooth classic (BR/EDR) protocol implementations. We would also advise users to disable Bluetooth on devices that do not need it. This way you can prevent attackers from sending you malformed LMP packets. Since BrakTooth is based on the Bluetooth Classic protocol, an adversary would have to be in the radio range of the target to execute the attacks. So, in a safe environment Bluetooth can be enabled.
Read More
How to Fix Windows 10 Upgrade Compare Exchange128 Error Message

Compare Exchange128 error – What is it

Some Windows 7 and Windows 8.1 users reported experiencing a Compare Exchange128 error when trying to upgrade to Windows 10. The error reads, “You can’t install Windows 10 because your processor doesn’t support CompareExchange128”. In order to upgrade to Windows 10 (64-bit), the CMPXCHG16B instruction must be present. If you receive this error, this mostly means that your CPU doesn’t have the CMPXCHG16B instruction.

Solution

Restoro box imageError Causes

The CompareExchange128 error normally occurs due to two possible reasons:

  • CPU lacks CMPXCHG16b Instruction
  • Old & Outdated BIOS – Even if your CPU has the CMPXCHG16b instruction, the CompareExchange128 issue can still occur if you have an older BIOS.

Further Information and Manual Repair

One main requirement to upgrade to Windows 10 is for your CPU to have the CMPXCHG16b instruction. You also need the right BIOS version to guarantee a smooth installation. See below on how to manually fix this issue.

NOTE: If you don’t feel confident using the manual methods listed below, it’s highly advisable to get help from an expert technician. If you don’t know someone, you can also use an automated tool to fix this.

Before performing any fixes, try to determine first if the cause of the error is due to your CPU lacking the CMPXCHG16b instruction. You can use a CPU Info tool that provides complete details about your processor, memory, and motherboard. If you’re looking for more in-depth information, you might also try command-line utilities. But, the safest and easiest way to check this is by simply searching online. Try using the search query: <CPU Model> CMPXCHG16b

Method 1 – Update your BIOS

This method will download the latest BIOS from your motherboard’s manufacturer. This makes sure your CPU has the CMPXCHG16b instruction needed to complete the Windows 10 64-bit installation. To update your computer’s BIOS, complete the following steps:

  1. Determine first the current BIOS you have on your computer. Open System Information Windows app and type msinfo32 in the search bar. The BIOS version will appear under the processor speed. Record it somewhere.
  1. Go to the support page of your motherboard’s manufacturer. Find if there’s any update on the BIOS that you’re currently using. If you find one, download the BIOS update file available. Make sure that you’re looking into the right model and you download all the necessary documentation. Otherwise, the BIOS update might not work.
  1. Update your BIOS. Most BIOS update steps are straightforward. Just make sure to follow the steps provided.

Method 2 – Install Windows 10 32-bit version

If updating the BIOS doesn’t work, what you can do is install a 32-bit version of Windows 10 instead of the 64-bit version. Here’s how to do this:

  1. Download and install the 32-bit version of Windows you currently have. If you have a Windows 7 64-bit version, get the 32-bit version of Windows 7. The same goes for Windows 8.1. When you do this, you might want to back up your files first. Remember that installing the 32-bit version works like other installations, and could delete some of your files.
  1. After installing the 32-bit version, go to Updates and install all the necessary updates. This includes upgrading to Windows 10 if you’re asked to.
  1. When you installed the Windows 10 upgrade, you’ll now have the Windows 10, 32-bit version installed. This will be the version activated on Microsoft servers. Despite this, the activated version stored is only applicable to your computer’s hardware, not the version of Windows 10.
  1. Download Windows 10, 64-bit version.
  1. Prepare an empty DVD or USB flash drive. Use Creation Media software then click the Create Installation Media for Another PC option.
  1. Install the 64-bit Windows 10 version you downloaded from Step 4. Make sure not to put anything when you’re asked to input the serial number.
  1. Once the installation is complete, you’ll have the 64-bit version of Windows 10.

Method 3 – Buy a new processor/motherboard

If the above two methods don’t work, there’s a great chance that this error occurs because of an outdated processor/motherboard. Your next possible solution is to buy an updated model that’s fully compatible with 64-bit Windows 10.

Method 4 – Download an automated tool

If all else fails, you might want to consider using this powerful automated tool to quickly fix the problem and any other computer-related issues.

Read More
Fix Unable to terminate the process Error in Windows 10
There are times when you may find it hard to kill a particular process in the Windows Task Manager and every time you try to do so, you will only get an error message saying, “Unable to terminate the process, The operation could not be completed, Access is denied”. If you are one of the users who is constantly getting this error, read on as this post will provide you with a couple of options you can try to resolve the problem. Refer to the given instructions below if you are unable to terminate a process in the Task Manager but before you proceed you need to restart your PC and then try killing the process again, if you’re still not able to do it, you need to follow the options laid out below.

Option 1 – Try using Taskkill

  • Open the Command Prompt as admin from the WinX Menu.
  • After opening Command Prompt, type in the following command and tap Enter to execute it:
taskkill /IM "processname" /T /F processname – it is the name of the process which you can see on the Details tab of the Windows Task Manager. /IM – it is the one that specifies the image name of the process, which follows, that is to be terminated. /T – it is the one that kills not just the main process but also the child process. /F – it is the one that terminates the process forcefully.

Option 2 – Try using the WMIC

  • Open Command Prompt as admin from the WinX Menu.
  • From the Command Prompt window that opens, type in the following command and hit Enter to execute it:
wmic process where name='processname.exe' delete
Note: In the given command, you need to replace “processname.exe” with the name of the particular process you want to terminate which is found in the Details tab of the Windows Task Manager.

Option 3 – Try using PowerShell

  • The first thing you have to do is open an elevated PowerShell prompt.
  • From there, type in the following command and hit Enter to execute it:
kill -id pid
Note: In the given command above, “pid” is the Process ID number of the process you want to terminate. And for you to identify this number, you need to open the Details tab of the Windows Task Manager once again and take note of the number against the process you want to get rid of. Alternatively, you can also run the following command in the PowerShell prompt that you’ve pulled up to get the process ID number:
Get-Process
For example, “5364” is the process ID number for the DimScreen.exe process which is the process you want to terminate. In order for you to kill this process, you need to type in this command:
kill -id 5364
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
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