Wednesday, 14 November 2012

Setting a command prompt on Server Core

Ok so have a nice new instillation of server core, First shock there is no GUI, but it is server core so what did you expect!

This now old school server administration, but I find that the prompt that they give you is a bit lame and does not really help you very much. So the first thing I do is run the following.

setx prompt "[%computername%]$_$d$s$t$_$p$_$g"

But after doing this you see not change!

You have to log out and then back in again to see the result. Now your command prompt has changed from

C:\users\Administrator.domain>_

to

[SERVER]
14/11/2012 10:59:38.74
C:\Users\Administrator.domain
>_

Far more useful.

P.S. to see the results straight away use

set prompt=[%computername%]$_$d$s$t$_$p$_$g

No comments:

Post a Comment