Console not see shared folder with PSexec

Abstract: Resolve PsExec failing to access shared folders by verifying network discovery, correcting UNC path syntax, and ensuring administrative privileges.

Created: 2026-10-23 by

When PsExec fails to access a shared folder, the issue usually stems from network discovery being disabled, incorrect UNC path syntax, or insufficient administrative privileges on the target machine. Verify that both source and destination computers are on the same workgroup or domain, ensure the C$ or specific share is visible in File Explorer, and confirm that the account running PsExec has local administrator rights on the remote host to bypass UAC restrictions.

Verifying Network Discovery and Connectivity

The most common reason for PsExec not seeing a shared folder is that the underlying network stack does not allow the necessary traffic or visibility. PsExec relies on the SMB (Server Message Block) protocol to communicate with remote systems. If network discovery is turned off, the remote computer will not appear in the network neighborhood, and direct UNC paths may fail due to strict firewall rules. First, check the network profile of both the local and remote machines. They should be set to either "Private" or "Domain." If they are set to "Public," Windows Firewall will block incoming connections by default. You can verify this by opening the Network and Sharing Center and checking the current network type. Next, ensure that file and printer sharing is enabled. Even if you know the IP address, many modern Windows configurations require explicit permission for SMB traffic. Run the following command in an elevated Command Prompt on the remote machine to ensure the firewall allows inbound SMB connections:
netsh advfirewall firewall add rule name="Allow SMB Inbound" dir=in action=allow protocol=TCP localport=445
If you are working across different subnets, DNS resolution becomes critical. A failure here often manifests as a "network path not found" error. Use nslookup to verify that the hostname resolves correctly to the expected IP address. If DNS is unreliable, try using the IP address directly in your PsExec command to isolate whether the issue is name resolution or actual connectivity. For more details on resolving such network issues, see our guide on DNS and NSLOOKUP: Troubleshooting Network Connectivity Issues.

Correcting UNC Path Syntax

PsExec requires a specific format for specifying remote computers. Many users attempt to use a simple hostname or an IP address without the proper administrative share context. When accessing shared folders, you must use the Universal Naming Convention (UNC) path. The correct syntax for targeting a specific share is:
psexec \\ComputerName\ShareName command
However, PsExec typically connects to the administrative shares (like C$, D$, or ADMIN$) by default. If you are trying to execute a script located in a custom shared folder, you must ensure that the share permissions allow the connecting user to read and execute files. Standard network shares often lack the necessary execution rights for remote services. It is also important to note that PsExec cannot directly browse the network to find shares. You must provide the exact path. If you are unsure if the share is accessible, test it manually by typing \\ComputerName\ShareName into the Windows File Explorer address bar. If it opens, the network layer is functional, and the issue lies elsewhere. If it fails, check the share permissions on the remote server's properties dialog under the "Sharing" tab.

Handling Administrative Privileges and UAC

Even with correct paths and network settings, PsExec often fails due to User Account Control (UAC) restrictions. By default, PsExec attempts to create a service on the remote machine and run the command under that service's context. This process requires high-level administrative privileges. If the account you are using is a member of the Administrators group but still fails, it is likely because of Remote UAC filtering. In Windows Vista and later versions, even administrators have two tokens: a standard user token and an elevated administrator token. PsExec uses the standard token by default unless explicitly told otherwise. To bypass this, you can use the -accepteula flag along with the -u and -p flags to specify credentials if you are not already logged in as an admin. More importantly, you may need to disable remote UAC filtering on the target machine. This can be done by modifying the registry key HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System\LocalAccountTokenFilterPolicy and setting its value to 1. This change grants full administrative privileges to local accounts over the network without requiring additional authentication prompts. For users encountering specific access errors on newer Windows 11 builds, refer to our troubleshooting article on Fixing PsExec Access Error on Windows 11 23H2 and 24H2, which addresses recent security changes affecting remote execution.

Testing with Alternative Tools

If PsExec continues to fail despite verifying all the above steps, consider whether the environment supports legacy service creation. Some hardened environments disable the ability to create new services via RPC. In such cases, PsExec is fundamentally incompatible with the security policy in place. An alternative is to use PowerShell Remoting (WinRM). Unlike PsExec, which relies on SMB and service creation, WinRM uses HTTP/HTTPS ports (5985/5986) and is designed for modern automation. Ensure that WinRM is configured on the target machine by running Enable-PSRemoting -Force locally. Then, use Invoke-Command to execute scripts remotely. This method is generally more secure and less prone to the "shared folder not seen" errors associated with SMB-based tools. Another option is to copy the necessary files to the remote machine using Copy-Item with the -ToSession parameter if you have an active PowerShell session, or use robocopy via PsExec with the -s flag to suppress output while copying, ensuring the file exists locally before attempting execution.

Frequently Asked Questions

Why does PsExec say "Access Denied" even with admin rights?

This error typically occurs because of Remote UAC filtering, which downgrades your administrative token when connecting over the network. To fix this, enable the LocalAccountTokenFilterPolicy registry key on the target machine or use the -u and -p switches to explicitly provide elevated credentials during the PsExec call.

Can I use PsExec to access a non-administrative network share?

Yes, but you must specify the exact UNC path including the share name (e.g., \\Server\Share). However, PsExec runs commands under a service context, which may not have the same network credentials as your interactive login. You may need to map the drive within the command string or ensure the service account has permissions to that share.

What is the difference between PsExec and Invoke-Command?

PsExec uses SMB and creates a temporary service on the remote host, which can trigger antivirus alerts and require administrative shares. Invoke-Command uses PowerShell Remoting (WinRM) over HTTP/HTTPS, is more secure, supports better data serialization, and does not rely on creating local services, making it preferred for modern automation tasks.

How do I check if SMB is enabled on my network?

You can check SMB status by opening Control Panel > Programs > Turn Windows features on or off and ensuring SMB 1.0/CIFS File Sharing Support is checked if legacy compatibility is needed, though SMB 2.0/3.0 is enabled by default on modern Windows versions. Additionally, verify that port 445 is open in the Windows Firewall on both source and destination machines.

Does PsExec work on Windows Server 2019?

Yes, PsExec works on Windows Server 2019, but you may encounter black screen issues or session timeouts if RDP sessions are misconfigured. Ensure that the server allows interactive logons and that the console session is not locked. For related issues, see our guide on Fixing Black Screen Console Sessions for Certain Users on Windows 2019 Server.

Latest News

How to Display Output of xterm Command in Terminal Screen using Cron

Resolve the inability to display xterm output in a terminal screen from cron by redirecting logs or using wall instead of insecure X11 workarounds.

Read More
Expose Local Server on VPS Preserving Real Client IPs (OS Level)

Resolve VPS logging showing only gateway IPs by configuring reverse proxies to forward real client addresses via X-Forwarded-For headers.

Read More
How to Clear Recent Files History in Linux without Deleting Actual Files?

Clear recent files history in Linux by deleting ~/.local/share/recently-used.xbel without removing the actual files.

Read More
Best HDD Copy Strategy: Manually Syncing and Rewriting Scratch

Resolve data drift between two 4TB hard drives by using rsync with the --delete flag to manually sync and rewrite scratch data for an exact mirror.

Read More
Understanding Bash Prompt Abbreviations: An Overview

Resolve repetitive typing errors by creating and persisting Bash aliases in the .bashrc file for improved command-line efficiency.

Read More
Free Tools and Methods to Log Real-Time Performance Details in Task Manager

Log real-time CPU and memory metrics to CSV files using Windows Performance Monitor Data Collector Sets to troubleshoot system slowness.

Read More
Contact Qatar Airways Customer Service: Phone Number, Help Center, and More

Resolve urgent Qatar Airways reservation issues like flight changes and baggage claims using the US phone number +1801-855-5905 or online self-service tools.

Read More
Windows 11: Alt Codes Displaying Wrong Characters - Solutions

Resolve Windows 11 Alt codes showing wrong characters by verifying the US keyboard layout and enabling Num Lock.

Read More
Run Programs with Elevated Privileges: A Comprehensive Guide

Eliminates the need to type sudo for frequent administrative tasks by configuring .bashrc aliases or functions.

Read More
Dynamically Changing Dates in Excel Formulas Using Cells

Eliminate manual date updates in Excel by using cell references to create dynamic formulas that automatically adjust calculations when input dates change.

Read More
Granting Edit Access to a Specific Excel Sheet in an Office 365 User Email ID-Based Login

Excel Online lacks native sheet-level permissions, so users must split workbooks or use worksheet protection to isolate edit access for specific tabs.

Read More
Creating Network Load on Local Wi-Fi from One PC

Generate sustained Wi-Fi bandwidth load from a single PC using a VM SFTP server to test router stability and throughput.

Read More
Changing the Default Editor for Batch Files in Windows 11's File Explorer

Resolve the issue of batch files opening in Notepad by changing the default editor to a preferred application like VS Code.

Read More
Gain WiFi Connection Minutes Before Losing it by Changing MAC Address

Bypass MAC address filtering to restore WiFi connectivity temporarily when a device is blocked by network administrators.

Read More
Photos Folders Turned Black: Troubleshooting Picture Applications on Windows

Resolve black screens in Windows Photos by resetting the app, updating graphics drivers, and repairing system files.

Read More
Troubleshooting High CPU Temperature Values: A Step-by-Step Guide

Resolve high CPU temperatures and thermal throttling by monitoring with Speedfan, cleaning dust from cooling components, and replacing degraded thermal paste.

Read More
Make cURL establish TLS connection with CA unknown

Resolve cURL TLS connection failures with unknown or self-signed certificates by using the --insecure flag to bypass CA validation.

Read More
Troubleshooting Incorrect Network Metrics Values in Grafana, Prometheus, InfluxDB, and Telegraf

Fix incorrect network metrics in Grafana, Prometheus, InfluxDB, and Telegraf by verifying interface selection, resolving unit mismatches, and handling counter resets.

Read More
Start Another Terminal Window (cmd.exe) Windows Repair/Troubleshoot

Provides step-by-step instructions to access the Windows Command Prompt via bootable media for advanced system repair and troubleshooting.

Read More
Thinkpad P1 Gen 6: Sudden Thunderbolt 3 Dock USB-C Charging Stopped Working

Resolve sudden Thunderbolt 3 dock USB-C charging and internet failure on ThinkPad P1 Gen 6 by updating firmware, resetting the dock, and adjusting power settings.

Read More
ASUS Windows 11 Laptop: Internet Connection Issue with Hotspot

Resolve ASUS Windows 11 laptop spinning wheel issue when connecting to mobile hotspot by resetting network stack, disabling IPv6, and adjusting power settings.

Read More
Developing iOS Project with Firebase: Logging in and Sending Push Notifications

Integrates Firebase to enable secure user authentication and push notifications in iOS applications.

Read More
Troubleshooting Bash Script with Suspected Issues of Spaces, Dashes, Filenames and Quoting

Resolve Bash script failures caused by word splitting, globbing, and special characters in filenames by applying proper quoting techniques.

Read More
Populating OneDrive Folder for Local Backup without Affecting Remote Files

Prevent OneDrive from deleting remote files during Windows reinstallation by unlinking the account or using symbolic links to isolate local data.

Read More
Force First Frame as Keyframe Without Re-encoding: A Quick Solution

Resolve inaccurate seeking and playback glitches by re-encoding video to ensure the first frame is a valid keyframe.

Read More
Find Information in Database Using WSL (Ubuntu) on Windows-10

Resolve database connection issues from WSL Ubuntu on Windows 10 by configuring client tools and network access to query remote or local servers.

Read More
Configuring a New Router with Different Networks: One Family, One Guest

Resolve IP conflicts and isolate guest traffic by configuring a second router with a distinct subnet via its WAN port.

Read More
Quickly Open Multiple Stock Websites with a Single Command

Solve the problem of manually opening multiple stock research websites by creating a single command to launch them simultaneously on Windows, macOS, or Linux.

Read More
Improved Adobe Acrobat Search Experience: Access Advanced Search with Ease

Access advanced search filters like case sensitivity and regex in Adobe Acrobat by clicking More Options in the Find bar.

Read More
Port Forwarding VM via OpenVPN: A Comprehensive Guide

Configure OpenVPN server and iptables to forward specific ports from VPN clients to a virtual machine's internal IP address.

Read More
Understanding Partitions in the 1980s: A Look Back at MS-DOS and Master Boot Record

Explains how the Master Boot Record and partition table enabled MS-DOS to manage multiple disk volumes on a single physical drive.

Read More
Windows 10 Enterprise: Keyboard Not Detected in Managed Organization with Admin Privileges

Resolve Windows 10 Enterprise keyboard detection failures caused by Group Policy restrictions, driver corruption, or USB enumeration errors.

Read More
Can't Find x86_64 Versions of Applications on MacOS arm64 (M1)

Resolve missing x86_64 app issues on M1 Macs by installing Rosetta 2 and reinstalling apps as universal binaries.

Read More
How to Hide Installation Source for an Android App

Manage Android app installation source visibility by using USB transfers or file managers to reduce browser traces and isolate data via work profiles.

Read More
Connecting Momentus 4200.2 ST9808210A Hard Drive via USB Cable

Resolve inability to access Seagate Momentus 4200.2 ST9808210A hard drive by connecting it via USB using a compatible SATA-to-USB adapter and configuring the disk in Windows.

Read More