Net.exe is a built-in Windows command-line utility that manages network resources, user accounts, services, and shared drives. It helps system administrators and advanced users control network settings, troubleshoot connections, and manage Windows configurations without using the graphical interface.
This tool comes pre-installed on every Windows computer. You’ll find it essential when diagnosing network problems, mapping drives, or managing user permissions.
What Is Net.exe and Why Does It Matter?
Net.exe is a command prompt application located in your Windows System32 folder. The file path is typically C:\Windows\System32\net.exe.
This utility executes network-related commands through simple text instructions. Instead of clicking through multiple windows, you type one command and get immediate results.
Key capabilities include:
- Mapping and disconnecting network drives
- Starting and stopping Windows services
- Managing user accounts and passwords
- Viewing active network connections
- Sharing folders and printers
- Joining computers to domains
System administrators rely on net.exe daily because it works faster than GUI alternatives. It also functions in scripts and batch files for automated tasks.

How Net.exe Commands Work
Net.exe uses a straightforward syntax structure. You type “net” followed by a specific command and any required parameters.
Basic syntax pattern:
net [command] [parameters] [options]
The command prompt must run with administrator privileges for most operations. Right-click Command Prompt and select “Run as administrator” before executing net commands.
Common Net.exe Commands Explained
Net Use
This command manages network drive mappings. You can connect to shared folders, view existing connections, or remove mapped drives.
Connect to a network share:
net use Z: \\servername\sharename
View all current connections:
net use
Disconnect a mapped drive:
net use Z: /delete
Net User
Controls local user accounts on your computer. You can create users, change passwords, or view account details.
View all user accounts:
net user
Create a new user:
net user username password /add
Change a password:
net user username newpassword
Delete a user account:
net user username /delete
Net Start and Net Stop
These commands control Windows services. Services run background processes that keep Windows features operational.
Start a service:
net start "service name"
Stop a service:
net stop "service name"
View running services:
net start
Net Share
Manages shared folders on your computer. Other network users can access these folders if they have proper permissions.
Create a new share:
net share sharename=C:\foldername
View existing shares:
net share
Remove a share:
net share sharename /delete
Net View
Displays computers and resources available on your network. This helps identify accessible devices and shared resources.
View computers on network:
net view
View shares on specific computer:
net view \\computername
Net Accounts
Configures password policies and account settings for local user accounts.
View current policy:
net accounts
Set password expiration (90 days):
net accounts /maxpwage:90
Net Config
Displays configuration information about your workstation or server services.
View workstation settings:
net config workstation
View server settings:
net config server
Step-by-Step Guide: Mapping Network Drives with Net.exe
Mapping network drives lets you access shared folders as if they were local drives. Here’s how to do it properly.
Step 1: Open Command Prompt as administrator. Press Windows key, type “cmd”, right-click Command Prompt, select “Run as administrator”.
Step 2: Type the net use command with your target drive letter and network path:
net use X: \\192.168.1.100\Documents /persistent:yes
The /persistent:yes parameter makes the connection permanent across reboots.
Step 3: Add credentials if the shared folder requires authentication:
net use X: \\servername\share /user:username password
Step 4: Verify the connection worked:
net use
You’ll see your new mapped drive listed with its status.
Step 5: Access the drive through File Explorer. Your new drive letter appears under “This PC”.
To remove the mapping later:
net use X: /delete
Troubleshooting Common Net.exe Issues
Error 5: Access Denied
This occurs when you lack sufficient permissions. Run Command Prompt as administrator. If the error persists, verify your user account has access rights to the target resource.
Error 53: Network Path Not Found
The computer name or share name is incorrect, or the target computer is offline. Check spelling, verify the remote computer is powered on, and ensure file sharing is enabled.
Error 67: Network Name Cannot Be Found
The shared folder doesn’t exist or isn’t properly configured. Confirm the share name on the remote computer using net view \\computername.
Error 1219: Multiple Connections Not Allowed
You’re trying to connect to the same server with different credentials. Disconnect existing connections first:
net use * /delete
Then reconnect with the correct credentials.
Error 1326: Logon Failure
Username or password is incorrect. Verify credentials and try again. For domain accounts, use the format domain\username.
Command Not Recognized
Net.exe might be missing from your system path. Navigate to C:\Windows\System32 directory first, then run commands. If the file is missing, run System File Checker:
sfc /scannow
Advanced Net.exe Techniques for Power Users
Creating Batch Scripts
Automate repetitive network tasks by saving commands in a .bat file. Create a text file with your commands and save it with a .bat extension.
Example batch file for mapping multiple drives:
@echo off
net use M: \\server1\documents /persistent:yes
net use N: \\server2\projects /persistent:yes
net use O: \\server3\archives /persistent:yes
echo Drives mapped successfully
pause
Scheduling Net Commands
Use Task Scheduler to run net commands automatically. Create a batch file with your commands, then schedule it to run at specific times or system events.
Combining Commands
Chain multiple net commands together using & or && operators:
net use Z: /delete && net use Z: \\newserver\share
The && operator only runs the second command if the first succeeds.
Remote Execution
Execute net commands on remote computers using PsExec from Microsoft Sysinternals:
psexec \\remotecomputer net user newuser password /add
Net.exe Security Considerations
Net.exe operates with high system privileges. Improper use can create security vulnerabilities or disrupt system operations.
Password Security
Never store passwords in plain text batch files. Anyone with file access can read them. Use credential managers or prompt for passwords during execution.
User Account Management
Creating user accounts with net commands bypasses some built-in Windows security prompts. Always:
- Use strong passwords meeting complexity requirements
- Assign appropriate group memberships
- Review account permissions regularly
- Remove temporary accounts promptly
Network Share Permissions
Sharing folders exposes data to network access. Configure NTFS permissions alongside share permissions. The most restrictive permission applies.
Audit Trail
Net commands don’t always generate detailed logs. Enable audit policies in Local Security Policy to track administrative actions:
- Open Local Security Policy
- Navigate to Advanced Audit Policy Configuration
- Enable auditing for relevant categories
Malware Risks
Malicious software sometimes uses net commands to create backdoor accounts or modify services. Monitor for:
- Unexpected user accounts
- Service configuration changes
- New network shares
- Unusual scheduled tasks
Regular security software scans help detect suspicious net.exe usage.
Net.exe vs PowerShell: Which Should You Use?
PowerShell offers more powerful networking cmdlets than net.exe, but both have appropriate use cases.
| Feature | Net.exe | PowerShell |
|---|---|---|
| Speed | Fast for simple tasks | Slower startup time |
| Syntax | Simple, easy to remember | More complex, more flexible |
| Compatibility | Works on all Windows versions | Requires PowerShell 2.0+ |
| Output Format | Plain text | Objects that can be filtered |
| Scripting | Basic batch files | Advanced automation |
| Learning Curve | Minimal | Moderate to steep |
Use net.exe when:
- You need quick results for simple tasks
- You’re working with older Windows versions
- You prefer straightforward syntax
- You’re writing simple batch files
Use PowerShell when:
- You need detailed output formatting
- You’re building complex automation
- You want to filter and manipulate results
- You’re managing modern Windows environments
Many administrators use both tools depending on the specific situation.
Real-World Use Cases for Net.exe
Scenario 1: IT Support Remote Assistance
A user can’t access a shared folder. You remotely diagnose the issue:
net view \\fileserver
This shows available shares. Then verify their connection:
net use
If they’re not connected, map the drive with proper credentials.
Scenario 2: Startup Script for Employees
New employees need several network resources mapped automatically. Create a login script with net commands that runs at startup, providing immediate access to required folders.
Scenario 3: Service Recovery
A critical Windows service stops unexpectedly. Rather than navigating through Services.msc, quickly restart it:
net stop "Windows Update"
net start "Windows Update"
Scenario 4: Temporary File Sharing
You need to quickly share a folder with a colleague. Create a share in seconds:
net share ProjectFiles=C:\Work\Project /grant:everyone,read
Remove it when finished:
net share ProjectFiles /delete
Scenario 5: Password Reset Emergency
A user forgets their local account password and you’re working remotely. Reset it immediately:
net user username newpassword
They regain access without requiring physical presence at their computer.
Net.exe Performance and Resource Usage
Net.exe consumes minimal system resources. The executable file is approximately 50KB. Commands execute quickly because they directly interface with Windows networking subsystems.
Typical execution times:
- Net use commands: Under 1 second for local operations
- Net view commands: 2-5 seconds depending on network size
- Net user commands: Under 1 second
- Net share commands: Under 1 second
Large networks with hundreds of computers may experience slower net view response times as the command queries all available devices.
The tool doesn’t run continuously. It executes your command, performs the requested action, then terminates. No background processes remain unless you’re maintaining active network connections.
Net.exe Alternatives and Related Tools
Net1.exe
Located in the same System32 folder, net1.exe is the underlying executable that net.exe calls. You rarely need to use it directly. Windows automatically invokes net1.exe when you run net commands.
Netsh
Network Shell (netsh) provides more advanced networking configuration. It handles firewall rules, IP addressing, and wireless settings that net.exe doesn’t cover. Learn more about networking tools at Microsoft’s official documentation.
PowerShell Networking Cmdlets
Modern Windows management increasingly favors PowerShell. Relevant cmdlets include:
New-SmbMapping: Maps network drivesGet-SmbConnection: Views network connectionsNew-LocalUser: Creates user accountsStart-Service: Manages Windows services
Third-Party Tools
Several utilities expand on net.exe functionality:
- NetSetMan: GUI for managing network profiles
- PsTools: Remote administration utilities from Sysinternals
- NetDrive: Advanced network drive mapping with cloud support
Net.exe Command Reference
| Command | Purpose | Common Usage |
|---|---|---|
| net accounts | Password policies | net accounts /maxpwage:90 |
| net computer | Add/remove computers from domain | net computer \\PC01 /add |
| net config | Display configuration | net config workstation |
| net continue | Resume paused service | net continue "service name" |
| net file | Display open files | net file |
| net group | Manage global groups | net group "Group Name" /add |
| net help | Display command help | net help use |
| net helpmsg | Explain error codes | net helpmsg 53 |
| net localgroup | Manage local groups | net localgroup administrators |
| net pause | Pause a service | net pause "Print Spooler" |
| net session | View/manage connections | net session |
| net share | Manage shared resources | net share docs=C:\Documents |
| net start | Start a service | net start "Service Name" |
| net statistics | Display statistics | net statistics workstation |
| net stop | Stop a service | net stop "Service Name" |
| net time | Synchronize time | net time \\server /set |
| net use | Manage network connections | net use Z: \\server\share |
| net user | Manage user accounts | net user username /add |
| net view | Display network resources | net view \\computername |
Conclusion
Net.exe remains a powerful command-line tool for managing Windows networks in 2026. Its simple syntax and fast execution make it ideal for system administrators, IT professionals, and advanced users who need efficient network management.
The utility handles essential tasks like mapping drives, managing user accounts, controlling services, and sharing resources. While PowerShell offers more advanced capabilities, net.exe still provides the quickest solution for common networking operations.
Master the core commands covered in this article and you’ll troubleshoot network issues faster, automate routine tasks more efficiently, and manage Windows systems with greater confidence. The tool requires no installation, works across all Windows versions, and integrates seamlessly into scripts and batch files.
Keep your Command Prompt shortcuts handy and practice these commands in a test environment. With experience, net.exe becomes an indispensable part of your Windows administration toolkit.
Frequently Asked Questions
Is net.exe safe or could it be malware?
The legitimate net.exe file located in C:\Windows\System32 is a safe Windows component. However, malware sometimes disguises itself with the same filename in different folders. Verify the file location and run antivirus scans if you suspect problems. The genuine file is digitally signed by Microsoft.
Can I use net.exe on Windows 10 and Windows 11?
Yes, net.exe works on all modern Windows versions including Windows 10, Windows 11, Windows Server 2019, and Windows Server 2022. The core commands remain consistent across versions, though some advanced features may vary.
Why do some net commands require administrator privileges?
Commands that modify system settings, create user accounts, or manage services need elevated permissions to prevent unauthorized changes. This security measure protects your system from accidental or malicious modifications. Always run Command Prompt as administrator when using net.exe.
How do I see all available net commands?
Type net help in Command Prompt to display a complete list of available commands. For detailed information about a specific command, type net help [command] such as net help use. This shows syntax, parameters, and examples for that command.
Can net.exe commands work in PowerShell?
Yes, you can execute net.exe commands directly from PowerShell. The syntax remains identical. However, PowerShell offers native cmdlets that often provide more functionality and better output formatting for similar tasks. Choose the tool that best fits your specific needs.
- How to Uninstall Apps from the Start Menu in Windows 11/10 (2026 Guide) - April 2, 2026
- How to Fix Overscan on Windows 11/10: Stop Your Screen Getting Cut Off (2026) - April 1, 2026
- How to Disable Lock Screen on Windows 11/10 in 2026 - April 1, 2026
