Showing posts with label Windows Tips. Show all posts
Showing posts with label Windows Tips. Show all posts

Useful commands for Windows

Type below commands and press Enter in the command prompt  in Window


net view : Display information about the domains, computers, or resources that are shared by the specified computer, including the offline client caching settings.
net share : Create, delete, manage, and display shared resources.
net file : View and control resources that are shared on the network. The Server service must be running for you to use this command.
net config : View the maximum number of users who can access a shared resource and the maximum open files per session.

Change Computer or Host Name in Windows Using Command

Below is the command to rename Computer Name or Hostname in Windows.Changing Computer name will require a reboot. Follow below commands to change computer name and reboot system.

wmic computersystem where name="OLDNAME" call rename name="NEWNAME"
shutdown -r   ---Reboot System
hostname       ----Display Computer Name or Hostname in Windwos  and Linux as well.

Authentication Protocol in Windows

NTLM(New Technology Lan Manager)
It is used authenticating user credentials in a work-group model.In a work-group model SAM(Security Account Manager) database used to store and retrieve user credentials.

Kerberos
It is used to authenticating user credentials in a Domain environment. In a Domain environment NTDS.DIT database is used to store and retrieve user credentials.


create or add a new local user account in windows using command line

Create or add new local user account in windows using command line

net user /ADD /active:yes /expires:never /fullname:user-test /passwordchg:no

net user new-user 123!@# /ADD /active:yes /expires:never /fullname:wucc-test /passwordchg:no

map or disconnect a network drive in Windows


We can use the net use command to map or disconnect a network drive in Windows.
To map a network drive.
1.Click Start, and then click Run.
2.In the Open box, type cmd.
3.Type net use y: \\computer name or IP address\shared folder name, where y: is the drive letter you want to   assign to the shared resource.
Ex: net use y:\\192.168.x.x\\abc
     net use y:\\server-002\\abc
To disconnect a mapped drive:
1.Click Start, and then click Run.
2.In the Open box, type cmd.
3.Type net use y: /delete, where y: is the drive letter of the shared resource.