This topic contains 12 replies, has 2 voices, and was last updated by
November 29, 2016 at 10:05 pm #58935
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.
November 29, 2016 at 10:15 pm #58939
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
November 29, 2016 at 10:16 pm #58941
Tried that. It creates a nice xml formatted file with a .bin extension that Import-StartLayout doesn't like.
November 29, 2016 at 10:28 pm #58942
For me its working fine what error message you get back?
November 30, 2016 at 3:25 am #58960
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.
November 30, 2016 at 6:33 pm #59028
I just run it like this
Export-StartLayout -path c:\exportdir\starylayout.bin
It give me back a .bin file in that directory.
November 30, 2016 at 7:23 pm #59032
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.
November 30, 2016 at 7:58 pm #59038
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?
November 30, 2016 at 8:13 pm #59041
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.
November 30, 2016 at 8:18 pm #59044
Ok maybe you run into a bug which OS and PowerShell version are you running?
November 30, 2016 at 8:27 pm #59047
3 separate computers. This cmdlet works with Windows 10 only. I've tried it on both 1511 and 1607.
November 30, 2016 at 8:51 pm #59049
I have Build 14393
November 30, 2016 at 3:29 pm #59005
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.