Link to home
Start Free TrialLog in
Avatar of aravind anche
aravind ancheFlag for United States of America

asked on

customized xml file in powershell getting error "Not a valid layout file"

Hello Experts,

i have exported a xml using powershell and I am trying to import to other PC.
I am getting error xml is not a valid layout file
I have attached the xml file

Thanks in Advance
Avatar of footech
footech
Flag of United States of America image

There's no attachment.

What code did you use to create the .XML?
Avatar of aravind anche

ASKER

Export-Startlayout -path c:\windows\layouts\Layoutmodification.xml
LayoutModification.xml
I assume you're trying to import using the Import-StartLayout cmdlet?
It only supports .BIN files, not .XML.
https://technet.microsoft.com/en-us/library/dn283403(v=wps.640).aspx
Thanks

I read that rticle before but i am confused
so how can i make that xml to bin
SOLUTION
Avatar of footech
footech
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
yes they are same version,
I created VM and made changes and exported it
Then I captured image and deployed on to physical machine
Sorry, I don't have any more suggestions.
If someone else doesn't offer anything after a few hours, you can request attention to this question to try to attract other experts.
The XML format only exists for you to inspect, it's not for you to use when importing.

The process is:

1. Make changes
2. Export as XML (-As Xml), and check everything looks right
3. Export as BIN (-As Bin)
4. Import

Bit weird if you ask me, but there you go.
Ack sorry, ignore that. Reading comprehension failure.
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Can you explain exactly what you did?  I see several references to Microsoft schema in the file already.
It would make this question useful for anyone else who runs into the same problem.
I have added below things to xml
<LayoutModificationTemplate
    xmlns="http://schemas.microsoft.com/Start/2014/LayoutModification"
    xmlns:defaultlayout="http://schemas.microsoft.com/Start/2014/FullDefaultLayout"
    xmlns:start="http://schemas.microsoft.com/Start/2014/StartLayout"
    xmlns:taskbar="http://schemas.microsoft.com/Start/2014/TaskbarLayout"
    Version="1">

<CustomTaskbarLayoutCollection PinListPlacement="Replace">
Adding microsoft svhema to xml did the trick