Rename Virtual Server
I do not seem to be able to get the answers I need. What I need to do is use PowerShell to gather all information from an existing Virtual Server and "copy" it to a new Virtual Server under a new name. I need to take a single string "oldname" and change it to a new string "newname". I am looking for the simplest way to do that. The current method I am looking at is to gather all information from an existing Virtual Server and replicate it to a new one with the new name. What I'd LOVE to be able to do is something like:
$VirtualServer = Get-VirtualServer
$VirtualServer.name = $VirtualServer.name.Replace("OldCompany","NewCompany")
This would change the virtual server's name from www.OldCompany.com_443 to www.NewCompany.com_443 and life would be good.
Any help/suggestions is greatly appreciated.