Tim Haintz

My feedback

  1. 10 votes
    Sign in
    (thinking…)
    Sign in with: Facebook Google
    Signed in as (Sign out)

    We’ll send you updates on this idea

    1 comment  ·  General Feedback » Applications & Add-ons  ·  Flag idea as inappropriate…  ·  Admin →
    Tim Haintz shared this idea  · 
  2. 1 vote
    Sign in
    (thinking…)
    Sign in with: Facebook Google
    Signed in as (Sign out)

    We’ll send you updates on this idea

    5 comments  ·  PowerShell » PowerShell Engine  ·  Flag idea as inappropriate…  ·  Admin →

    Interesting…I’m not able to repro it from a PowerShell 5.1 to 5.1 box. Could you paste the output of your $PSVersionTable?

    Also, I’m assuming you’ve saved the script that includes the here string somewhere? Could you paste the output of Format-Hex .\hereString.ps1 | Select-Object -First 1? Even better, could you paste the same thing on the resultant output (i.e. Format-Hex C:\dsc\lcm\dsclcm.ps1 | Select-Object -First 1)?

    Tim Haintz commented  · 

    Another thing I am using is a differencing disk to create my VM. I'm creating that in another .ps1 file. Not sure if that will have any impact though. I'm using the below method to create the disk.

    new-vm -Name $vmname `
    -VHDPath (New-VHD -Differencing -ParentPath "$vhdreferencedisk" -Path "$vmNameVhdPath" -SizeBytes 20GB).Path `
    -MemoryStartupBytes 4GB `
    -Generation 2 `
    -SwitchName "InternalNetwork"

    Thanks, Tim.

    Tim Haintz commented  · 

    TEMP FILE CREATED LOCALLY
    PS P:\> format-hex C:\Users\xxxxx\AppData\Local\Temp\dsclcm.ps1 | Select-Object -First 1

    Path: C:\Users\xxxxx\AppData\Local\Temp\dsclcm.ps1

    00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F

    00000000 FF FE 5B 00 44 00 53 00 43 00 4C 00 6F 00 63 00 .þ[.D.S.C.L.o.c.

    Tim Haintz commented  · 

    PSVERSIONTABLE on 2016 server running on HyperV.
    [dc1]: PS C:\dsc\lcm> $PSVersionTable

    Name Value
    ---- -----
    PSVersion 5.1.14393.576
    PSEdition Desktop
    PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
    BuildVersion 10.0.14393.576
    CLRVersion 4.0.30319.42000
    WSManStackVersion 3.0
    PSRemotingProtocolVersion 2.3
    SerializationVersion 1.1.0.1

    Tim Haintz commented  · 

    FILE CREATED USING HERE STRING ON WINDOWS SERVER 2016 CORE
    [dc1]: PS C:\dsc\lcm> format-hex .\dsclcm.ps1 | Select-Object -First 1

    Path: C:\dsc\lcm\dsclcm.ps1

    00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F

    00000000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................

    Tim Haintz commented  · 

    Hi Joey, thanks for the response. I will break my next couple of responses up to keep the comments clean.
    PSVersion Table:
    PS P:\> $PSVersionTable

    Name Value
    ---- -----
    PSVersion 5.1.14393.576
    PSEdition Desktop
    PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
    BuildVersion 10.0.14393.576
    CLRVersion 4.0.30319.42000
    WSManStackVersion 3.0
    PSRemotingProtocolVersion 2.3
    SerializationVersion 1.1.0.1

    Tim Haintz shared this idea  · 
  3. 8 votes
    Sign in
    (thinking…)
    Sign in with: Facebook Google
    Signed in as (Sign out)

    We’ll send you updates on this idea

    1 comment  ·  PowerShell » Desired State Configuration (DSC)  ·  Flag idea as inappropriate…  ·  Admin →
    Tim Haintz shared this idea  · 

Feedback and Knowledge Base