Kelly Garcia
asked on
powershell switch statement
Hi Guys,
I am constructing a switch argument in powershell and how do I get the "lndapp01" on the name variable?
switch ($vm)
{
"LNDAPP01" {
$name=
$computerName = Get-WmiObject Win32_ComputerSystem
$computername.rename("$nam e")
}
thank you in advance,
I am constructing a switch argument in powershell and how do I get the "lndapp01" on the name variable?
switch ($vm)
{
"LNDAPP01" {
$name=
$computerName = Get-WmiObject Win32_ComputerSystem
$computername.rename("$nam
}
thank you in advance,
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER