Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

net (command)

From Wikipedia, the free encyclopedia
Command for configurations from the command-line
net
TheReactOSnet command
DevelopersMicrosoft,IBM, ReactOS Contributors
Initial releaseApril 2, 1985; 40 years ago (1985-04-02)
Operating systemMS-Net,DOS,OS/2,Windows,ReactOS,eComStation,ArcaOS
PlatformCross-platform
TypeCommand
LicenseMS-Net, OS/2, Windows, eComStation, ArcaOS:Proprietarycommercial software
ReactOS:GNU General Public License
Websitedocs.microsoft.com/en-gb/previous-versions/windows/it-pro/windows-xp/bb490948(v%3dtechnet.10)
TheWindows CE 3.0net command

Incomputing,net is acommand inIBMOS/2 (includingeComStation andArcaOS),Microsoft Windows, andReactOS used to manage and configure the operating system from thecommand-line. It is also part of theIBM PC Network Program forDOS.[1]

Overview

[edit]

The command is primarily used to manage network resources.[2] It is an external command implemented asnet.exe.[3] When used in abatch file, the/Y or/N switches can be used to unconditionally answer Yes or No to questions returned by the command.[2] Thenet command has several sub-commands that can differ from one implementation or operating system version to another.

OnWindows CE .NET 4.2,[4]Windows CE 5.0[5] andWindows Embedded CE 6.0,[6] it is available as an external command stored in\Windows\net.exe. This version only supports theuse andview sub-commands.

net sub-commands
NameDescriptionDOS supportOS/2 supportWindows supportReactOS supportRemarks
accessManage accessNoIBM OS/2 LAN Server,OS/2 Warp 4.5[7]NoNo
accountsChange Netlogon service role and manage maximum user logon time, password expiration time and other account settingsNoIBM OS/2 LAN Server, OS/2 Warp 4.5[7]Windows NT,Windows 2000,Windows XP,Windows Vista,Windows 7,Windows 8,Windows 10[8][3][9]ReactOS 0.4.8[10]
adminRun administrative command on a remote serverNoIBM OS/2 LAN Server, OS/2 Warp 4.5[7]NoNo
aliasManage aliases currently defined in the domainNoIBM OS/2 LAN Server, OS/2 Warp 4.5[7]NoNo
appManage information about application definitionsNoIBM OS/2 LAN Server, OS/2 Warp 4.5[7]NoNo
appparmNoOS/2 Warp 4.5[7]NoNoOS/2 Warp 4.5 and later only
auditList and clear contents of the network audit log of the serverNoIBM OS/2 LAN Server, OS/2 Warp 4.5[7]NoNo
commList information about queues for shared serial devicesNoIBM OS/2 LAN Server, OS/2 Warp 4.5[7]NoNo
computerAdd or delete computer from domain databaseNoNoWindows 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[8][3][9][11][12]ReactOS 0.4.8[13]
configDisplayNetBIOS configuration informationNoIBM OS/2 LAN Server, OS/2 Warp 4.5[7]Windows 95, Windows 98, Windows NT, Windows 2000, Windows XP, Windows Vista, Windows 7, Windows 8, Windows 10[8][3][9]ReactOS 0.4.8[14]
continueContinue paused servicesIBM PC Network Program[1]IBM OS/2 LAN Server, OS/2 Warp 4.5[7]Windows NT, Windows 2000, Windows XP, Windows Vista, Windows 7, Windows 8, Windows 10[8][3][9]ReactOS 0.4.8[15]
copyCopy and append files locally and remotelyNoIBM OS/2 LAN Server, OS/2 Warp 4.5[7]NoNo
dasdManage and display directory limitsNoIBM OS/2 LAN Server, OS/2 Warp 4.5[7]NoNo
deviceList statuses of shared serial devices and stop current use of a deviceNoIBM OS/2 LAN Server, OS/2 Warp 4.5[7]NoNo
diagRun the Microsoft Network Diagnostic programNoNoWindows 95, Windows 98[8]No
errorList and clear network error logIBM PC Network Program[1]IBM OS/2 LAN Server, OS/2 Warp 4.5[7]NoNo
fileList files opened by remote computersIBM PC Network Program[1]IBM OS/2 LAN Server, OS/2 Warp 4.5[7]Windows NT, Windows 2000, Windows XP, Windows Vista, Windows 7, Windows 8, Windows 10[8][3][9]Unimplemented[16]
forwardRoute incoming messages and cancel forwardingIBM PC Network Program[1]IBM OS/2 LAN Server, OS/2 Warp 4.5[7]NoNo
groupAdd, display, or modify global groups in domainsNoIBM OS/2 LAN Server, OS/2 Warp 4.5[7]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[8][3][9][17][18]ReactOS 0.4.8[19]
helpDisplay syntaxNoIBM OS/2 LAN Server, OS/2 Warp 4.5[7]Windows 95, Windows 98, Windows NT, Windows 2000, Windows XP, Windows Vista, Windows 7, Windows 8, Windows 10[8][3][9]ReactOS 0.4.8[20]
helpmsgDisplay information on error messagesNoNoWindows NT, Windows 2000, Windows XP, Windows Vista, Windows 7, Windows 8, Windows 10[8][3][9]ReactOS 0.4.8[21]
initNoNoWindows 95, Windows 98[8]No
localgroupAdd, display, or modify local groupsNoNoWindows Server 2008, Windows Server 2012, Windows NT, Windows 2000, Windows XP, Windows Vista, Windows 7, Windows 8, Windows 10[8][3][9][22][23]ReactOS 0.4.8[24]
logStart/stop saving messages to a file/printer and display information about forwarding the current message logIBM PC Network Program[1]IBM OS/2 LAN Server, OS/2 Warp 4.5[7]NoNo
logoffNoNoWindows 95, Windows 98[8]No
logonNoNoWindows 95, Windows 98[8]No
moveMove files locally and remotelyNoIBM OS/2 LAN Server, OS/2 Warp 4.5[7]NoNo
nameList or manageNetBIOS namesIBM PC Network Program[1]IBM OS/2 LAN Server, OS/2 Warp 4.5[7]Windows NT, Windows 2000, Windows XP[8][9]Unimplemented[16]
passwordChange passwords on a server or in a domainNoIBM OS/2 LAN Server, OS/2 Warp 4.5[7]Windows 95, Windows 98[8]No
pausePause servicesIBM PC Network Program[1]IBM OS/2 LAN Server, OS/2 Warp 4.5[7]Windows NT, Windows 2000, Windows XP, Windows Vista, Windows 7, Windows 8, Windows 10[8][3][9]ReactOS 0.4.8[25]
printDisplay printer queue information or print job information, or control print jobsIBM PC Network Program[1]IBM OS/2 LAN Server, OS/2 Warp 4.5[7]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[8][9][26][27][28]Unimplemented[16]Deprecated in Windows 7 and Windows Server 2008 R2
riplmachNoOS/2 Warp 4.5[7]NoNoOS/2 Warp 4.5 and later only
riplmclasNoOS/2 Warp 4.5[7]NoNoOS/2 Warp 4.5 and later only
runNoIBM OS/2 LAN Server, OS/2 Warp 4.5[7]NoNo
sendSend messages to other users or computersIBM PC Network Program[1]IBM OS/2 LAN Server, OS/2 Warp 4.5[7]Windows NT, Windows 2000, Windows XP[8][9]Unimplemented[16]
separatorControl whether or not a separator page is printed at the beginning of a print fileIBM PC Network Program[1]NoNoNo
sessionManage server computer connectionsNoIBM OS/2 LAN Server, OS/2 Warp 4.5[7]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[8][9][3][29][30]Unimplemented[16]
shareManage shared resourcesIBM PC Network Program[1]IBM OS/2 LAN Server, OS/2 Warp 4.5[7]Windows Server 2008, Windows Server 2008 R2, Windows Server 2012, Windows NT, Windows 2000, Windows XP, Windows Vista, Windows 7, Windows 8, Windows 10[8][3][9][31][32]ReactOS 0.4.8[33]
startStart servicesIBM PC Network Program[1]IBM OS/2 LAN Server, OS/2 Warp 4.5[7]Windows 95, Windows 98, Windows NT, Windows 2000, Windows XP, Windows Vista, Windows 7, Windows 8, Windows 10[8][3][9]ReactOS 0.4.8[34]
statisticsDisplay and clear list of usage statistics for aworkstationNoIBM OS/2 LAN Server, OS/2 Warp 4.5[7]Windows NT, Windows 2000, Windows XP, Windows Vista, Windows 7, Windows 8, Windows 10[8][3][9]ReactOS 0.4.8[35]
statusList information about current network shares and server definition settingsNoIBM OS/2 LAN Server, OS/2 Warp 4.5[7]NoNo
stopStop servicesNoIBM OS/2 LAN Server, OS/2 Warp 4.5[7]Windows 95, Windows 98, Windows NT, Windows 2000, Windows XP, Windows Vista, Windows 7, Windows 8, Windows 10[8][3][9]ReactOS 0.4.8[36]
timeDisplay remote computer's current time or sync time with remote computerNoIBM OS/2 LAN Server, OS/2 Warp 4.5[7]Windows 95, Windows 98, Windows NT, Windows 2000, Windows XP, Windows Vista, Windows 7, Windows 8, Windows 10[8][3][9]Unimplemented[16]
useConnect/disconnect computer to/from shared resources, or display information about computer connectionsIBM PC Network Program[1]IBM OS/2 LAN Server, OS/2 Warp 4.5[7]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[8][3][9][37][38][4][5][6]ReactOS 0.4.8[39]
userAdd or modify user accounts, or display user account informationNoIBM OS/2 LAN Server, OS/2 Warp 4.5[7]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[8][3][9][40][41]ReactOS 0.4.8[42]
verDisplay information aboutworkgroup redirectorNoNoWindows 95, Windows 98[8]No
viewDisplay list of domains, computers, or resources shared by specified computersNoIBM OS/2 LAN Server, OS/2 Warp 4.5[7]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[8][3][9][43][44][4][5][6]Unimplemented[16]
whoList uses who are logged on current or remote domains, display user logon information, and list users with sessions to a specific serverNoIBM OS/2 LAN Server, OS/2 Warp 4.5[7]NoNo

Example

[edit]

Thenet use command has severalnetwork-related functions.

Connecting network drive and printer

[edit]

net use can control mounting ("mapping" in Microsoft terminology)drive shares and connecting shared printers in a network environment. This command makes use of theSMB (server message block) and theNetBIOS 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.

net use can display a list of network-connection information on shared resources.

Null session connections

[edit]

net use 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:

net use \\IP address\IPC$"" /u:""

For example, typing at the command prompt:

net use \\192.168.1.101\IPC$"" /u:""

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

[edit]

See also

[edit]

References

[edit]
  1. ^abcdefghijklmnIBM PC Network Program 1.0 Users Guide
  2. ^abNet - Services, File/Print shares, Permissions - Windows CMD - SS64.com
  3. ^abcdefghijklmnopqrstMS-DOS and Windows command line net command
  4. ^abc"net (Windows CE .NET 4.2)".docs.microsoft.com.
  5. ^abc"net (Windows CE 5.0)".docs.microsoft.com.
  6. ^abc"net (Windows Embedded CE 6.0)".docs.microsoft.com.
  7. ^abcdefghijklmnopqrstuvwxyzaaabacadaeafagahaiajakalamBatch files - The NET command
  8. ^abcdefghijklmnopqrstuvwxyzaaabnet commands in The Network Encyclopedia
  9. ^abcdefghijklmnopqrstuv"Net services commands".
  10. ^"Reactos/Reactos".GitHub. 3 November 2021.
  11. ^"Net computer".
  12. ^"Net computer".
  13. ^"Reactos/Reactos".GitHub. 3 November 2021.
  14. ^"Reactos/Reactos".GitHub. 3 November 2021.
  15. ^"Reactos/Reactos".GitHub. 3 November 2021.
  16. ^abcdefg"Reactos/Reactos".GitHub. 3 November 2021.
  17. ^"Net group".
  18. ^"Net group".
  19. ^"Reactos/Reactos".GitHub. 3 November 2021.
  20. ^"Reactos/Reactos".GitHub. 3 November 2021.
  21. ^"Reactos/Reactos".GitHub. 3 November 2021.
  22. ^"Net localgroup".
  23. ^"Net localgroup".
  24. ^"Reactos/Reactos".GitHub. 3 November 2021.
  25. ^"Reactos/Reactos".GitHub. 3 November 2021.
  26. ^"Net print".
  27. ^"Net print".
  28. ^"Net print". 3 February 2023.
  29. ^"Net session".
  30. ^"Net session".
  31. ^"Net share".
  32. ^"Net share".
  33. ^"Reactos/Reactos".GitHub. 3 November 2021.
  34. ^"Reactos/Reactos".GitHub. 3 November 2021.
  35. ^"Reactos/Reactos".GitHub. 3 November 2021.
  36. ^"Reactos/Reactos".GitHub. 3 November 2021.
  37. ^"Net use".
  38. ^"Net use".
  39. ^"Reactos/Reactos".GitHub. 3 November 2021.
  40. ^"Net user".
  41. ^"Net user".
  42. ^"Reactos/Reactos".GitHub. 3 November 2021.
  43. ^"Net view".
  44. ^"Net view".

Further reading

[edit]

External links

[edit]
Wikibooks has a book on the topic of:Guide to Windows Commands
Ecosystem
Interpreters
Terminals
File system navigation
File management
Archiving
Disk management
Processes
Registry
User environment
File contents
Scripting
Networking
Maintenance and care
Boot management
Software development
Miscellaneous
Retrieved from "https://en.wikipedia.org/w/index.php?title=Net_(command)&oldid=1314742460"
Categories:
Hidden categories:

[8]ページ先頭

©2009-2026 Movatter.jp