I am looking for a script that will change only the first few characters of a computer name.
For example:
I have hundreds of machines named "w2k19-xxx" in my environment
like w2k19-500 for example
I want to change it to w2k22-500. I want to change the "w2k19" part to "w2k22" but keep the rest of the name as is.
I can push the script with SCCM I am hoping. Everything I have found so far does not work. Any help would be appreciated.
For example:
I have hundreds of machines named "w2k19-xxx" in my environment
like w2k19-500 for example
I want to change it to w2k22-500. I want to change the "w2k19" part to "w2k22" but keep the rest of the name as is.
I can push the script with SCCM I am hoping. Everything I have found so far does not work. Any help would be appreciated.