Jump to content

Recommended Posts

Posted

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?

Posted

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 ".

Posted

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.

Posted (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? :confused:

 

Export-StartLayout -Path "C:\Users\annan_000\Desktop\Tiles.xml"

Edited by Arthur
Posted
The path doesn't look quite right? :confused:

 

Export-StartLayout -Path: "C:\Users\annan_000\Desktop\Tiles.xml"

 

Just noticed that. I copied his path and sorted the spacing.

Posted (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.

 

Xtftyr.png

 

There isn't one shown in the help for that cmdlet.

Edited by Arthur
Posted
Not sure if it matters, but both of yours also have colons after the -Path parameter.

 

Xtftyr.png

 

There isn't one shown in the help for that cmdlet.

 

Its always worked with me.

Posted

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.

Posted
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!

Posted

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.

Posted
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?
Posted

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.

Posted
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?

Posted

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

Posted

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...