MicrosoftDocs / windows-powershell-docs

This repo is used to contribute to Windows 10, Windows Server 2016, and MDOP PowerShell module documentation.
Creative Commons Attribution 4.0 International
441 stars 592 forks source link

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

Open laymanstake opened 2 months ago

laymanstake commented 2 months ago

Prerequisites

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