Monday, August 23, 2010

Really Cool Network Commands




Really simple to use and useful network commands at command prompt
NET [ ACCOUNTS | COMPUTER | CONFIG | CONTINUE | FILE | GROUP | HELP | HELPMSG | LOCALGROUP | NAME | PAUSE | PRINT | SEND | SESSION | SHARE | START | STATISTICS | STOP | TIME | USE | USER | VIEW ]
NET ACCOUNTS
Adjust account settings.
[/FORCELOGOFF:{minutes | NO}] [/MINPWLEN:length]
[/MAXPWAGE:{days | UNLIMITED}] [/MINPWAGE:days]
[/UNIQUEPW:number] [/DOMAIN]
NET COMPUTER
Add other networked computers with Windows Domain Controller.
\\computername {/ADD | /DEL}
NET CONFIG
Displays your current server and/or workgroup settings.
[SERVER | WORKSTATION]
NET CONTINUE
Continues the use of service.
[service]
NET FILE
Display opened shared files on the server.
[id [/CLOSE]]
NET GROUP
Add, delete, view, and otherwise manage network workgroups.
[groupname [/COMMENT:"text"]] [/DOMAIN]
groupname {/ADD [/COMMENT:"text"] | /DELETE} [/DOMAIN]
groupname username [...] {/ADD | /DELETE} [/DOMAIN]
NET LOCALGROUP
Add, delete, view, and otherwise manage network groups.
[groupname [/COMMENT:"text"]] [/DOMAIN]
groupname {/ADD [/COMMENT:"text"] | /DELETE} [/DOMAIN]
groupname name [...] {/ADD | /DELETE} [/DOMAIN]
NET NAME
Create or delete name used for messaging.
[name [/ADD | /DELETE]]
NET PAUSE
Pause the specified network service.
[service]
NET PRINT
Manage network print jobs.
\\computername\sharename
[\\computername] job# [/HOLD | /RELEASE | /DELETE]
NET SEND
Sends messages to other users, computers, or messaging names on the network. The Messenger service must be running to receive messages.
You can send a message only to an name that is active on the network. If the message is sent to a username, that user must be logged on and running the Messenger service to receive the message.
{name | * | /DOMAIN[:name] | /USERS} message
NET SESSION
Display all sessions connected to the computer and deletes them if specified.
[\\computername] [/DELETE]
NET SHARE
Create and manage a local network share.
sharename
sharename=drive:path [/USERS:number | /UNLIMITED]
[/REMARK:"text"]
[/CACHE:Manual | Documents| Programs | None ]
sharename [/USERS:number | /UNLIMITED]
[/REMARK:"text"]
[/CACHE:Manual | Documents | Programs | None]
{sharename | devicename | drive:path} /DELETE
NET START
Start the specified network service.
[service]
NET STATISTICS
Display network statistics of the workstation or server.
[WORKSTATION | SERVER]
NET STOP
Stop the specified network service.
service
NET TIME
Display the time and date of another network computer.
[\\computername | /DOMAIN[:domainname] | /RTSDOMAIN[:domainname]] [/SET]
[\\computername] /QUERYSNTP
[\\computername] /SETSNTP[:ntp server list]
NET USE
Connects or disconnects your computer from a shared resource or displays information about your connections.
[devicename | *] [\\computername\sharename[\volume] [password | *]]
[/USER:[domainname\]username]
[/USER:[dotted domain name\]username]
[/USER:[username@dotted domain name]
[/SMARTCARD]
[/SAVECRED]
[[/DELETE] | [/PERSISTENT:{YES | NO}]]

NET USE {devicename | *} [password | *] /HOME

NET USE [/PERSISTENT:{YES | NO}]
NET USER
Displays users on the computer and/or domain.
[username [password | *] [options]] [/DOMAIN]
username {password | *} /ADD [options] [/DOMAIN]
username [/DELETE] [/DOMAIN]
NET VIEW
Displays a list of computers in a specified workgroup or the shared resources available on a specified computer.
[\\computername [/CACHE] | /DOMAIN[:domainname]]
NET VIEW /NETWORK:NW [\\computername]
Examples
net use z: \\computer\folder
Map the Z: drive to the network path //computer/folder.
net send mrhope "There is hope!"
Send a text message to the computer with a host name of mrhope the message There is hope!. Note: This command only works for Windows versions that support this command.
Note: Many computers today have also disabled the messenger service, if this service is disabled you will be unable to send/receive net send messages. Additional information about how this service is disabled can be found on document CH0000519. If you need this service enabled, follow the instructions on this page and choose to enable the service instead of disabling it.
net send * "There is hope!"
The above command would send There is hope! to all users in your current domain. This command should be used with caution since if you're on a school or work network many of the computers on that network if not all well be sent a message if the messenger service is enabled on the computers.
net config workstation
Display additional information about the network such as the computers name, workgroup, logon domain, DNS, and other useful information.
net view \\hope
View the available computers and their shared resources you may use either of the below commands. The first example displays available computers. The last command would display the shared resources on the hope computer.
net localgroup
Display all groups currently setup on the computer you're running the command on.
net share
Display all network shares on your computer.
net share hope=c:\hope\files
Create a share called "hope" for the "c:\hope\files" directory.

Victims of Mother Nature

I was reading the news column to see what is happening in the world and I come across these heartbreaking pictures of the poor kids. The sufferings that these innocent kids have to undergo just hurts me bad for no fault of theirs. Mother Nature is bad. http://www.cnn.com/2010/WORLD/asiapcf/08/23/pakistan.floods.children/index.html?eref=mrss_igoogle_cnn
This urged me to donate. Read further I came to this article http://www.cnn.com/2010/LIVING/05/07/homeless.project/index.html?iref=allsearch and my urge to donate grew stronger. It is then that I made a resolution that I will donate on each family occassion and remind myself and my family of the miseries in this world and how fortunate we all are to have nice lives. I just hope that whatever little I can give to this world can help those kids in some land far far away.