WCM Forum

WCM Forum (http://www.wcm.at/forum/index.php)
-   Netzwerke (http://www.wcm.at/forum/forumdisplay.php?f=32)
-   -   WinXP Computername per CmdLine ändern? (http://www.wcm.at/forum/showthread.php?t=164468)

chrisne 25.04.2005 21:27

Zitat:

Original geschrieben von Br@in
hat funktioniert, besten dank!

[komisch]computer bleibt unter altem namen erreichbar(ist mir aber egal - vielleicht liegt der name noch im DNS-Cache)[/komisch]

ipconfig /flusdns
und dann nocheinmal versuchen

chrisne 25.04.2005 21:52

doppelpost

Br@in 04.05.2005 16:06

Das Proggie hängt immer mit einem Registryzugriffsberechtigungsfehler (geiles Wort :D )

Dim f As New RegistryPermission(RegistryPermissionAccess.Write, "HKEY_LOCAL_MACHINE\System\CurrentControlSet\Contr ol\ComputerName\ActiveComputerName\")

RichTextBox1.Text = f.GetPathList(RegistryPermissionAccess.Write)
Dim CompuName As String

Dim key As Microsoft.Win32.RegistryKey
key = Microsoft.Win32.Registry.LocalMachine.OpenSubKey(" System\CurrentControlSet\Control\ComputerName\Acti veComputerName\")

key.SetValue("ComputerName", "asdasdASd")

Zitat:

Eine nicht behandelte Ausnahme des Typs 'System.UnauthorizedAccessException' ist in mscorlib.dll aufgetreten.

Zusätzliche Informationen: In den Registrierungsschlüssel kann nicht geschrieben werden.
was hats da???


Alle Zeitangaben in WEZ +2. Es ist jetzt 04:20 Uhr.

Powered by vBulletin® Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
© 2009 FSL Verlag