New-VMSwitch Kills Transcripting

This topic contains 1 reply, has 2 voices, and was last updated by Profile photo of Richard Siddaway Richard Siddaway 3 years ago.

  • Author
  • #14592
    Profile photo of Chris Hall
    Chris Hall


    I seem to he having a problem with the following. I'm using PowerShell 4 on a WIndows 2012R2 server:

    Start-Transcript -path C:\out.txt
    Write-Output "START Hyper-V Config ...."
    New-VMSwitch -Name "VM-PROD-SWITCH" -NetAdapterName "VM-PROD-TEAM" -Notes "VM Production LAN - No Parent OS Access" -AllowManagementOS $false
    Write-Output "..... VMSwitch Done"

    I save this as go.ps1 and launch from an admin command prompt. The script completes perfectly with no errors, yet upon inspection of the transcript all I get is
    "START Hyper-V Config ...."

    I'm wondering if anyone else has experienced this?

  • #14627
    Profile photo of Richard Siddaway
    Richard Siddaway

    Not been able to reproduce with PS 4 on Windows 8.1

You must be logged in to reply to this topic.