Title: Get-FormatData and Export-Data does not return controls · Issue #11596 · PowerShell/PowerShell · GitHub
Open Graph Title: Get-FormatData and Export-Data does not return controls · Issue #11596 · PowerShell/PowerShell
X Title: Get-FormatData and Export-Data does not return controls · Issue #11596 · PowerShell/PowerShell
Description: ps1xml files have two definitions Controls and ViewDefinitions. Get-FormatData does not return controls used by a format definition so it can later be viewed and exported. Steps to reproduce $formats = Get-FormatData -TypeName System.IO....
Open Graph Description: ps1xml files have two definitions Controls and ViewDefinitions. Get-FormatData does not return controls used by a format definition so it can later be viewed and exported. Steps to reproduce $forma...
X Description: ps1xml files have two definitions Controls and ViewDefinitions. Get-FormatData does not return controls used by a format definition so it can later be viewed and exported. Steps to reproduce $forma...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/11596
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Get-FormatData and Export-Data does not return controls","articleBody":"\u003c!--\r\n\r\nFor Windows PowerShell 5.1 issues, suggestions, or feature requests please use the following link instead:\r\nWindows PowerShell [UserVoice](https://windowsserver.uservoice.com/forums/301869-powershell)\r\n\r\nThis repository is **ONLY** for PowerShell Core 6 and PowerShell 7+ issues.\r\n\r\n- Make sure you are able to repro it on the [latest released version](https://github.com/PowerShell/PowerShell/releases)\r\n- Search the existing issues.\r\n- Refer to the [FAQ](https://github.com/PowerShell/PowerShell/blob/master/docs/FAQ.md).\r\n- Refer to the [known issues](https://docs.microsoft.com/powershell/scripting/whats-new/known-issues-ps6?view=powershell-6).\r\n\r\n-->\r\n\r\n`ps1xml` files have two definitions Controls and ViewDefinitions. `Get-FormatData` does not return controls used by a format definition so it can later be viewed and exported.\r\n\r\n# Steps to reproduce\r\n\r\n```powershell\r\n$formats = Get-FormatData -TypeName System.IO.FileInfo -PowerShellVersion 6.0\r\n$formats\r\n\r\n$formats | Export-FormatData -Path c:\\temp\\filesys.ps1xml -IncludeScriptBlock\r\n```\r\n\r\n# Expected behavior\r\n\r\nControls used by the format definition are returned and are able to be exported.\r\n\r\n# Actual behavior\r\n\r\nNo controls are returned or exported.\r\n\r\n# Environment data\r\n\r\n\u003c!-- provide the output of $PSVersionTable -->\r\n\r\n```powershell\r\nName Value\r\n---- -----\r\nPSVersion 7.0.0-rc.1\r\nPSEdition Core\r\nGitCommitId 7.0.0-rc.1\r\nOS Microsoft Windows 10.0.17763\r\nPlatform Win32NT\r\nPSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}\r\nPSRemotingProtocolVersion 2.3\r\nSerializationVersion 1.1.0.1\r\nWSManStackVersion 3.0\r\n```\r\n","author":{"url":"https://github.com/ThomasNieto","@type":"Person","name":"ThomasNieto"},"datePublished":"2020-01-15T23:00:17Z","url":"https://github.com/PowerShell/PowerShell/issues/11596"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:f07f14bf-c198-acfc-a8a1-331aee75d907 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A0A8:4B7F8:2EBB2:422A1:6AFD585D |
| html-safe-nonce | 1a0b457ee7fd3d346e36b35ef37e0d239d21069ad67cbb8380f41d0c309633ae |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMEE4OjRCN0Y4OjJFQkIyOjQyMkExOjZBRkQ1ODVEIiwidmlzaXRvcl9pZCI6IjYyNzczNDQ0NzQ0MjcxMTk3MDkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 0dac877dfdaaba124c89b2246380eacf08c90839b34a92f8a6471ca478525efb |
| hovercard-subject-tag | issue:550476844 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/PowerShell/PowerShell/11596/issue_layout |
| twitter:image | https://opengraph.githubassets.com/51d55b4e07ec328ed26d5121b124e30ae7601c0751015542fc7c83b397240892/PowerShell/PowerShell/issues/11596 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/51d55b4e07ec328ed26d5121b124e30ae7601c0751015542fc7c83b397240892/PowerShell/PowerShell/issues/11596 |
| og:image:alt | ps1xml files have two definitions Controls and ViewDefinitions. Get-FormatData does not return controls used by a format definition so it can later be viewed and exported. Steps to reproduce $forma... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ThomasNieto |
| hostname | github.com |
| expected-hostname | github.com |
| None | 66653c2e55a6fff2930be1bdf07ee4f8aa137e3956d056c822563be6f878755e |
| turbo-cache-control | no-preview |
| go-import | github.com/PowerShell/PowerShell git https://github.com/PowerShell/PowerShell.git |
| octolytics-dimension-user_id | 11524380 |
| octolytics-dimension-user_login | PowerShell |
| octolytics-dimension-repository_id | 49609581 |
| octolytics-dimension-repository_nwo | PowerShell/PowerShell |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 49609581 |
| octolytics-dimension-repository_network_root_nwo | PowerShell/PowerShell |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | b6f01f7cb9f35f8c09949773241a3d49dd04b340 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width