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

PowerShell – Rename Computer

Posted on November 10, 2015 By David Kittell
# Rename Computer - Domain Login
Rename-Computer -NewName Server044 -DomainCredential Domain01\Admin01 -Restart

# Rename Computer - Local Login
Rename-Computer -ComputerName Srv01 -NewName Server001 -LocalCredential Srv01\Admin01 -DomainCredential Domain01\Admin01 -Force -PassThru -Restart

Reference: https://technet.microsoft.com/en-us/library/hh849792(v=wps.630).aspx

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 PowerShell

Post navigation

Previous post
Next post

Related Posts

C# Date/Time String Conversion

Posted on December 13, 2013December 26, 2018

public string GetLongDate(string Date) { DateTime d = Convert.ToDateTime(Date); string format = "dddd,MMMM dd,yyyy"; string formatteddate = d.ToString(format); return formatteddate; } public string GetDOBDate(string Date) { DateTime d = Convert.ToDateTime(Date); string format = "MM/dd/yyyy"; string formatteddate = d.ToString(format); return formatteddate; } Originally Posted on December 13, 2013Last Updated on December…

Read More

PowerShell – Azure – Get Virtual Networks

Posted on March 28, 2016March 28, 2016

If you work in Azure these two functions are very valuable additions to your library. Note: This majority of this code is copied from the reference below. I added Gateway Address to the Network Routes along with DNS # Show All Networks Get-AzureVirtualNetwork | FT # Filter to find reference…

Read More

Remotely Find Raspberry Pi IP

Posted on October 13, 2015October 13, 2015

First install nmap sudo apt-get install nmap Then run IP addr show and look for something like ‘inet 10.1.1.68/24 brd 10.1.1.255’ ip addr show eth0 Now based on the inet IP CIDR type sudo nmap -sn 10.1.1.68/24 You should see something like this Nmap scan report for 10.1.1.54 Host is…

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
  • SQLite - Auto-Increment / Auto Generate GUID
©2025 David Kittell | WordPress Theme by SuperbThemes