New-VMSwitch Kills Transcripting

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

  • Author
    Posts
  • #14592

    Chris Hall
    Participant

    Hi

    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"
    Stop-Transcript

    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

    Richard Siddaway
    Moderator

    Not been able to reproduce with PS 4 on Windows 8.1

You must be logged in to reply to this topic.