Logo

A Quick Guide to Fixing Connapi.dll Error Code

Connapi.dll Error Code - What is it?

Connapi.dll is a type of dynamic link library file. This file contains small programs like any other DLL file and is called to load certain programs on your PC. The Connapi.dll error message occurs either when using or installing programs.

This error message is displayed in either of the following messages:

“Connapi.dll Not Found"

"This application failed to start because connapi.dll was not found. Re-installing the application may fix this problem."

"The file connapi.dll is missing."

"Cannot start [APPLICATION]. A required component is missing: connapi.dll. Please install [APPLICATION] again."

"Cannot find [PATH]connapi.dll"

Solution

Restoro box imageError Causes

Connapi.dll error may occur due to numerous reasons on your PC. The most common causes include:

  • Missing Connapi.dll file
  • Corruption of the Connapi.dll file
  • Driver Issues
  • Viral Infection
  • Registry Issues such as bad and invalid entries

This error may hamper your ability to access your desired programs causing you a great deal of inconvenience. And if the underlying cause of the error is related to the registry, then your computer can be at serious risks like system failure and crash.

Further Information and Manual Repair

To resolve Connapi.dll error code on your PC, here is a list of solutions. These are easy, very simple to perform, deliver the best results, and more importantly require no technical expertise.

Solution 1: Check your Recycle Bin - You May Have Deleted the File Accidentally

As dll files are shared files, it is possible that you accidentally deleted the Connapi.dll file while uninstalling a program from your system. In such a situation, go to the recycle bin and look for the file.

If you find the missing Connapi.dll file, simply restore it and then try running your desired program again. If the program runs, then the error is resolved. However, if it still persists, then try other solutions given below.

Solution 2: Update the Drivers

Try updating drivers for hardware devices on the system. To do this, go to the start menu and then Control Panel. Double click on Add or Remove programs icon.

Now select incompatible drivers and remove them. After that, restart your PC to activate changes. Now go to the manufacturers’ website to download new drivers and install them on your PC.

Solution3: Scan for Viruses

Another solution is to scan for viruses and malware. Sometimes these can also damage and corrupt dll files on your system. To perform a scan, simply download a powerful antivirus program and run it.

Solution 4: Clean and Restore the Registry

If the error code is still there, then this means the problem is triggered by the registry issues. To resolve it you must clean the registry and remove all the unnecessary and obsolete files like junk files, internet history, temporary files, and cookies.

The best way to clean these files instantly is to install Restoro. This is an advanced, cutting-edge, and multi-functional PC Fixer. It has a user-friendly interface and is integrated with powerful utilities like a registry cleaner, anti-virus, and a system optimizer. It is compatible with all Windows versions.

The registry cleaning feature scans your entire PC in seconds and detects all the registry issues. It removes all the bad registry entries and unnecessary files. Simultaneously, it also fixes the system files and dll files like Connapi.dll.

The anti-virus utility removes all types of malicious software on your system while the system optimizer utility ensures your system performs at its optimum speed.

To resolve Connapi.dll error, click here to download Restoro.

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

Disabling the Recently Opened Files in Windows
The Windows 10 operating system comes with a user-friendly interface as well as better security features compared to its previous versions. One of these new features is the “Recently Opened Files” feature which displays all the files you’ve opened recently in File Explorer. Although it might seem useful, some users see this as a privacy concern especially if there are other users that use the same computer. If you are one of these users, read on as this post will guide you on how you can disable the “Recently Opened Files” feature in Windows 10. There are three ways you can disable the “Recently Opened Files” feature. You can manually clear the recent files, or disable the feature via Control Panel. You can also do it using the Group Policy Editor.

Option 1 – Manually clear the recent files

The first thing you can do is to clear the recent files manually. Since the information about the recently opened files is stored in the form of cached data, you can locate this data and delete it manually, from time to time. To do that, follow these steps:
  • Tap the Win + R keys to open the Run utility and copy this address in the field: %AppData%MicrosoftWindowsRecent
  • Next, tap the Ctrl + A keys to select all the items and then tap the Shift + Delete keys simultaneously.
  • After that, a prompt will appear where you have to click on Yes. This will delete all the recently opened files in the File Explorer the next time you open it.

Option 2 – Disable the feature via Control Panel

The next option you can try to disable the feature is via Control Panel. Refer to these steps to do so:
  • First, click on the Start Menu button and select the Settings icon.
  • After that, click on Personalization and then on Start located on the left pane.
  • Next, scroll down until you see the “Show recently opened items” in Jump Lists on the Start or the Taskbar and click on it and then toggle it off.

Option 3 – Disable the feature using the Group Policy Editor

If you are using the Windows 10 Pro version, then you have access to edit the functions in the Group Policy. The Group Policy function has the option that can disable all the default services of Windows 10. Note that in this step, you will permanently disable the “Recently Opened Files” feature. So before you proceed, make sure that you really want to disable this feature permanently and not in the meantime.
  • Tap the Win + R keys to open the Run dialog box and type “gpedit.msc” in the field and click OK or tap Enter to open the Group Policy Editor.
  • Next, on the left side pane, click on the “User Configuration” option and then click the “Administrative Templates” option.
  • After that, select the “Start Menu and Taskbar” option and select the “Don’t keep the history of recently opened documents” option in the right pane.
  • Now double click on this option and check the “Enabled” option and then click on Apply and OK buttons to save the changes made.
Read More
What to do if you cannot switch between Programs on Taskbar in Windows 10
It is common to run multiple programs and applications at the same time and it’s important to be able to switch between them using their Taskbar icons or using the usual Alt + Tab shortcut. However, there are times when you might suddenly find that neither of the aforementioned methods worked and you will no longer be able to switch between programs in the Windows Taskbar. To fix this issue, refer to the options given in this post. For instance, when you have multiple instances of Microsoft Edge running and every time you press the Alt + Tab combo nothing happens so you are left with no choice but to minimize everything and then hover your mouse on the icon and switch between the instances of Edge. You will also notice that the right-click on the taskbar won’t respond back and will only keep on showing the loading circle icon. Here are a few tips you can follow to fix the issue with the Windows 10 Taskbar.

Option 1 – Try to restart the Windows Explorer

This is one of the basic things you can try as restarting Windows Explorer helps in refreshing the user interface and makes most of the things work in relation to the user interface.
  • To get started, tap the Alt + Ctrl + Del keys to pull up the Windows Task Manager.
  • After opening Task Manager, look for “explorer.exe” under the list of programs.
  • Once you find the explorer.exe, right-click on it and click Restart.

Option 2 – Try changing the Foreground Lock Time

Aside from restarting Windows Explorer, you could also try changing the Foreground Lock Time to fix the issue with the Taskbar.
  • Tap the Win + R keys to open the Run dialog box.
  • Then type in regedit in the field and tap Enter to open the Registry Editor.
  • Next, go to this registry key – HKEY_CURRENT_USERControl PanelDesktop
  • Next, change the ForegroundLockTimeout value from200000 to 0. After that, it will make sure that no other application will take away the focus from your current program or application. It could be that some other application has taken away the focus and even when you try to actually switch, the focus gets back to the old one. Anyhow, since you already changed the value of ForegroundLockTimeout, it will ensure that the focus is not switched.
Note: If you are running some Full-Screen applications there are some devices especially the gaming ones, disable the Windows key to make sure that you won’t be able to switch. If this is the case, you need to make some modifications to the Full-Screen games.
Read More
Steam updates including storage management
Valve has released a big update to its online store and distribution platform Steam. Among typical bugs fixing and making the user experience a little more fluid, we have received some major updates as well. Please take note that you need to update Steam itself to the latest version in order to get new features.

steam libraryStorage management Page update

The storage management page has received a complete redesign and UX overhaul and it is now much easier to manage your game libraries and create new ones. The page itself looks and feels a little console more like but thanks to that it offers a much easier and clearer look and feel. steam storage managerAnother thing with the Steam store management page is the ability to move installation files from one location to another. Let’s say that you have two or more hard disk drivers in your machine and that you have SSD that you use for running stuff since it is fast and larger and slower one for storage. Now you can easily and quickly move one installation from one to another in order to take advantage of your faster SSD for quicker LOAD game times without making a new installation.

Steam Download page improvements

The download page has also received some love from Valve by enabling us to now see the installation progress. So far on the download page of Steam, you would only get download progress but it has been updated to show installation progress after download as well now making it more straightforward and giving you a general idea of how much more time there is to wait in order to start gaming. steam download pageAlso, you can now drag and drop items in the download bracket to reorder download orders or place them as active downloads to start downloading right away.
Read More
Installing Wi-Fi drivers in Windows
If you don’t have the required drivers installed in your computer, the hardware that you try to connect to your computer will most likely fail. In order to keep the operating system running on your computer, manufacturers develop drivers that can work harmoniously with your devices and applications. However, internet Wi-Fi connections can fail if suitable drivers are not installed. Worry not though for this post will guide you in installing Wi-Fi drivers on your Windows 10 computer. As you know, a driver is an essential piece of software designed for a specific operating system like Windows 10, Linux, and many more. The operating system uses it to communicate with other hardware devices such as printers and mice. Most hardware manufacturers feature a support page of their own product where you can look for the necessary drivers available for download. You will see that the Windows operating system has a set of drivers that are already installed and you do not have to do anything except plug in the device. So if the driver is not locally available, it will pull it down from its web server and automatically install it for you after you connect the device. However, there are instances when you might encounter some issues while using your Wi-Fi and during these times, you might have to reinstall your Wi-Fi drivers so read on as this post will provide you guidelines in installing Wi-Fi drivers in Windows 10. Refer to the steps below to do so. Step 1: First, go to your manufacturer’s website and look for the right driver you want to install to download your Wi-Fi driver. Step 2: After that, you have to download the correct Wi-Fi driver if it’s available. You have to know the exact name and version of the driver so that you can download it and this information can be found from the Device Manager. Just make sure that you have the right wireless adapter driver downloaded. Step 3: Once done, open the setup of the new driver that you’ve downloaded earlier and run the file and then follow the next on-screen instructions that appear right after. Step 4: You’re not done yet as you need to verify if you have downloaded and installed the correct Wi-Fi driver. Refer to the sub-steps below to do so:
  • First, right-click on the Start button and select the Device Manager to open it.
  • From there, look for the Network Adapters and expand its category to make all the network adapters visible including the wireless adapter.
  • You can easily spot the wireless adapter as it has the “wireless” term in its entry.
  • Next, right-click on the wireless driver entry in the Device Manager and select Network adapters, and then click on Properties to check the version number of the driver.
  • Now select the Driver tab and view the details. If it looks well then it means that you have the right version of the driver installed.
Step 5: Restart your computer.
Read More
Microsoft blocking Office users
Microsoft Office 365 banerMicrosoft starting as of today will block its Office 365 users if they are using Internet Explorer or early versions of Edge browsers. So if you are using older non Chromium Edge versions of Microsoft browsers you can no longer access Office services until you switch. Now normally I would fully support this kind of decision since Internet explorer is a slow and vulnerable browser and the edge is similar in that regard. The new edge browser is great and it should be used but the issue I have is that Office 365 is not free, it is a premium feature and I am wondering how Microsoft plans to deal with people that have already paid for service but suddenly cannot access it anymore.
Read More
Some Steam tips and tricks for easy life
steamSteam has cemented itself as the largest digital game shop in the World. First, release all the way back on September 12th, 2003, it was meant to be a standalone software client aimed to deliver updates to Valve’s games. It was soon expanded to include titles from third parties. The greatest Steam expansion and its popularity started in 2004 with the release of Half-life 2. Steam allowed prepurchased editions to be downloaded before the official release of the game making it available for play the moment it was officially out. Very soon after Steam gained its popularity, Valve has opened doors to other developers and offered them to use Steam as means for a digital distribution platform. Today it hosts over 30000 different game titles, not including DLC or applications. And how soon Valve’s steam deck is coming out soon we would like to share some great tips and tricks about Steam itself for easy everyday gaming.

Steam guard account security

Security of any of your accounts should be something that you really take seriously. So as always use a strong password for Steam but if you want an extra layer of security for it, and you should, use the Steam built-in feature: Guard Account Security. In order to activate Security Guard go to Steam>Settings>Account>Manage Steam Guard Account Security. Once enabled you will be able to use the Steam mobile application for special code when opening Steam or your email address.

Use Steam beta feature

Once a Steam account is created by default you will download and install the client. In the client, you will have the latest features available but there are more Steam features than default ones, beta features that can offer some improved and new functionality, and do not worry, they are stable and bug-free. I have been in Steam beta for years and not even once have I had any issues with the client itself but I have always had the latest features that will come to regular users later. To enable beta participation to go to Steam>Settings>Account, open the drop-down Beta participation menu, and choose Steam Beta Update. Confirm on OK and restart the Steam client. You will now get all the latest features first.

Manage your library via Collections

The collection is a neat idea for organizing your large game library into different collections or sections easily expanded and contracted for easier navigation and organization. To add the game to a collection just right-click on it and select Add To>New Collection, make a name for a collection like action, RPG, or whatever rocks your boat, and you are done. Once the collection is created other games can be added to it simply just by dragging it into the desired collection.

Make shelves

Shelves are ways to see your collections in the larger areas of the Steam clients. By clicking Add Shelf>Choose a Shelf, you can now add your collection to a shelf on the larger part of the client as a horizontal scrolling container with your chosen games. There are also some predefined shelves like All Games, Recent friend activity, and more.

Hide Game from Library

By right-clicking on a game and selecting Manage>Hide This Game you will remove the game from the active view of your Steam library. Note that the game will still be owned and a part of your library, you will just not be able to see it. This is a great feature when for example you have some things that came as a part of the game pack you are not really interested in when you have 2 different versions of the same game as for example standard and deluxe edition or just by simply not wanting to have game visible in the library. You can find a hidden game by typing its name in the search box and from there you can unhide it.

Play game soundtracks inside Steam

Some games offer you to purchase their soundtracks if you like music from them and some even include OST with a regular purchase. Steam lets you play these soundtracks and even lets you import your own music library folder into it in order to play all of your music inside the client itself. It has even options to automatically stop music playing once the game is run and you can make playlists as well. Your purchased game soundtracks are automatically included, the rest you will need to add by pointing Steam to the folder where you keep music in.

Configure gamepad

Inside Steam, you can configure your gamepad’s general settings, big picture settings, desktop settings, etc. Steam embraced the idea that many OC users these days own and play with gamepads so it has implemented configuration options inside it. To configure your pad go to Steam>Settings>Controller.

Use big picture Steam mode

Big picture mode is Steam's idea of making Steam an entertainment center. Once it is activated it switches from the application into full-screen mode aimed at large TV screens or monitors. You can easily navigate through it via gamepad, mouse, keyboard, or other devices. You have access to the store, your game library, etc. Same as your typical steam app but a little different. You can easily activate it via View> Big Picture Mode and see for yourself is this something you prefer over a standard application layout.

Enable Steam Cloud

Steam Cloud is a great feature that uses cloud storage to save your game progress meaning that you can easily switch to another PC, install games there and continue where you have left off. Many games support this feature instead of keeping saves locally and it is a great feature worth turning it ON. To turn and use Steam Cloud service go to Steam>Settings>Cloud>Enable Steam Cloud Synchronization. Just remember to check does game you are playing supports this option.

Share your Games via Family sharing

Family sharing is a Steam feature allowing you to share your game library with up to 5 accounts on up to 10 different devices. This is a great way to let other members of your family or even close friends enjoy some games you have or vice versa. They will get as well their own save games so you can sleep safe knowing that your progress can not be changed or hindered. Family sharing can be turned ON by logging into PC Steam client where you would like to share your library and navigate to Steam>Settings>Family and then clicking on Authorize Library Sharing On This Computer.

Refund a game

Sometimes the game is not the same as advertised, sometimes it will not work on your PC, sometimes hardware specifications are too high making the game unplayable, etc. For whatever reason, you might have Steam offers you a full game price refund if you wish to do so, you only need to meet 2 criteria, the game must have been purchased within 2 weeks period, older purchases cannot be refunded, and your game playtime must not be over 2 hours of game time. If you fit into this category all you need to do in order to get the full money back is going to Help>Steam Support, pick a recent game from the eligible list, and ask for a refund.

Gift a game

As you can buy gifts for your friends or loved ones in real life, Valve made sure you can do it in digital as well. Gifting game via Steam is simple and straightforward. Choose a game you wish to gift, go to your shopping cart and instead of clicking Purchase for myself, click on Purchase As a Gift, from there you will be taken to your friend list to choose to whom you would like to gift a game along with the option to write a little note to the receiver like happy birthday, enjoy or whatever.

Stream games in Steam itself

Although Steam is not there yet in streaming as Twitch or Facebook gaming is, there is an option to stream your game sessions on it. Click on Steam>Settings>Broadcast to make all adjustments and start streaming. You can also watch streams from your friend list and Steam is now broadcasting popular streams directly to its client if you want to watch it.

Take a game screenshot

By pressing F12, you can take a screenshot from any game and save it inside your Steam cloud library. You can change of course this default screenshot key via Settings>In-Game and if you would like to see your screenshots you can always do it under View Screenshot Library on a game’s page. That’s it, our Steam tips and tricks for easy and good gaming life, I hope to see you soon on errortools.com for your daily articles, tips, and tricks.
Read More
Steam proton to run Windows games on Linux
Steam protonDespite popular belief, there are a lot of users running Linux OS. Linux offers great security and working environment and 96.3% of the world's top 1 million servers run on Linux. 90% of all cloud infrastructure operates on Linux and practically all the best cloud hosts use it. But gaming on Linux is limited, enter Steam proton a Valve’s gaming solution.

What is Steam proton?

Proton is a WINE fork with some extra capabilities, to play games and run applications not native and not made to run natively under Linux OS. It is supposed to bridge the Gaming issues for PC users and let them more freedom in choosing an operating system to game on.

Find out if your game supports Proton

Although there are a lot of titles that nowadays run natively on Linux some will still need proton in order to run at all and sadly some of them will not be able to run on Linux even via proton but seeing how Valve is busy and it is trying to push its ideas and technology slowly this gap is closing. In order to see how the game you want to play performs and behaves on Linux and proton environment visit https://www.protondb.com/ and find out. As soon as the site loads you will be greeted with statistics and a search option to find out the status of the desired game with one of the given statuses: Borked, Bronze, Silver, Gold, Platinum, and Native. As you probably guessed native means that the game will work on Linux out of the box and borked will probably not work at all. Platinum and gold status means that game will run on proton without any input or tweaks from the user while silver and bronze means that it will work but might need some tweaks in order to make it work.

How to get Steam proton?

In order to run games under proton inside Linux, you will need firstly a Steam client which luckily works naturally on Linux. Unlocking/activating Steam Proton on your Linux-based system is easy. Just head over to Steam > Settings > Steam Play and toggle the option “Enable Steam Play for Supported Titles”. Valve has tested and fixed some Steam titles and you will now be able to play those titles. However, if you wish to go even further beyond, and play titles that even Valve has not tested, toggle the option “Enable Steam Play for all titles”.

Conclusion

Even we are not there yet, native gaming on Linux is gaining a foothold each day. Will Steam’s OS with proton technology be one that will turn the tide from Windows or some other tech we cannot tell but one thing is for sure, more choices mean better products so I am hopeful for a bright future.
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
Fix False Notifications in Action Center
There is a central location in Windows 10 that allows users to view all the notifications from its Action Center. Aside from viewing notifications, users can also manage them and take necessary actions in just one single place. Notifications in Windows 10 look similar to a message icon but can be at variance in function. However, recently, a number of users reported that even though they receive notifications about new actions but when opening them, they see nothing. In other words, the notification is false, and to fix this, read on as this post will provide you a couple of workarounds. The Windows 10 Notifications and Action Center notification messages might show a mismatch. For instance, Windows 10 may say that you have some notifications but when you open Action Center, you find it empty and there are actually no notifications there. Take the case of the following screenshot, the Windows 10 Notification says that there are 6 new notifications available for viewing but the Action Center says otherwise. Before you troubleshoot the problem, you might want to run System Restore especially if you’ve made some changes in your computer prior to this issue which might have messed with the Windows 10 Notifications and Action Center. To perform System Restore, refer to these steps:
  • 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 the problem wasn’t fixed and you’re still getting false notifications, you might want to troubleshoot the problem further using the options given below.

Option 1 – via Windows PowerShell

  • In the Start search, type “PowerShell” in the field and hit Enter to pull up the Windows PowerShell window.
  • Next, copy and paste this command and hit Enter to execute it: Get-AppxPackage | % { Add-AppxPackage -DisableDevelopmentMode -Register “$($_.InstallLocation)AppxManifest.xml” -verbose }
  • After that, reboot your computer and check if the false notifications are now gone.

Option 2 – Try renaming the Usrclass.dat file

DAT errors like the ones that are associated with the Usrclass.dat file, most likely occur during computer startup, program startup, or while you try to use a specific function in your program. Even so, it can easily be fixed. How? Refer to the given steps below.
  • Tap the Win + R keys to open the Run dialog box.
  • Then type %localappdata%MicrosoftWindows and hit Enter to get to the location of the UsrClass.dat file.
  • After that, look for a file named UsrClass.dat and once you’ve found it, right-click on it and select the Rename option.
  • Now rename the file to UsrClass.old.dat and then restart your computer and see if the problem is now fixed or not.
Read More
Mapped network drives are not working
When you have to connect to a drive that’s on a different computer or on external storage, that’s where the mapped network drives come in. Mapped network drives make accessing files a lot easier. However, there are times when it won’t work for some reason. Windows will notify you about the unavailability of mapped network drives in several ways. For one, Windows might display a red X on the network drives or it could be that its status will be unavailable when you try to use it from the Command Prompt or via a notification. It is recommended that you run a few scripts when you log in to your PC as it may so happen that the network drive takes more than usual to connect. Before you start troubleshooting the problem using the given options below, keep in mind that some workouts might only work under certain scenarios. You might need some network access at logon or you might need access to the Group Policy settings. So you need to choose what you prefer more. You can try the given workarounds below if the mapped network drives are not showing or connecting or working on your Windows 10 computer. These workarounds use scripts to make sure that you are connected to them as soon as you start to use your PC. As mentioned, before you can troubleshoot, you need to create scripts first. There are two scripts here namely MapDrives.ps1 which is executed by the second script named MapDrives.cmd and is done at a regular and non-elevated Command Prompt. Follow the steps below to get started.
  • You have to create a script file named “MapDrives.cmd” first and then save it on a place where the files are safe. To do that, open a text editor like Notepad and then copy and paste the following script:
PowerShell -Command "Set-ExecutionPolicy -Scope CurrentUser Unrestricted" >> "%TEMP%StartupLog.txt" 2>&1 PowerShell -File "%SystemDrive%ScriptsMapDrives.ps1" >> "%TEMP%StartupLog.txt" 2>&1
  • After that, save the file and name it “MapDrives.cmd”.
  • Next, create a script file named “MapDrives.ps1” and then copy and paste the following content. Just make sure to save both scripts in the same folder.
$i=3 while($True){     $error.clear()     $MappedDrives = Get-SmbMapping |where -property Status -Value Unavailable -EQ | select LocalPath,RemotePath     foreach( $MappedDrive in $MappedDrives)     {         try {             New-SmbMapping -LocalPath $MappedDrive.LocalPath -RemotePath $MappedDrive.RemotePath -Persistent $True         } catch {             Write-Host "There was an error mapping $MappedDrive.RemotePath to $MappedDrive.LocalPath"         }     }     $i = $i - 1     if($error.Count -eq 0 -Or $i -eq 0) {break}     Start-Sleep -Seconds 30 } Note: Now that you’ve created the script files, it’s time for you to proceed to the options given below.

Option 1 – Try creating a startup item

Note that this option only works on devices that have network access at login. So if it’s not there, the script will fail to reconnect the network drivers automatically. To create a startup item, here’s what you have to do:
  • Open the Startup folder located at %ProgramData%MicrosoftWindowsStart MenuProgramsStartUp.
  • From there, copy and paste the MapDrives.cmd.
  • After that, open the Scripts folder located at %SystemDrive%Scripts copy-paste MapDrives.ps1 and then copy and paste MapDrives.ps1 in there.
Note: After you complete the steps above, a log file named “StartupLog.txt” will be created in the %TEMP% folder. Now all that’s left for you to do is to log out of your computer and then log back in. This will ensure that the mapped drives are open.

Option 2 – Create a scheduled task

It is possible to create a scheduled task that runs as soon as you log in to your computer. To create a scheduled task, follow the steps below.
  • You have to copy the MapDrives.ps1 script file to the scripts folder of Windows located at %SystemDrive%Scripts.
  • After that, open the Task Scheduler and select Action > Create Task.
  • Next, type a name and description of the task in the General tab.
  • Then click on the Change User or Group button and select a local user group and click OK.
  • Now check the box labeled “Run with highest privileges” and switch to the Triggers tab.
  • From there, create a new trigger with the “At Logon” option in the Begin the task drop-down menu and then click OK.
  • After that, switch to the Actions tab and create a new action then choose to Start a program.
  • Next, type “Powershell.exe” in the Program/Script field, and in the Add arguments (optional) field, type the following:
-windowsstyle hidden -command .MapDrives.ps1 >> %TEMP%StartupLog.txt 2>&1
  • And in the Start in the (optional) field, type “%SystemDrive%Scripts” as the location of the script file.
  • Now under the Conditions tab, select the “Start only if the following network connection is available” option and then select Any connection and click OK.
  • Restart your computer or log off from your account and then log back in so that the task will be executed.

Option 3 – Use the Group Policy settings

You need this option if the mapped network drives are defined via Group Policy settings. You have to update the action of the drive maps to Replace. As a result, it will delete the existing mapped drive and create the mapping on each logon again. However, any settings on the mapped drive that are changed from the Group Policy settings will be gone on each logon. So if the changes don’t work, you need to run the gpupdate command together with the /force parameter in order to refresh the Group Policy setting quickly.
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