New-VMSwitch Kills Transcripting

Welcome Forums General PowerShell Q&A New-VMSwitch Kills Transcripting

This topic contains 1 reply, has 2 voices, and was last updated by

 
Participant
4 years, 8 months ago.

  • Author
    Posts
  • #14592

    Participant
    Points: 0
    Rank: Member

    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

    Participant
    Points: 0
    Rank: Member

    Not been able to reproduce with PS 4 on Windows 8.1

The topic ‘New-VMSwitch Kills Transcripting’ is closed to new replies.