califpearl Posted June 13, 2016 Posted June 13, 2016 I have researched many sites on how to backup the tiles I have pinned to no avail. Is there a way to accomplish this in case of a crash?
timbo343 Posted June 14, 2016 Posted June 14, 2016 Elevated Powershell command "export-startlayout -path:*path_to_your_export.xml*"
califpearl Posted June 14, 2016 Author Posted June 14, 2016 Thank you for your quick reply. I then accessed the PowerShell v5 help menu and attempted to export to the following path then receiving the following error. PS C:\> Export-StartLayout -Path "C:\Windows\Users\annan_000\desktop\tiles.xml" -AS XML Export-StartLayout : A parameter cannot be found that matches parameter name 'AS'. At line:1 char:73 + ... rtLayout -Path "C:\Windows\Users\annan_000\desktop\tiles.xml" -AS XML + ~~~ + CategoryInfo : InvalidArgument: ( [Export-StartLayout], ParameterBindingException + FullyQualifiedErrorId : NamedParameterNotFound,Microsoft.Windows.StartLayout.Commands.ExportStartLayoutCommand Any idea where I went wrong?
timbo343 Posted June 14, 2016 Posted June 14, 2016 take the "-as XML" out Export-StartLayout -Path:"C:\Windows\Users\annan_000\desktop\tiles.xml" is all you need. You missed out a : between H and ".
califpearl Posted June 14, 2016 Author Posted June 14, 2016 Thanks again for your patience and help but... PS C:\> Export-StartLayout -Path:"C:\Windows\Users\annan_000\desktop\tiles.xml" Export-StartLayout : The path C:\Windows\Users\annan_000\desktop\tiles.xml did not resolve to a file. At line:1 char:1 + Export-StartLayout -Path:"C:\Windows\Users\annan_000\desktop\tiles.xm ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: ( [Export-StartLayout], DirectoryNotFoundException + FullyQualifiedErrorId : System.IO.DirectoryNotFoundException,Microsoft.Windows.StartLayout.Commands.ExportStar tLayoutCommand Could the issue be that I do not have a tiles.xml file on the desktop and that's why I am receiving the aforementioned message? I even tried creating a dummy file through notepad++ and saved it to the desktop to no avail.
FN-GM Posted June 14, 2016 Posted June 14, 2016 Try this Export-StartLayout -Path: "C:\Windows\Users\annan_000\desktop\tiles.xml" In an elevated command line.
Arthur Posted June 14, 2016 Posted June 14, 2016 (edited) Try this Export-StartLayout -Path: "C:\[b]Windows\Users[/b]\annan_000\desktop\tiles.xml" In an elevated command line. The path doesn't look quite right and there's a colon after it in your quote too? Export-StartLayout -Path "C:\Users\annan_000\Desktop\Tiles.xml" Edited June 14, 2016 by Arthur
FN-GM Posted June 14, 2016 Posted June 14, 2016 The path doesn't look quite right? Export-StartLayout -Path: "C:\Users\annan_000\Desktop\Tiles.xml" Just noticed that. I copied his path and sorted the spacing.
timbo343 Posted June 14, 2016 Posted June 14, 2016 Just noticed that. I copied his path and sorted the spacing. My example doesnt have a space...
FN-GM Posted June 14, 2016 Posted June 14, 2016 My example doesnt have a space... It wasn't yours but from post 5
Arthur Posted June 14, 2016 Posted June 14, 2016 (edited) Just noticed that. I copied his path and sorted the spacing. My example doesn't have a space... Not sure if it matters, but both of yours also have colons after the -Path parameter. There isn't one shown in the help for that cmdlet. Edited June 14, 2016 by Arthur
timbo343 Posted June 14, 2016 Posted June 14, 2016 Not sure if it matters, but both of yours also have colons after the -Path parameter. There isn't one shown in the help for that cmdlet. Its always worked with me.
califpearl Posted June 14, 2016 Author Posted June 14, 2016 I have tried the aforementioned responses using a normal and elevated prompt to no avail. I have tried executing the command to the root of C to no avail. I have tried executing with and without the : after the path command to no avail. I have tried removing the -As XML at the end of the path to no avail. I have tried using the | instead of -Path with and without the colon to no avail. I have tried creating a dummy file to no avail and the error messages are all the same "did not resolve to a file." I want to thank all of you for your time as the command just will not resolve for me for whatever reason.
thimon Posted June 15, 2016 Posted June 15, 2016 I want to thank all of you for your time as the command just will not resolve for me for whatever reason. Would be a shame to call it a day I've used Export-Startlayout –path C:\layout.xml and it's always worked. Remember to run PowerShell as an Administrator. Keep going!
califpearl Posted June 15, 2016 Author Posted June 15, 2016 PS C:\WINDOWS\system32> Export-Startlayout –path C:\layout.xml Export-Startlayout : Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)) At line:1 char:1 + Export-Startlayout –path C:\layout.xml + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: ( [Export-StartLayout], UnauthorizedAccessException + FullyQualifiedErrorId : System.UnauthorizedAccessException,Microsoft.Windows.StartLayout.Commands.ExportStartL ayoutCommand Thinking about the error message I just tried set-execution unrestricted to no avail.
timbo343 Posted June 15, 2016 Posted June 15, 2016 Sounds to me like you havent got full access to the C.
Jawloms Posted June 15, 2016 Posted June 15, 2016 Export to a folder which isn't the root of the C drive, which you know you have access to.
califpearl Posted June 15, 2016 Author Posted June 15, 2016 In the upper left hand corner of the powershell window it states: Administrator: Windows PowerShell ISE. Since I am logged on as a standard user do I need to logon with my admin credentials?
Jawloms Posted June 15, 2016 Posted June 15, 2016 I'd still attempt it to a folder which isn't the root of C.
califpearl Posted June 15, 2016 Author Posted June 15, 2016 Created a folder as suggested to no avail. Export-Startlayout : The path C:\Windows\users\annan_000\desktop\layout\layout.xml did not resolve to a file.
Arthur Posted June 15, 2016 Posted June 15, 2016 Created a folder as suggested to no avail. Export-Startlayout : The path C:\Windows\users\annan_000\desktop\layout\layout.xml did not resolve to a file. Is there any reason you are using C:\Windows instead of C:\Users?
califpearl Posted June 15, 2016 Author Posted June 15, 2016 Created layout folder under users to no avail. Export-Startlayout –path "C:\users\layout\layout.xml" Export-Startlayout : Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)) At line:1 char:1 + Export-Startlayout –path "C:\users\layout\layout.xml" + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: ( [Export-StartLayout], UnauthorizedAccessException + FullyQualifiedErrorId : System.UnauthorizedAccessException,Microsoft.Windows.StartLayout.Commands.ExportStartL ayoutCommand
timbo343 Posted June 15, 2016 Posted June 15, 2016 Creata folder on the root of c called startmenu. Then run EXPORT-STARTLAYOUT and point it to C:\STARTMENU\STARTLAYOUT.XML
califpearl Posted June 15, 2016 Author Posted June 15, 2016 PS C:\WINDOWS\system32> Export-Startlayout –path: "C:\startmenu\layout.xml" Export-Startlayout : Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)) At line:1 char:1 + Export-Startlayout –path: "C:\startmenu\layout.xml" + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: ( [Export-StartLayout], UnauthorizedAccessException + FullyQualifiedErrorId : System.UnauthorizedAccessException,Microsoft.Windows.StartLayout.Commands.ExportStartL ayoutCommand
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now