ACTIVE MALWARE WINDOWS

How to fix
“System error 6118 has occurred” in Command Prompt
on Windows

Resolve the "System error 6118" in Windows 10 and 11 effortlessly using Command Prompt. Quick fixes with expert-tested solutions await you!

How to fix “System error 6118 has occurred” in Command Prompt?
Quick Summary
Error severity
Medium
Est. time
10 minutes
Offer Fortect PC Suite
Start fix →
Ad · we may earn a commission
0 Comments
01

What causes How to fix “System error 6118 has occurred” in Command Prompt?

  • Misconfigured firewall settings
  • Improper network settings or services
  • Disabled Computer Browser Service
  • Incorrect network protocols
  • Incorrect network adapter settings
Offer Fortect PC Suite

Repairs Windows system files, removes malware, and restores a clean OS state — without reinstalling.

Ad · we may earn a commission
Get Fortect PC Suite ↗

I tried to view all my devices on the network via Command Prompt via "net view" command, but I received an error that read, "System error 6118 has occurred." Anything I could do to resolve it?

In the landscape of network administration, the "net view" command in Command Prompt is an indispensable tool. This simple command provides a list of computers and resources shared on a network, helping admins monitor and manage network activities. Using it, one can get an overview of network resources, diagnose problems, and perform other networking tasks more efficiently.

The "net view" command works by querying the Server Message Block (SMB) protocol, which allows sharing of resources like files or printers over a network. Once executed, it communicates with the master browser, the computer responsible for collecting and distributing the list of devices connected to the network.

However, like any other computer process, the "net view" command is not immune to errors. One error that network administrators occasionally encounter is "System error 6118 has occurred." This error signifies that the command could not fetch a list of servers from the master browser.

Several factors can contribute to this issue. One major cause is misconfigured firewall settings. Firewalls are designed to control the network traffic for the system's security. However, incorrect firewall configurations can unintentionally block essential network services, thereby causing the 6118 error when "net view" is run.

Another potential cause is improper network settings or services. This might include misconfigured network protocols or incorrect network adapter settings. In other cases, the error might be due to a disabled Computer Browser Service, which plays a critical role in maintaining an updated list of devices on the network.

How to fix system error 6118 has occurred in command prompt
How to fix system error 6118 has occurred in command prompt

To resolve the error, users should check their firewall settings to ensure "net view" and other related services are not being blocked. Additionally, they can verify network settings or services, ensuring that they are configured correctly.

Below you will find several tips that should help you to fix "System error 6118 has occurred" in Command Prompt. We also recommend scanning the device with a powerful PC repair tool [d1], which can quickly find underlying Windows issues and fix them automatically for you.

Fix 1. Try alternative commands

If you are getting an error when trying to find a list of devices connected to your network, you can try an alternative command instead. Follow these steps:

  • Type cmd in Windows search.
  • Right-click on Command Prompt and select Run as administrator.
  • In the new window, copy and paste these commands (replace computername with actual name):
    Get-SmbShare -Name “computername”
    Get-SmbShare -Name “computername” | Format-List
    Get-SmbShare -Name “computername” | Format-List -Property *
  • You should see the list of your devices.

Fix 2. Enable responsible services

  • Type Services in Windows search and press Enter.
  • In the window, scroll down to Computer Browser Service.
  • Double-click the service to open Properties.
  • In the Properties window, check the Startup type section - select Automatic from the drop-down menu.
  • Click Start, Apply, and OK.
  • Now locate the Function Discovery Provider Host Service and perform the same steps.

How to fix system error 6118 has occurred in command prompt enable services
How to fix system error 6118 has occurred in command prompt enable services

Fix 3. Configure network settings

  • Type Control Panel in Windows search and press Enter.
  • Under Network and Internet, click View network status and tasks.
  • On the left side, select Change advanced sharing settings.
  • Here, make sure that Network discovery and other available settings are enabled for private and public networks.
  • Click Save changes.

How to fix system error 6118 has occurred in command prompt configure sharing settings
How to fix system error 6118 has occurred in command prompt configure sharing settings

Fix 4. Enable SMB

  • Type Control Panel in Windows search and press Enter.
  • Under Programs, select Uninstall a program.
  • On the left side, click Turn Windows features on or off.
  • Scroll down to SMB 1.0/ CIFS File Sharing Support and tick the checkbox.
  • Click OK.

How to fix system error 6118 has occurred in command prompt enable smb
How to fix system error 6118 has occurred in command prompt enable smb

Fix 5. Check Firewall settings

  • In Windows search, type in Allow an app through Windows Firewall and press Enter.
  • Click Change settings to unlock the list of the allowed apps.
  • Scroll down and find File and Printer Sharing - tick the checkboxes for Private and Public options.
  • Now find Network Discovery and enable it on Private and Public as well.
  • Click OK.

How to fix system error 6118 has occurred in command prompt change firewall settings
How to fix system error 6118 has occurred in command prompt change firewall settings

Fix 6. Reset internet

  • Open Command Prompt as administrator.
  • Copy and paste in following commands, pressing Enter after each:
    ipconfig /release
    ipconfig /flushdns
    ipconfig /renew
    netsh winsock reset
    netsh interface ipv4 reset
    netsh interface ipv6 reset
    netsh winsock reset catalog
    netsh int ipv4 reset reset.log
    netsh int ipv6 reset reset.log
    netsh advfirewall reset
  • Restart your system when done.

Bottom line

To resolve 'System error 6118 has occurred', users should check their firewall settings to ensure that the 'net view' command is not being blocked. Additionally, verifying network settings and ensuring that the Computer Browser Service is enabled can help. If these steps do not resolve the issue, further troubleshooting may be necessary.

Frequently asked questions

This error indicates that the computer cannot find the network path specified, often due to network discovery being turned off or issues with the network settings.

Go to Settings > Network & Internet > Status > Network and Sharing Center, then click on 'Change advanced sharing settings' and enable 'Turn on network discovery'.

You can run the command 'net view' to check if the network resources are visible and help diagnose any connectivity issues related to the error.

Did this fix work for you?
Gabriel E. Hall

Written & verified by

Malware Removal Expert
Malware removal Ransomware recovery Browser hijackers Spyware analysis Security tools testing

Gabriel E. Hall is a malware removal expert and cybersecurity researcher with over ten years of hands-on experience analysing threats and writing removal guides. She has documented hundreds of malware families — from browser hijackers and adware to ransomware and rootkits — providing step-by-step cleanup instructions tested against real infections. Gabriel's work combines deep technical analysis with clear, actionable language that readers without a security background can follow. Her guides consistently appear among the most-referenced resources for malware removal on Windows systems.

0 Comments

Be the first to comment

Still worried? Run a free check.

Paste any URL or domain — we'll scan it against 4.2M known threats in 10 seconds.

View full scanner → Add to your website →