{{Short description|Command for configurations from the command-line}} {{lowercase}} {{Infobox software | name = net | logo = | screenshot = ReactOS-0.4.13 net command 667x610.png | screenshot size = | caption = The ReactOS <code>net</code> command | developer = Microsoft, IBM, ReactOS Contributors | released = {{Start date and age|1985|04|02}} | latest release version = | latest release date = | operating system = MS-Net, DOS, OS/2, Windows, ReactOS, eComStation, ArcaOS | platform = Cross-platform | genre = Command | license = MS-Net, OS/2, Windows, eComStation, ArcaOS: Proprietary commercial software<br /> ReactOS: GNU General Public License | website = {{URL|https://docs.microsoft.com/en-gb/previous-versions/windows/it-pro/windows-xp/bb490948(v%3dtechnet.10)}} }} [[File:Microsoft Windows CE Version 3.0 (Build 126) net command 800x574.png|thumb|300px|The Windows CE 3.0 <code>net</code> command]] In computing, '''<code>net</code>''' is a command in IBM OS/2 (including eComStation and ArcaOS), Microsoft Windows, and ReactOS used to manage and configure the operating system from the command-line. It is also part of the IBM PC Network Program for DOS.<ref name="ibmpcnetworkprogram">[https://archive.org/details/bitsavers_ibmpccommugram1.019856361559IBMPCNetworkProgram1.0_12755008 IBM PC Network Program 1.0 Users Guide]</ref>
==Overview== The command is primarily used to manage network resources.<ref name="ss64.com">[https://ss64.com/nt/net.html Net - Services, File/Print shares, Permissions - Windows CMD - SS64.com]</ref> It is an external command implemented as <code>net.exe</code>.<ref name="computerhope">[https://www.computerhope.com/nethlp.htm MS-DOS and Windows command line net command]</ref> When used in a batch file, the <code>/Y</code> or <code>/N</code> switches can be used to unconditionally answer Yes or No to questions returned by the command.<ref name="ss64.com" /> The <code>net</code> command has several sub-commands that can differ from one implementation or operating system version to another.
On Windows CE .NET 4.2,<ref name="CE .NET 4.2">{{Cite web|url=https://docs.microsoft.com/en-us/previous-versions/windows/embedded/ms879835%28v%3dmsdn.10%29|title=net (Windows CE .NET 4.2)|website=docs.microsoft.com}}</ref> Windows CE 5.0<ref name="CE 5.0">{{Cite web|url=https://docs.microsoft.com/en-us/previous-versions/windows/embedded/ms931463%28v%3dmsdn.10%29|title=net (Windows CE 5.0)|website=docs.microsoft.com}}</ref> and Windows Embedded CE 6.0,<ref name="CE 6.0">{{Cite web|url=https://docs.microsoft.com/en-us/previous-versions/windows/embedded/ee504152%28v%3dwinembedded.60%29|title=net (Windows Embedded CE 6.0)|website=docs.microsoft.com}}</ref> it is available as an external command stored in {{mono|\Windows\net.exe}}. This version only supports the ''use'' and ''view'' sub-commands.
{| class="wikitable sortable" |+ net sub-commands{{Anker|sub-commands}} |- !style="width:5em"| Name !style="width:20em"| Description !style="width:20em"| DOS support !style="width:20em"| OS/2 support !style="width:20em"| Windows support !style="width:10em"| ReactOS support !style="width:5em"| Remarks |- | access | Manage access | {{No}} | {{Yes|IBM OS/2 LAN Server, OS/2 Warp 4.5}}<ref name="robvanderwoude.com">[https://www.robvanderwoude.com/net.php Batch files - The NET command]</ref> | {{No}} | {{No}} | |- | accounts | Change Netlogon service role and manage maximum user logon time, password expiration time and other account settings | {{No}} | {{Yes|IBM OS/2 LAN Server, OS/2 Warp 4.5}}<ref name="robvanderwoude.com" /> | {{Yes|Windows NT, Windows 2000, Windows XP, Windows Vista, Windows 7, Windows 8, Windows 10}}<ref name="thenetworkencyclopedia">[http://www.thenetworkencyclopedia.com/entry/net-commands/ net commands in The Network Encyclopedia]</ref><ref name="computerhope" /><ref name="technet-winxp">{{Cite web|url=https://docs.microsoft.com/en-us/previous-versions/windows/it-pro/windows-xp/bb490949%28v%3dtechnet.10%29|title=Net services commands}}</ref> | {{Yes|ReactOS 0.4.8}}<ref>{{Cite web|url=https://github.com/reactos/reactos/blob/master/base/applications/network/net/cmdAccounts.c|title=Reactos/Reactos|website=GitHub|date=3 November 2021}}</ref> | |- | admin | Run administrative command on a remote server | {{No}} | {{Yes|IBM OS/2 LAN Server, OS/2 Warp 4.5}}<ref name="robvanderwoude.com" /> | {{No}} | {{No}} | |- | alias | Manage aliases currently defined in the domain | {{No}} | {{Yes|IBM OS/2 LAN Server, OS/2 Warp 4.5}}<ref name="robvanderwoude.com" /> | {{No}} | {{No}} | |- | app | Manage information about application definitions | {{No}} | {{Yes|IBM OS/2 LAN Server, OS/2 Warp 4.5}}<ref name="robvanderwoude.com" /> | {{No}} | {{No}} | |- | appparm | | {{No}} | {{Yes|OS/2 Warp 4.5}}<ref name="robvanderwoude.com" /> | {{No}} | {{No}} | OS/2 Warp 4.5 and later only |- | audit | List and clear contents of the network audit log of the server | {{No}} | {{Yes|IBM OS/2 LAN Server, OS/2 Warp 4.5}}<ref name="robvanderwoude.com" /> | {{No}} | {{No}} | |- | comm | List information about queues for shared serial devices | {{No}} | {{Yes|IBM OS/2 LAN Server, OS/2 Warp 4.5}}<ref name="robvanderwoude.com" /> | {{No}} | {{No}} | |- | computer | Add or delete computer from domain database | {{No}} | {{No}} | {{Yes|Windows Server 2000, Windows Server 2003, Windows Server 2003 with SP1, Windows Server 2003 R2, Windows Server 2008, Windows Server 2012, Windows NT, Windows 2000, Windows XP, Windows Vista, Windows 7, Windows 8, Windows 10}}<ref name="thenetworkencyclopedia" /><ref name="computerhope" /><ref name="technet-winxp" /><ref>{{Cite web|url=https://docs.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2008-R2-and-2008/cc730899(v%3dws.10)|title=Net computer}}</ref><ref>{{Cite web|url=https://docs.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2012-R2-and-2012/cc730899(v%3dws.11)|title=Net computer}}</ref> | {{Yes|ReactOS 0.4.8}}<ref>{{Cite web|url=https://github.com/reactos/reactos/blob/master/base/applications/network/net/cmdComputer.c|title=Reactos/Reactos|website=GitHub|date=3 November 2021}}</ref> | |- | config | Display NetBIOS configuration information | {{No}} | {{Yes|IBM OS/2 LAN Server, OS/2 Warp 4.5}}<ref name="robvanderwoude.com" /> | {{Yes|Windows 95, Windows 98, Windows NT, Windows 2000, Windows XP, Windows Vista, Windows 7, Windows 8, Windows 10}}<ref name="thenetworkencyclopedia" /><ref name="computerhope" /><ref name="technet-winxp" /> | {{Yes|ReactOS 0.4.8}}<ref>{{Cite web|url=https://github.com/reactos/reactos/blob/master/base/applications/network/net/cmdConfig.c|title = Reactos/Reactos|website = GitHub|date = 3 November 2021}}</ref> | |- | continue | Continue paused services | {{Yes|IBM PC Network Program}}<ref name="ibmpcnetworkprogram" /> | {{Yes|IBM OS/2 LAN Server, OS/2 Warp 4.5}}<ref name="robvanderwoude.com" /> | {{Yes|Windows NT, Windows 2000, Windows XP, Windows Vista, Windows 7, Windows 8, Windows 10}}<ref name="thenetworkencyclopedia" /><ref name="computerhope" /><ref name="technet-winxp" /> | {{Yes|ReactOS 0.4.8}}<ref>{{Cite web|url=https://github.com/reactos/reactos/blob/master/base/applications/network/net/cmdContinue.c|title=Reactos/Reactos|website=GitHub|date=3 November 2021}}</ref> | |- | copy | Copy and append files locally and remotely | {{No}} | {{Yes|IBM OS/2 LAN Server, OS/2 Warp 4.5}}<ref name="robvanderwoude.com" /> | {{No}} | {{No}} | |- | dasd | Manage and display directory limits | {{No}} | {{Yes|IBM OS/2 LAN Server, OS/2 Warp 4.5}}<ref name="robvanderwoude.com" /> | {{No}} | {{No}} | |- | device | List statuses of shared serial devices and stop current use of a device | {{No}} | {{Yes|IBM OS/2 LAN Server, OS/2 Warp 4.5}}<ref name="robvanderwoude.com" /> | {{No}} | {{No}} | |- | diag | Run the Microsoft Network Diagnostic program | {{No}} | {{No}} | {{Yes|Windows 95, Windows 98}}<ref name="thenetworkencyclopedia" /> | {{No}} | |- | error | List and clear network error log | {{Yes|IBM PC Network Program}}<ref name="ibmpcnetworkprogram" /> | {{Yes|IBM OS/2 LAN Server, OS/2 Warp 4.5}}<ref name="robvanderwoude.com" /> | {{No}} | {{No}} | |- | file | List files opened by remote computers | {{Yes|IBM PC Network Program}}<ref name="ibmpcnetworkprogram" /> | {{Yes|IBM OS/2 LAN Server, OS/2 Warp 4.5}}<ref name="robvanderwoude.com" /> | {{Yes|Windows NT, Windows 2000, Windows XP, Windows Vista, Windows 7, Windows 8, Windows 10}}<ref name="thenetworkencyclopedia" /><ref name="computerhope" /><ref name="technet-winxp" /> | {{No|Unimplemented}}<ref name="reactos-net-main">{{Cite web|url=https://github.com/reactos/reactos/blob/master/base/applications/network/net/main.c|title = Reactos/Reactos|website = GitHub|date = 3 November 2021}}</ref> | |- | forward | Route incoming messages and cancel forwarding | {{Yes|IBM PC Network Program}}<ref name="ibmpcnetworkprogram" /> | {{Yes|IBM OS/2 LAN Server, OS/2 Warp 4.5}}<ref name="robvanderwoude.com" /> | {{No}} | {{No}} | |- | group | Add, display, or modify global groups in domains | {{No}} | {{Yes|IBM OS/2 LAN Server, OS/2 Warp 4.5}}<ref name="robvanderwoude.com" /> | {{Yes|Windows Server 2000, Windows Server 2003, Windows Server 2003 with SP1, Windows Server 2003 R2, Windows Server 2008, Windows Server 2012, Windows NT, Windows 2000, Windows XP, Windows Vista, Windows 7, Windows 8, Windows 10}}<ref name="thenetworkencyclopedia" /><ref name="computerhope" /><ref name="technet-winxp" /><ref>{{Cite web|url=https://docs.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2008-R2-and-2008/cc754051(v%3dws.10)|title=Net group}}</ref><ref>{{Cite web|url=https://docs.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2012-R2-and-2012/cc754051(v%3dws.11)|title=Net group}}</ref> | {{Yes|ReactOS 0.4.8}}<ref>{{Cite web|url=https://github.com/reactos/reactos/blob/master/base/applications/network/net/cmdGroup.c|title=Reactos/Reactos|website=GitHub|date=3 November 2021}}</ref> | |- | help | Display syntax | {{No}} | {{Yes|IBM OS/2 LAN Server, OS/2 Warp 4.5}}<ref name="robvanderwoude.com" /> | {{Yes|Windows 95, Windows 98, Windows NT, Windows 2000, Windows XP, Windows Vista, Windows 7, Windows 8, Windows 10}}<ref name="thenetworkencyclopedia" /><ref name="computerhope" /><ref name="technet-winxp" /> | {{Yes|ReactOS 0.4.8}}<ref>{{Cite web|url=https://github.com/reactos/reactos/blob/master/base/applications/network/net/cmdHelp.c|title = Reactos/Reactos|website = GitHub|date = 3 November 2021}}</ref> | |- | helpmsg | Display information on error messages | {{No}} | {{No}} | {{Yes|Windows NT, Windows 2000, Windows XP, Windows Vista, Windows 7, Windows 8, Windows 10}}<ref name="thenetworkencyclopedia" /><ref name="computerhope" /><ref name="technet-winxp" /> | {{Yes|ReactOS 0.4.8}}<ref>{{Cite web|url=https://github.com/reactos/reactos/blob/master/base/applications/network/net/cmdHelpMsg.c|title = Reactos/Reactos|website = GitHub|date = 3 November 2021}}</ref> | |- | init | | {{No}} | {{No}} | {{Yes|Windows 95, Windows 98}}<ref name="thenetworkencyclopedia" /> | {{No}} | |- | localgroup | Add, display, or modify local groups | {{No}} | {{No}} | {{Yes|Windows Server 2008, Windows Server 2012, Windows NT, Windows 2000, Windows XP, Windows Vista, Windows 7, Windows 8, Windows 10}}<ref name="thenetworkencyclopedia" /><ref name="computerhope" /><ref name="technet-winxp" /><ref>{{Cite web|url=https://docs.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2008-R2-and-2008/cc725622(v%3dws.10)|title=Net localgroup}}</ref><ref>{{Cite web|url=https://docs.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2012-R2-and-2012/cc725622(v%3dws.11)|title=Net localgroup}}</ref> | {{Yes|ReactOS 0.4.8}}<ref>{{Cite web|url=https://github.com/reactos/reactos/blob/master/base/applications/network/net/cmdLocalGroup.c|title = Reactos/Reactos|website = GitHub|date = 3 November 2021}}</ref> | |- | log | Start/stop saving messages to a file/printer and display information about forwarding the current message log | {{Yes|IBM PC Network Program}}<ref name="ibmpcnetworkprogram" /> | {{Yes|IBM OS/2 LAN Server, OS/2 Warp 4.5}}<ref name="robvanderwoude.com" /> | {{No}} | {{No}} | |- | logoff | | {{No}} | {{No}} | {{Yes|Windows 95, Windows 98}}<ref name="thenetworkencyclopedia" /> | {{No}} | |- | logon | | {{No}} | {{No}} | {{Yes|Windows 95, Windows 98}}<ref name="thenetworkencyclopedia" /> | {{No}} | |- | move | Move files locally and remotely | {{No}} | {{Yes|IBM OS/2 LAN Server, OS/2 Warp 4.5}}<ref name="robvanderwoude.com" /> | {{No}} | {{No}} | |- | name | List or manage NetBIOS names | {{Yes|IBM PC Network Program}}<ref name="ibmpcnetworkprogram" /> | {{Yes|IBM OS/2 LAN Server, OS/2 Warp 4.5}}<ref name="robvanderwoude.com" /> | {{Yes|Windows NT, Windows 2000, Windows XP}}<ref name="thenetworkencyclopedia" /><ref name="technet-winxp" /> | {{No|Unimplemented}}<ref name="reactos-net-main" /> | |- | password | Change passwords on a server or in a domain | {{No}} | {{Yes|IBM OS/2 LAN Server, OS/2 Warp 4.5}}<ref name="robvanderwoude.com" /> | {{Yes|Windows 95, Windows 98}}<ref name="thenetworkencyclopedia" /> | {{No}} | |- | pause | Pause services | {{Yes|IBM PC Network Program}}<ref name="ibmpcnetworkprogram" /> | {{Yes|IBM OS/2 LAN Server, OS/2 Warp 4.5}}<ref name="robvanderwoude.com" /> | {{Yes|Windows NT, Windows 2000, Windows XP, Windows Vista, Windows 7, Windows 8, Windows 10}}<ref name="thenetworkencyclopedia" /><ref name="computerhope" /><ref name="technet-winxp" /> | {{Yes|ReactOS 0.4.8}}<ref>{{Cite web|url=https://github.com/reactos/reactos/blob/master/base/applications/network/net/cmdPause.c|title=Reactos/Reactos|website=GitHub|date=3 November 2021}}</ref> | |- | print | Display printer queue information or print job information, or control print jobs | {{Yes|IBM PC Network Program}}<ref name="ibmpcnetworkprogram" /> | {{Yes|IBM OS/2 LAN Server, OS/2 Warp 4.5}}<ref name="robvanderwoude.com" /> | {{Yes|Windows Server 2008, Windows Server 2012, Windows Server 2012 R2, Windows Server 2016, Windows Server (Semi-Annual Channel), Windows 95, Windows 98, Windows NT, Windows 2000, Windows XP, Windows Vista, Windows 8}}<ref name="thenetworkencyclopedia" /><ref name="technet-winxp" /><ref>{{Cite web|url=https://docs.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2008-R2-and-2008/cc772297(v%3dws.10)|title=Net print}}</ref><ref>{{Cite web|url=https://docs.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2012-R2-and-2012/cc772297(v%3dws.11)|title=Net print}}</ref><ref>{{Cite web|url=https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/net-print|title = Net print| date=3 February 2023 }}</ref> | {{No|Unimplemented}}<ref name="reactos-net-main" /> | Deprecated in Windows 7 and Windows Server 2008 R2 |- | riplmach | | {{No}} | {{Yes|OS/2 Warp 4.5}}<ref name="robvanderwoude.com" /> | {{No}} | {{No}} | OS/2 Warp 4.5 and later only |- | riplmclas | | {{No}} | {{Yes|OS/2 Warp 4.5}}<ref name="robvanderwoude.com" /> | {{No}} | {{No}} | OS/2 Warp 4.5 and later only |- | run | | {{No}} | {{Yes|IBM OS/2 LAN Server, OS/2 Warp 4.5}}<ref name="robvanderwoude.com" /> | {{No}} | {{No}} | |- | send | Send messages to other users or computers | {{Yes|IBM PC Network Program}}<ref name="ibmpcnetworkprogram" /> | {{Yes|IBM OS/2 LAN Server, OS/2 Warp 4.5}}<ref name="robvanderwoude.com" /> | {{Yes|Windows NT, Windows 2000, Windows XP}}<ref name="thenetworkencyclopedia" /><ref name="technet-winxp" /> | {{No|Unimplemented}}<ref name="reactos-net-main" /> | |- | separator | Control whether or not a separator page is printed at the beginning of a print file | {{Yes|IBM PC Network Program}}<ref name="ibmpcnetworkprogram" /> | {{No}} | {{No}} | {{No}} | |- | session | Manage server computer connections | {{No}} | {{Yes|IBM OS/2 LAN Server, OS/2 Warp 4.5}}<ref name="robvanderwoude.com" /> | {{Yes|Windows Server 2003, Windows Server 2003 with SP1, Windows Server 2003 with SP2, Windows Server 2003 R2, Windows Server 2008, Windows Server 2008 R2, Windows Server 2008 R2 with SP1, Windows Server 2012, Windows NT, Windows 2000, Windows XP, Windows Vista, Windows 7, Windows 7 with SP1, Windows 8, Windows 10}}<ref name="thenetworkencyclopedia" /><ref name="technet-winxp" /><ref name="computerhope" /><ref>{{Cite web|url=https://docs.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2008-R2-and-2008/hh750729(v%3dws.10)|title=Net session}}</ref><ref>{{Cite web|url=https://docs.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2012-R2-and-2012/hh750729(v%3dws.11)|title=Net session}}</ref> | {{No|Unimplemented}}<ref name="reactos-net-main" /> | |- | share | Manage shared resources | {{Yes|IBM PC Network Program}}<ref name="ibmpcnetworkprogram" /> | {{Yes|IBM OS/2 LAN Server, OS/2 Warp 4.5}}<ref name="robvanderwoude.com" /> | {{Yes|Windows Server 2008, Windows Server 2008 R2, Windows Server 2012, Windows NT, Windows 2000, Windows XP, Windows Vista, Windows 7, Windows 8, Windows 10}}<ref name="thenetworkencyclopedia" /><ref name="computerhope" /><ref name="technet-winxp" /><ref>{{Cite web|url=https://docs.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2008-R2-and-2008/hh750728(v%3dws.10)|title=Net share}}</ref><ref>{{Cite web|url=https://docs.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2012-R2-and-2012/hh750728(v%3dws.11)|title=Net share}}</ref> | {{Yes|ReactOS 0.4.8}}<ref>{{Cite web|url=https://github.com/reactos/reactos/blob/master/base/applications/network/net/cmdShare.c|title=Reactos/Reactos|website=GitHub|date=3 November 2021}}</ref> | |- | start | Start services | {{Yes|IBM PC Network Program}}<ref name="ibmpcnetworkprogram" /> | {{Yes|IBM OS/2 LAN Server, OS/2 Warp 4.5}}<ref name="robvanderwoude.com" /> | {{Yes|Windows 95, Windows 98, Windows NT, Windows 2000, Windows XP, Windows Vista, Windows 7, Windows 8, Windows 10}}<ref name="thenetworkencyclopedia" /><ref name="computerhope" /><ref name="technet-winxp" /> | {{Yes|ReactOS 0.4.8}}<ref>{{Cite web|url=https://github.com/reactos/reactos/blob/master/base/applications/network/net/cmdStart.c|title=Reactos/Reactos|website=GitHub|date=3 November 2021}}</ref> | |- | statistics | Display and clear list of usage statistics for a workstation | {{No}} | {{Yes|IBM OS/2 LAN Server, OS/2 Warp 4.5}}<ref name="robvanderwoude.com" /> | {{Yes|Windows NT, Windows 2000, Windows XP, Windows Vista, Windows 7, Windows 8, Windows 10}}<ref name="thenetworkencyclopedia" /><ref name="computerhope" /><ref name="technet-winxp" /> | {{Yes|ReactOS 0.4.8}}<ref>{{Cite web|url=https://github.com/reactos/reactos/blob/master/base/applications/network/net/cmdStatistics.c|title = Reactos/Reactos|website = GitHub|date = 3 November 2021}}</ref> | |- | status | List information about current network shares and server definition settings | {{No}} | {{Yes|IBM OS/2 LAN Server, OS/2 Warp 4.5}}<ref name="robvanderwoude.com" /> | {{No}} | {{No}} | |- | stop | Stop services | {{No}} | {{Yes|IBM OS/2 LAN Server, OS/2 Warp 4.5}}<ref name="robvanderwoude.com" /> | {{Yes|Windows 95, Windows 98, Windows NT, Windows 2000, Windows XP, Windows Vista, Windows 7, Windows 8, Windows 10}}<ref name="thenetworkencyclopedia" /><ref name="computerhope" /><ref name="technet-winxp" /> | {{Yes|ReactOS 0.4.8}}<ref>{{Cite web|url=https://github.com/reactos/reactos/blob/master/base/applications/network/net/cmdStop.c|title = Reactos/Reactos|website = GitHub|date = 3 November 2021}}</ref> | |- | time | Display remote computer's current time or sync time with remote computer | {{No}} | {{Yes|IBM OS/2 LAN Server, OS/2 Warp 4.5}}<ref name="robvanderwoude.com" /> | {{Yes|Windows 95, Windows 98, Windows NT, Windows 2000, Windows XP, Windows Vista, Windows 7, Windows 8, Windows 10}}<ref name="thenetworkencyclopedia" /><ref name="computerhope" /><ref name="technet-winxp" /> | {{No|Unimplemented}}<ref name="reactos-net-main" /> | |- | use | Connect/disconnect computer to/from shared resources, or display information about computer connections | {{Yes|IBM PC Network Program}}<ref name="ibmpcnetworkprogram" /> | {{Yes|IBM OS/2 LAN Server, OS/2 Warp 4.5}}<ref name="robvanderwoude.com" /> | {{Yes|Windows Server 2000, Windows Server 2003, Windows Server 2003 R2, Windows Server 2008, Windows Server 2008 R2, Windows Server 2012, Windows 95, Windows 98, Windows NT, Windows 2000, Windows XP, Windows Vista, Windows 7, Windows 8, Windows 10, Windows CE .NET 4.2, Windows CE 5.0, Windows Embedded CE 6.0}}<ref name="thenetworkencyclopedia" /><ref name="computerhope" /><ref name="technet-winxp" /><ref>{{Cite web|url=https://docs.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2008-R2-and-2008/gg651155(v%3dws.10)|title=Net use}}</ref><ref>{{Cite web|url=https://docs.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2012-R2-and-2012/gg651155(v%3dws.11)|title=Net use}}</ref><ref name="CE .NET 4.2" /><ref name="CE 5.0" /><ref name="CE 6.0" /> | {{Yes|ReactOS 0.4.8}}<ref>{{Cite web|url=https://github.com/reactos/reactos/blob/master/base/applications/network/net/cmdUse.c|title = Reactos/Reactos|website = GitHub|date = 3 November 2021}}</ref> | |- | user | Add or modify user accounts, or display user account information | {{No}} | {{Yes|IBM OS/2 LAN Server, OS/2 Warp 4.5}}<ref name="robvanderwoude.com" /> | {{Yes|Windows Server 2000, Windows Server 2003, Windows Server 2003 R2, Windows Server 2003 with SP1, Windows Server 2008, Windows Server 2012, Windows NT, Windows 2000, Windows XP, Windows Vista, Windows 7, Windows 8, Windows 10}}<ref name="thenetworkencyclopedia" /><ref name="computerhope" /><ref name="technet-winxp" /><ref>{{Cite web|url=https://docs.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2008-R2-and-2008/cc771865(v%3dws.10)|title=Net user}}</ref><ref>{{Cite web|url=https://docs.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2012-R2-and-2012/cc771865(v%3dws.11)|title=Net user}}</ref> | {{Yes|ReactOS 0.4.8}}<ref>{{Cite web|url=https://github.com/reactos/reactos/blob/master/base/applications/network/net/cmdUser.c|title = Reactos/Reactos|website = GitHub|date = 3 November 2021}}</ref> | |- | ver | Display information about workgroup redirector | {{No}} | {{No}} | {{Yes|Windows 95, Windows 98}}<ref name="thenetworkencyclopedia" /> | {{No}} | |- | view | Display list of domains, computers, or resources shared by specified computers | {{No}} | {{Yes|IBM OS/2 LAN Server, OS/2 Warp 4.5}}<ref name="robvanderwoude.com" /> | {{Yes|Windows Server 2000, Windows Server 2003, Windows Server 2003 R2, Windows Server 2008, Windows Server 2008 R2, Windows Server 2012, Windows 95, Windows 98, Windows NT, Windows 2000, Windows XP, Windows Vista, Windows 7, Windows 8, Windows 10, Windows CE .NET 4.2, Windows CE 5.0, Windows Embedded CE 6.0}}<ref name="thenetworkencyclopedia" /><ref name="computerhope" /><ref name="technet-winxp" /><ref>{{Cite web|url=https://docs.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2008-R2-and-2008/hh875576(v%3dws.10)|title=Net view}}</ref><ref>{{Cite web|url=https://docs.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2012-R2-and-2012/hh875576(v%3dws.11)|title=Net view}}</ref><ref name="CE .NET 4.2" /><ref name="CE 5.0" /><ref name="CE 6.0" /> | {{No|Unimplemented}}<ref name="reactos-net-main" /> | |- | who | List uses who are logged on current or remote domains, display user logon information, and list users with sessions to a specific server | {{No}} | {{Yes|IBM OS/2 LAN Server, OS/2 Warp 4.5}}<ref name="robvanderwoude.com" /> | {{No}} | {{No}} | |- |}
==Example== The '''<code>net use</code>''' command has several network-related functions.
===Connecting network drive and printer=== <code>net use</code> can control mounting ("mapping" in Microsoft terminology) drive shares and connecting shared printers in a network environment. This command makes use of the SMB (server message block) and the NetBIOS protocol on port 139 or 445. The basic Windows XP configuration enables this functionality by default. Thus users can connect to and disconnect from shared resources such as computers, printers and drives.
<code>net use</code> can display a list of network-connection information on shared resources.
===Null session connections=== <code>net use</code> also connects to the IPC$ (interprocess communication share). This is the so-called null session connection, which allows unauthenticated users. The basic syntax for connecting anonymously is: <syntaxhighlight lang=DOSbatch> net use \\IP address\IPC$ "" /u:"" </syntaxhighlight> For example, typing at the command prompt: <syntaxhighlight lang=DOSbatch> net use \\192.168.1.101\IPC$ "" /u:"" </syntaxhighlight> attempts to connect to the share IPC$ of the network 192.168.1.101 as an anonymous user with blank password. If successfully connected to the target machine, a lot of information can be gathered such as shares, users, groups, registry keys and more. This would provide a hacker with a lot of information about a remote user. This has changed in Windows NT 4.0 SP6 already. In Windows 2000 "null session connections" could have been enabled after changes of the system-configuration.
==Similar commands in other OSes== *Novell NetWare **'''map''' for mapping volumes (network drives) to drive letters **'''capture''' for capturing print queues to LPT ports
==See also== *List of DOS commands *MS-Net
==References== {{Reflist}}
==Further reading== *{{Cite book|author1=David Moskowitz|author2=David Kerr|year=1993|title=OS/2 2.1 Unleashed|publisher=Sams Publishing|isbn=978-0672302404}} *{{Cite book|first=William R.|last=Stanek|year=2008|title=Windows Command-Line Administrator's Pocket Consultant, 2nd Edition|publisher=Microsoft Press|isbn=978-0735622623}} *{{Cite book|author=John Paul Mueller|year=2007|title=Windows Administration at the Command Line for Windows Vista, Windows 2003, Windows XP, and Windows 2000|publisher=John Wiley & Sons|isbn=978-0470165799}}
==External links== {{Wikibooks|Guide to Windows Commands}} * [https://docs.microsoft.com/en-us/previous-versions/windows/it-pro/windows-xp/bb490948(v%3dtechnet.10) Microsoft TechNet] * {{Cite web |url=https://www.poftut.com/how-to-use-net-use-command-in-windows-command-line/ |title=How To Use Net Use Command In Windows Command Line? |publisher=poftut |archive-url=https://web.archive.org/web/20190419161732/https://www.poftut.com/how-to-use-net-use-command-in-windows-command-line/ |archive-date=2019-04-19}}
{{Windows commands}}
Category:Microcomputer software Category:OS/2 commands Category:Windows administration Category:Windows communication and services