

# in mind that hostnames change frequently and just before you clone/ verify that scheduled task is running as local administrator, bear # powershell -command "& 'c:\tools\powershell\domain.ps1' " create bat file to execute this powershell script, ie: setup scheduled task to run on start-up as local administrator # The actions that will be taken for each of these conditons are: # (although domain membership is invalid) # Note that there are 4 possible conditions that a host may come up in: # hexadecimal representation of the IP address assigned on boot. # This script will re-initialize domain membership and change the hostname to reflect the
Powershell microsoft.win32.registrykey openremotebasekey credentials update#
It will also update the SQL Server dbname to reflect the hostname change on SQL Server 2008 boxes.


Here is the second iteration of the powershell domain/hostname management script that I’m working on. I am realizing now that I need to get a git repo setup that is publicly accessible which will allow me to share scripts and other code snippets that I’m working on. Domain Auto-Enrollment / Hostname Management with Powershell (v2)
