Neues Jahr, neue Aufgaben. Ich finde mich in jüngster Zeit öfters in der Konsole wieder. So komm’ts auch das ich über nette kleine Kommando’s für ein wenig Server-Installation gestolpert bin. Zum ändern des Computernamens gibt es z.B. ein nettes Tool namens wmic. Damit kann man wunderbare Dinge anstellen (gegeben man hat die Rechte), denn es ist wie eine “Shell” für WMI.

Damit lassen sich unter Anderem der Computername…

C:\> wmic computersystem where name="%computername%" call rename name="meincomputername"

…und die dazugehörige Arbeitsgruppe oder Domäne…

C:\> wmic computersystem where name="%computername%" call joindomainorworkgroup name="meinearbeitsgruppe"

…relativ einfach und schnell ändern.

Comments
This article has no comments yet. Comments are very welcome.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>


(c) 2000-2012 ilker.de - Creative Computing.

For any case of inquiry regarding this document, you can always contact the website owner.