Export-StartLayout as BIN not working!

Welcome Forums General PowerShell Q&A Export-StartLayout as BIN not working!

This topic contains 12 replies, has 2 voices, and was last updated by

 
Participant
2 years ago.

  • Author
    Posts
  • #58935

    Participant
    Points: 0
    Rank: Member

    I'm trying to export a start layout for an image. I can't get Export-StartLayout path c:\ -As BIN to work. It doesn't like the -As parameter. What am I missing? Same behavior on Windows 10 1511 and 1607.

  • #58939

    Participant
    Points: 0
    Rank: Member

    When I look at the cmdlet I don't see the param -As maybe this is not needed anymore in PS 5?
    Just run Export-StartLayout -Path C:\test.bin

    • #58941

      Participant
      Points: 0
      Rank: Member

      Tried that. It creates a nice xml formatted file with a .bin extension that Import-StartLayout doesn't like.

    • #58942

      Participant
      Points: 0
      Rank: Member

      For me its working fine what error message you get back?

    • #58960

      Participant
      Points: 0
      Rank: Member

      How do you type it? This is how I do it:

      Export-StartLayout -path c:\exportdir\starylayout.bin -As BIN

      I get this error:

      Export-StartLayout : A parameter cannot be found that matches parameter name 'as'.

      I've tried it on three different machines now. All with the same result.

    • #59028

      Participant
      Points: 0
      Rank: Member

      I just run it like this

      Export-StartLayout -path c:\exportdir\starylayout.bin

      It give me back a .bin file in that directory.

    • #59032

      Participant
      Points: 0
      Rank: Member

      Yes, but it's not actually a binary file. It's still an XML. I tried exporting it like that then doing import-starylayout and it didn't like the format.

    • #59038

      Participant
      Points: 0
      Rank: Member

      what kind of extension the file got then xml?
      I see in the get-help they only talk about exporting xml I guess you already tried to export xml and import xml?

    • #59041

      Participant
      Points: 0
      Rank: Member

      For some reason Import-StaryLayout will only work with binary files.

      From the Import-StartLayout help:
      The Export-StartLayout cmdlet also exports layouts as .xml files, but this cmdlet imports only .bin files.

    • #59044

      Participant
      Points: 0
      Rank: Member

      Ok maybe you run into a bug which OS and PowerShell version are you running?

    • #59047

      Participant
      Points: 0
      Rank: Member

      3 separate computers. This cmdlet works with Windows 10 only. I've tried it on both 1511 and 1607.

    • #59049

      Participant
      Points: 0
      Rank: Member

      I have Build 14393

  • #59005

    Participant
    Points: 0
    Rank: Member

    Is anyone else able to run this cmdlet successfully? And if you did is it actually a binary file? If so how do you format it?

The topic ‘Export-StartLayout as BIN not working!’ is closed to new replies.