CMD

HowTo: Extend the volume in windows

Posted on Updated on

It will be possible to resize the system partion with tools that are either commercially available or opensource. Acronis ‘Disk Partition Manager’ is a good example of a commerical product (www.acronis.com), Thier is another tool that comes with Linux ‘Live CD’ called “GParted”. This will also resize partions without data loss. To extend a volume, follow these steps,

Run –> cmd –> type diskpart.exe.

Type list volume to display the existing volumes on the computer.

Type Select volume volume number where volume number is number of the volume that you want to extend.

Type extend [size=n] [disk=n] [noerr]. The following describes the parameters: size=n The space, in megabytes (MB), to add to the current partition. If you do not specify a size, the disk is extended to use all the next contiguous unallocated space. disk=n

The dynamic disk on which to extend the volume. Space equal to size=n is allocated on the disk. If no disk is specified, the volume is extended on the current disk.

Advertisements

Howto: Enable remote desktop from CMD

Posted on Updated on

Starting remote desktop on a remote pc when you only have a telnet access to it.
once you have a telnet session to a remote pc you may want to also use remote desktop .

It’s disable and needs to be enable can’t connect !!

First of all you will need to enable it if its not
running on the remote pc.

from the command prompt use these commands.

reg add “hklm\system\currentControlSet\Control\T­erminal Server” /v “AllowTSConnections” /t REG_DWORD /d 0x1 /f

or

reg add “hklm\system\currentControlSet\Control\T­erminal Server” /v “fDenyTSConnections” /t REG_DWORD /d 0x0 /f

The next step is to enable the service if it is disable it is the terminal service – services

goto the command line and type in

sc config TermService start= auto

this will enable it .

next you need to start if to start it type this into the command prompt

net start Termservice

Enable Remote Desktop Service

Now your almost done!

We will need to open a port in the firewall

open Ports in Firewall for — remote Desktop

Here are the commands.

netsh.exe

firewall

add portopening TCP 3389 “Remote Desktop”

ok now il try and connect again !

Enable/Disable firewall through command line

Posted on Updated on

This command is very useful when we are working with windows netwok

Open command prompt

This command gets into the firewall section.

Type in:
netsh firewall set opmode enable “To enable firewall”

netsh firewall set opmode disable “To disable firewall”