Forum Discussion
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.
1 Reply
- hoolio
Cirrostratus
Hi,
Joe replied to your other post here:
https://devcentral.f5.com/tabid/53/aft/2163674/Default.aspx
If you have questions on that, you might try replying to that thread to keep everything in the same place.
Aaron
Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com