Windows server 2008 Core – How to set static IP address via command line

Posted by Mark | Posted in Command line, Networking, Windows 2008 | Posted on 30-07-2009

0

This topic will show how to set static IP 192.168.0.10 with mask 255.255.255.0 to your Windows server 2008 Core interface named “Local Area Connection” .

Also we will set DNS server IP 192.168.0.11.

To set static IP address and mask type:

netsh interface ipv4 set address name=”Local Area Connection” source=static address=192.168.0.10 mask 255.255.255.0

To set DNS server IP type:

netsh interface ipv4 add dnsserver name=”Local Area Connection” address=192.168.0.11

Windows server 2008 Core – How to activate server

Posted by Mark | Posted in Command line, Scripting, Windows 2008 | Posted on 28-07-2009

0

This post will show you way how to activate Windows server 2008 Core.

You can do that with script named slmgr.vbs.

To perform activation type this in command line:

slmgr.vbs -ato

win2008_act

Press Enter and you are done!

Windows server 2008 – How to find Terminal servers in your domain

Posted by Mark | Posted in Command line, Terminal services, Windows 2008 | Posted on 24-06-2009

0

This post will show you how to find Windows server 2008 with Terminal server role installed in your domain.

To perform search in domain named “Testdomain.com” domain open command line and type:

query termserver /domain:Testdomain.com

win2008_terminals

Press “Enter” and you are done !


Windows server 2008 – How to create computer account in Active Directory via command line

Posted by Thomas | Posted in Active directory, Command line, Windows 2008 | Posted on 18-06-2009

0

This post will show you how to create new computer account in active directory using command line.

Lets say, in our scenario,  we want to create  new computer account named “TestPC1″ in default Computers container. Also note that our domain is named “testdomain.com” in this case.

To do it open command line on your Windows server 2008 and type:

dsadd computer cn=TestPC1,cn=Computers,dc=testdomain,dc=com

Windows server 2008 – How to list IIS websites on Windows 2008

Posted by aidas | Posted in Command line, Windows 2008 | Posted on 20-05-2009

0

This post will show you how to list IIS 7.0 websites on your Windows server 2008 using command line tool appcmd .

Appcmd tool is used to query, create and configure IIS 7.0 server properties, web sites and application pools.

To list all web sites on IIS 7.0 open command line and type:

appcmd list sites

Done!

Windows server 2008 – How to open secure command line on remote server

Posted by aidas | Posted in Command line, Windows 2008 | Posted on 19-05-2009

0

This post will show you how to open secure command line on remote Windows server 2008. All communications between client and remote host will be encrypted by Kerberos or NTLM keys. Lets say we want to connect to server named “testserver”. To do it open command line on your Windows server 2008 and type:

winrs -r:testserver cmd

Windows server 2008 – How to perform full system backup via command line

Posted by aidas | Posted in Command line, Windows 2008 | Posted on 19-05-2009

0

This post will show you how to create full system backup of your Windows server 2008 using command line. Lets say we want to create full system backup and place it to network share \\Backupserver\Data . Open command line and type:

wbadmin start backup -backuptarget \\Backupserver\Data -allCritical -vssFull

Windows server 2003/2008 and Windows XP/Vista – How to enable remote desktop via registry

Posted by aidas | Posted in Registry, Windows 2003, Windows 2008, Windows Vista, Windows XP | Posted on 14-05-2009

0

This quick post will show you how to enable remote desktop service by editing registry settings on your Windows server. To enable RD open registry editor and navigate to:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server

Double click on “fDenyTSConnections” and change Value data to 0 .

Windows server 2008 – How to reset license activation period via command line

Posted by aidas | Posted in Command line, Windows 2008 | Posted on 14-05-2009

0

By default you have option to use Windows server 2008 for 60 days without activation . Do you know that you can reset this activation period 4 times per installation? In that case actual time of Windows server 2008 usage without activation increases to ~240 days. This post will show you how to reset it. To do it open command line and type:

slmgr -rearm

Windows server 2003/2008 – How to delay services start

Posted by aidas | Posted in Registry, Windows 2003, Windows 2008 | Posted on 08-05-2009

0

This post will show you how to delay services start by editing registry. This is usefull when you need to delay some services start in order your server initialize various protocols in right way. This can be done by creating service dependency. To perform it open registry editor on your Windows server 2003 (Start>Run, regedit) and navigate to:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services

Select service you want to create dependency for and create new Multi-String value named “DependOnService”. Open newly created value and type the name of the service or services you wish to start before this service. The name of the services is exactly as it is under “services” registry key.

Windows server 2008 – How to view network configuration remotely

Posted by aidas | Posted in Command line, Networking, Windows 2008 | Posted on 07-05-2009

0

This post will show you how to view network configuration on remote server using command line. Lets say we want to check network configuration on remote server named “Testserver1″. To do it open command line on your Windows server 2008 and type:

netsh -r Testserver1 interface ip show config

If you need to supply different credentials to run this command type:

netsh -r Testserver1  -u testdomain.com\Admin -p Pa$$w0rd interface ip show config

Windows server 2003/2008 – How to end running process via command line

Posted by aidas | Posted in Command line, Windows 2003, Windows 2008 | Posted on 07-05-2009

0

This post will show how to end running process by using command line on your Windows server 2003. First of all you need to run tasklist command to view PID number of the process you want to end. To do it type:

tasklist

To end process type:

taskkill /PID <PID number>

To end process on remote server named “Testserver” type:

taskkill /s Testserver /PID <PID number>

Note that you can always type taskkill /? for more command usage examples