This windows directory is currently in use

Fix: The Active Directory Domain Services is currently unavailable ‘Windows 7, 8 and 10’

The error Active Directory Domain Services is currently unavailable means that the system is not able to find and connect to your printer, hence the process is stopped and cannot proceed further. This process allows the computer to manage and allocate resources. If this error occurs, it means that there is most probably a problem with the permissions, drivers, UAC etc.

We have listed down a number of solutions for you to check. Start with the first one and work your way down.

Solution 1: Resetting Printer Spooler Settings

The spooler service is a software program which is responsible for managing all print jobs being sent to the computer printer. The print spooler service is usually visible to users and they can also cancel a print job which is being processed. It also allows them to manage jobs which are currently on the waitlist.

We can try restarting this service and check if this solves the problem.

  1. Press Windows + R to launch the Run application. Type “services.msc” in the dialogue box and press Enter.
  2. Locate the service “Print Spooler” present in the list of services. Double-click it to open its properties. Click the “Stop” button present underneath system status and press “Ok” to save changes.

  1. Since we have disabled the service, we can now focus on deleting printer files. Press Windows + E to launch the quick access and click on “This PC” present in the left navigation pane.
  2. Navigate to the following path:

C:\Windows\System32\spool\PRINTERS

Permission might be needed to access the following folder. If prompted, press Continue.

  1. Once in the folder, delete all the files in the PRINTERS folder and close the window.
  2. Now navigate back to the Services tab and Start the “Printer Spooler” service. Also, remember to keep the startup type as “Automatic”.

  1. Restart your computer and check if the printer connects correctly.

Solution 2: Adding Printer Manually and Updating Drivers

If restarting the printer spooler doesn’t work for you, we can try adding the printer again to your computer. Most of the time the printer is automatically added to your PC when you connect with all the drivers being installed. We can try updating the drivers and adding the printer again.

  1. Before we start the process, we need to remove the printer from your connected list of devices. Press Windows + R to launch the Run application. Type “control panel” in the dialogue box and press Enter.
  2. Once in the control panel, select “Large icons” using the drop-down present at the top right side of the screen and select “Devices and Printers”.
Читайте также:  Настроить впн соединение windows

  1. Locate your printer, right-click it and select “Remove device”. A UAC will pop up asking you to confirm your actions as an administrator.

  1. On the same window, click “Add a printer” present at the near top of the screen. A wizard will guide you on how to add your printer to your computer. Make sure that the printer is connected properly to your computer. If you are using the printer over a wireless network, try plugging it to your computer via a USB.

  1. Navigate to your manufacturer’s official website and download the latest drivers available to an accessible location. Press Windows + R, type “devmgmt.msc” and press Enter.
  2. Navigate to the subcategory of “Print queues”, expand it, select your printer, right-click it and click “Update Driver”.

  1. Select the second option “Browse my computer for driver software”.

  1. Navigate to the location where you downloaded the latest drivers for your printer. Select it and install it by pressing “Next”. When the process is complete, restart your computer and check if the problem is solved.

Solution 3: Granting access of PrinterPorts and Windows

If both the above solutions don’t work, we can try changing the permissions of files in the registry editor. It is possible that the error keeps emerging because your account doesn’t have access to some essential keys (such as PrinterPorts etc.).

Note: Registry editor is a powerful tool. Incorrect use or changing keys which you know nothing about can hamper your computer and make it unusable.

  1. Press Windows + R to launch the Run application. Type “regedit” in the dialogue box and press Enter.
  2. Once in the registry editor, navigate to the following file path:

HKEY_CURRENT_USER > Software > Microsoft > Windows NT > CurrentVersion

  1. Right-click on “Devices” and select “Permissions…”.

  1. Select your account from the list and click all checkboxes present under the column of “Allow”. Make sure that no item is checked under the column of “Deny”.

  1. Carry on the same procedure for the entries of “PrinterPorts” and “Windows”.

  1. Once done, restart your computer and check if the problem got solved.

Note: You should reinstall the printer again after implementing the above changes if the printer still doesn’t work.

Solution 4: Recognizing Printer using Other Applications

Another workaround to fix this issue is to recognize the printer using other applications. We will demonstrate this using NotePad as almost every computer has this application by default.

  1. Right-click on your Desktop, select New > Text Document

  1. Type anything in the blank space. Click File > Print

  1. A new window will pop up containing all the printers currently installed on your computer. If you can’t find your printer, click on “Find Printer…” present at the right side of the window. Now Windows will start detecting your printer and hopefully, the problem will be solved.
Читайте также:  Тест памяти средствами windows

Note: There were also some reports where users stated that upgrading their Office suite solved the problem. It seems that there were some specific files corrupt which were causing the problem.

Furthermore, you should also make sure that your Windows OS is updated to the latest build using Windows Update manager. If the printer still doesn’t work on your computer, you can try running the Printer Troubleshooter and also try using the printer on another computer. This will help in isolating the problem.

При попытке изменить имя пользователя терминал сообщает, что пользователь в данный момент используется процессом

Я пытаюсь изменить свое имя, а за совет здесь , однако после того, выполнив следующую команду:

И имя пользователя остается прежним. Кто-нибудь знает, как я мог это исправить и в конце концов изменить свое имя пользователя?

Цитировать man usermod :

Таким образом, вы должны убедиться, что переименованный пользователь не вошел в систему.

Кроме того, я отмечаю, что вы не используете это как root. Либо запустите его от имени пользователя root, либо запустите «sudo usermod».

Я думаю, что вы должны запустить команду с другим пользователем. Войдите в систему как root или другой пользователь и попробуйте снова. Если вы находитесь в окне x с пользователем, которого хотите изменить, звучит логично, что команды не выполняются.

Это в основном проблема с Ubutu, когда у вас нет учетной записи root для входа с первого места. Это создает противоречие: я пользователь группы sudoer. Я не могу изменить свой UID.

Не уверен, что это лучшее решение. Сначала я создаю поддельный аккаунт foo, добавив его в список sudo. Затем я вхожу в учетную запись foo и выполняю usermod -g MYOWNGID mylogin

У меня та же проблема с использованием usermod, она исправлена ​​с помощью параметра -m, который перемещал содержимое домашнего каталога в новую локализацию. Используйте эту опцию в сочетании с -d (измените основной каталог пользователя, где есть пользователь).

Problem Ejecting USB Mass Storage Device «This device is currently in use. Close any programs or windows that might be using the device, and then try again.»

Original title:Problem Ejecting USB Mass Storage Device

When I try to safely eject my external hard drive safely I get an error message with this title telling me that «This device is currently in use. Close any programs or windows that might be using the device, and then try again.» I have done this. I have also tried closing every program running on the computer and it does not help. I have also tried restarting the computer and this also does nothing. If anyone has any ideas that would be helpful please let me know.

1) How long have you been facing this issue?

2) Is this issue confined to any specific USB device?

This behavior can occur if there are open handles with any files in the USB (Universal Serial Bus) Mass Storage Device are in use by another program.

a) Download Process Explorer from the link below

b) Click Find, Find Handle or DLL (Dynamic Link Library) in the tool menu.

c) Type the drive letter of the USB device in the Handle or DLL substring textbox, and press Search Button.

Читайте также:  Как посмотреть температуру процессора windows 10 через командную строку

d) Find the process and its PID (Process Identifier) in the following box.

e) In system process tree view, find the process according to the Find Handle or DLL dialog box.

f) Press Ctrl + H to show Handles in Lower Pane View.

g) Find the File according with the drive letter, and right click it, choose Close Handle.

Note: Using Third Party Software, including hardware drivers can cause serious problems that may prevent your computer from booting properly. Microsoft cannot guarantee that any problems resulting from the use of Third Party Software can be solved. Using Third Party Software is at your own risk.

Method 3: Run an online scan for any threat and try to fix them

How To Know Which Process is Using a File or Folder in Windows

Ever wondered which program has a particular file or directory open? Quite often, when trying to delete a folder, Windows reports this:

This error also happens with a file, when we tried to move a file, or delete those file. How we can find out which program or application is currently using it and preventing us to delete/move it? To get the process holding those folder or file, we can use these two utilities:

Resource Monitor

For Windows 7 and above, you can use the built-in Resource Monitor.

Open Resource Monitor, which can be found

  • By searching for resmon.exe in the start menu, or
  • As a button on the Performance tab in your Task Manager

Resource Monitor from Task Manager’s Performance Tab

From CPU tab, use the search field in the Associated Handles section

When you’ve found the handle, you can identify the process by looking at the Image and/or PID column. You can then close the application if you are able to do that, or just right-click the row and you’ll get the option of killing the process (End Process) right there.

Process Explorer

Process Explorer shows you information about which handles and DLLs processes have opened or loaded.

  • Open Process Explorer (running as «administrator») by running procexp.exe or procexp64.exe.
  • Enter the keyboard shortcut Ctrl+F. Alternatively, click the “Find” menu and select “Find a Handle or DLL”.

Process Explorer — Find Handle or DLL

  • Type in the name of the locked file or other file of interest in the Search dialog box, then click «Search». Partial names are usually sufficient.
  • A list will be generated. There may be a number of entries. Click one of the entry, it’ll «Refreshing handles».

Process Explorer — Search

Same as Resource Monitor, an individual handle in the list can be killed by selecting it and pressing the delete key (or Close Handle). However, please be careful when deleting handles, as system instabilities may occur. Rebooting your system maybe will free the locked file/folder.

Process Explorer — Close Handle

Handle is a command line version of Process Explorer.

My Take

I prefer to use Resource Monitor compare to Process Explorer since Process Explorer is slower (especially during «Refreshing handles» process). If I can’t find the handle in Resource Monitor, then I use Process Explorer.

Liked this Tutorial? Share it on Social media!

Оцените статью