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 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈