Skip to content
David Kittell
David Kittell

Application & System: Development / Integration / Orchestration

  • Services
    • Application Development
    • Online Application Integration
  • Code
  • Online Tools
  • Tech Support
David Kittell

Application & System: Development / Integration / Orchestration

Change Computer Name

Posted on July 18, 2013October 26, 2015 By David Kittell
Option Explicit

Set ws = WScript.CreateObject("WScript.Shell")
Dim ws, t, p1, p2, n, cn, vbdefaultbutton
Dim itemtype

p1 = "HKLMSYSTEMCurrentControlSetControlComputerNameComputerName"

n = ws.RegRead(p1 & "ComputerName")
t = "Change Computer Name"
cn = InputBox("Type new Name and click OK", t, n)
If cn <> "" Then
  ws.RegWrite p1 & "ComputerName", cn
End If
Originally Posted on July 18, 2013
Last Updated on October 26, 2015
All information on this site is shared with the intention to help. Before any source code or program is ran on a production (non-development) system it is suggested you test it and fully understand what it is doing not just what it appears it is doing. I accept no responsibility for any damage you may do with this code.

Related

Code Windows VBS

Post navigation

Previous post
Next post

Related Posts

UNIX Terminal – Secure Copy (SCP)

Posted on May 31, 2016May 31, 2016

Secure Copy (SCP) is a useful UNIX command that allows you to securely copy files and directories between your local machine and a remote computer. In the examples below “-P 22” is not actually needed if the SSH port is 22. Many of the servers I connect to have a…

Read More

Ubuntu – Install GUI Desktop From Terminal

Posted on March 18, 2016March 18, 2016

sudo apt-get –assume-yes update && sudo apt-get –assume-yes upgrade && sudo apt-get –assume-yes autoremove sudo apt-get –assume-yes install ubuntu-desktop build-essential sudo chown -R [user-name]:[user-name] /home/[user-name] sudo startx Make sure that you do the chown command otherwise you may not be able to login. Example would be this for username demo…

Read More

UNIX – Remove Apache, MySQL & PHP

Posted on October 30, 2015October 30, 2015

WARNING – THIS WILL REMOVE WITHOUT PROMPT dpkg -l *apache* *php* *mysql* phpmyadmin | grep ^ii | awk ‘{ print $2}’ | xargs sudo apt-get -y purge –auto-remove rm -r /etc/apache2 rm -r /etc/php5 rm -r /etc/mysql sudo apt-get –assume-yes purge apache* php* mysql* phpmyadmin sudo apt-get –assume-yes autoremove sudo…

Read More

Code

Top Posts & Pages

  • PowerShell - Rename Pictures to Image Taken
  • Front Page
  • C# - Start/Stop/Restart Services
  • MacPorts / HomeBrew - Rip CD tracks from terminal
  • PowerShell - Show File Extensions

Recent Posts

  • Javascript – Digital Clock with Style
  • BASH – Web Ping Log
  • BASH – Picture / Video File Name Manipulation
  • Mac OSX Terminal – Create SSH Key
  • Bash – Rename Picture

Top Posts

  • PowerShell - Rename Pictures to Image Taken
  • C# - Start/Stop/Restart Services
  • MacPorts / HomeBrew - Rip CD tracks from terminal
  • PowerShell - Show File Extensions
  • Open On Screen Keyboard (OSK)
  • SQLite - Auto-Increment / Auto Generate GUID
©2025 David Kittell | WordPress Theme by SuperbThemes