MicrosoftDocs/windows-powershell-docs

Export-StartLayout -Path .\sample.xml -UseDesktopAppplicationID fails to find the switch

Opened this issue · 0 comments

Prerequisites

  • Existing Issue: Search the existing issues for this repository. If there is an issue that fits your needs do not file a new one. Subscribe, react, or comment on that issue instead.
  • Descriptive Title: Write the title for this issue as a short synopsis. If possible, provide context. For example, "Typo in Get-Foo cmdlet" instead of "Typo."
  • Verify Version: If there is a mismatch between documentation and the behavior on your system, ensure that the version you are using is the same as the documentation. Check this box if they match or the issue you are reporting is not version specific.

Links

https://github.com/MicrosoftDocs/windows-powershell-docs/blob/main/docset/winserver2019-ps/startlayout/Export-StartLayout.md

https://github.com/MicrosoftDocs/windows-powershell-docs/blob/main/docset/winserver2022-ps/startlayout/Export-StartLayout.md

Summary

Once the command is run, we get the below error

Export-StartLayout : The method or operation is not implemented.

It works when run without the switch. Also it works when ran on Windows 2022 but doesn't work on Windows 10/11 (up to 24h2)

Details

Running Get-Help does confirm that syntax is correct

(get-help export-startlayout).syntax
Export-StartLayout [-Confirm] -LiteralPath [-UseDesktopApplicationID] [-WhatIf] []
Export-StartLayout [-Path] [-Confirm] [-UseDesktopApplicationID] [-WhatIf] []

Checking about specific parameter also doesn't point that why there should be an error

get-help export-startlayout -Parameter UseDesktopApplicationId
-UseDesktopApplicationID []
Specifies that the layout file should export the DesktopApplicationID value instead of DesktopApplicationLinkPath
which is the default. DesktopApplicationID is the application's ID and DesktopApplicationLinkPath is a path to a
shortcut link (.lnk file) to a Windows desktop application.

Suggested Fix

Help documentation should be updated or the cmdlet should be fixed