aravind anche
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
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
ASKER
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
It only supports .BIN files, not .XML.
https://technet.microsoft.com/en-us/library/dn283403(v=wps.640).aspx
ASKER
Thanks
I read that rticle before but i am confused
so how can i make that xml to bin
I read that rticle before but i am confused
so how can i make that xml to bin
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
yes they are same version,
I created VM and made changes and exported it
Then I captured image and deployed on to physical machine
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.
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.
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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.
It would make this question useful for anyone else who runs into the same problem.
ASKER
I have added below things to xml
<LayoutModificationTemplat e
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">
<CustomTaskbarLayoutCollec tion PinListPlacement="Replace" >
<LayoutModificationTemplat
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">
<CustomTaskbarLayoutCollec
ASKER
Adding microsoft svhema to xml did the trick
What code did you use to create the .XML?