Foregroundcolor green input1 read host if this

Info icon This preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
Write-Host "The Country Code is $countrycode and the Site id is $siteid." -ForegroundColor Green $input1 = Read-Host "If this correct please press 'y' or if you would like to manually enter these details press 'n'" if($input1 -eq "y"){ } else{ if($input1 -eq "n"){ pause $countrycode = Read-Host "Please enter the country code"
Image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
$siteid = Read-Host "Please enter the Site Id" } else{ Write-Host "Wrong input" return } } } else{ pause $countrycode = Read-Host "Please enter the country code" $siteid = Read-Host "Please enter the Site Id" } $logicalNetwork = Get-SCLogicalNetwork -Name $mlognet #Logical Network Site Definition Selection $mlogicalNetworkdefs = Get-SCLogicalNetworkDefinition -LogicalNetwork $logicalNetwork | where-object { $_.Name -like 'LNS*' } $mlognetdefnames = $mlogicalNetworkdefs.Name if (!$mlogicalNetworkdefs ){ Write-Host "There is no Logical Switch Definition Name starting with 'LNS'" return } do { $count = 1 Write-Host "Please select the Logical switch network site definition LNS- %Siteid%-VM-Fabric if the VLAN and subnet are provisioned on the fabric network and for legacy network please select LNS-%siteid%-VM" Write-Host "============Logical Network Site===============" Foreach ( $mlnetdefname in $mlognetdefnames ){ Write-Host "$count : $mlnetdefname" $count++ } Write-Host "q : Quit" $input = Read-Host "Please select the logical network site to which the new VM network to be added" if( $input -ne 'q'){ $intinput = [convert]::ToInt32($input, 10) if( $intinput -le $count){ if( $mlognetdefnames.count -gt 1){ $mlognetdef = $mlognetdefnames[$intinput-1] break } else{
Image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern