Windows PowerShell Formatting Files
Windows PowerShell provides several formatting files (.format.ps1xml) that are located in the
installation directory ($pshome
). Each of these files defines the default display for a specific
set of .NET objects. These files should never be changed. However, you can use them as a reference
for creating your own custom formatting files.
Certificate.Format.ps1xml
Defines the display of objects in the Certificate store such as x.509
certificates and certificate stores.
DotNetTypes.Format.ps1xml
Defines the display of miscellaneous .NET objects such as CultureInfo,
FileVersionInfo, and EventLogEntry objects.
FileSystem.Format.ps1xml
Defines the display of file system objects such as file and directory
objects.
Help.Format.ps1xml
Defines the different views used by the Get-Help
cmdlet, such as the detailed, full, parameters, and example views.
PowerShellCore.Format.ps1xml
Defines the display of the objects generated by Windows PowerShell
core cmdlets, such as the objects returned by the Get-Member
and Get-History cmdlets.
PowerShellTrace.Format.ps1xml
Defines the display of trace objects such as those generated by the Trace-Command
cmdlet.
Registry.Format.ps1xml
Defines the display of registry objects such as key and entry objects.
See Also
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應