Afdrukken
PDF

Handige CLI commando's in windows

Set the computer name

Netdom computername [origcomputername] /add Core.contoso.com

Netdom computername [origcomputername] /makeprimary core.contoso.com



Draadloze netwerken zoeken met de command line

C:\ netsh
netsh> wlan show networks mode=bssid

Nu zal er een schema verschijnen waar je alle beschikbare netwerken zal zien.


Configure IP address

Netsh int ipv4 set address “Local Area Connection” static 192.168.1.200 255.255.255.0 192.168.1.1

Netsh int ipv4 set address “Local Area Connection” source=dhcp

Netsh int ipv4 set dnsserver “Local Area Connection” static 192.168.1.200 primary

Netsh int ipv4 set winsserver “Local Area Connection” static 192.168.1.200 primary

 

 

Change the name of the network interface

Netsh int set interface name = “Local Area Connection” newname = “LAN”

 


 

Manage Firewall

Netsh firewall set opmode enable

Netsh firewall set opmode disable


 

Enable Remote Administration

Netsh firewall set service remoteadmin enable

 

 

 

 

cscript C:\Windows\System32\Scregedit.wsf /AU 4

 


 

To use the Disk Management MMC snap-in remotely

Net start vds

 


 

Reset the administrator password

Net use administrator *

 


 

To activate the server

Slmgr.vbs –ato

 


 

To join the domain

Netdom join <computer name. /domain:<domainname> /userd:<username> /password:<password>


 

To list installed drivers:

Sc query type= driver

 

 

List of installed patches:

wmic qfe list

 


 

To List the installed roles

OCList

 

To install a role

Start /w ocsetup <name of role>

 


To enable automatic updates