Monday, March 24, 2008

Do Not Edit comments in PowerShell XML files from Microsoft usually means you should? a) Not edit them? b) What comment? c) Those for you noobs, I know what I'm doing so I can edit them... d) PowerShell?...

Windows PowerShell - Never Modify PowerShell's XML Files

"Today we had a meeting about the installation of the next version of PowerShell on machines that had PowerShell V1.0 installed on them.  For reasons too painful and ugly to discuss, we are just going to replace any of the XML files (type extension and formatting files in $PSHOME) that WE INSTALLED in V1.0 (YOUR XML files are fine).  We are NOT going to make backups, detect modifications, nothing - we are going to pave and roll.

...

These sample files contain formatting information used by the Windows PowerShell engine. Do not edit or change the contents of this file
directly.
Please see the Windows PowerShell documentation or type Get-Help Update-FormatData for more information.

We really mean it, we are going to replace those files without a second thought so if you've put customizations into those files - get them out into their own files. "

LOL... I think they mean it.

 

Anyway, can you feel it? PowerShell 2 is getting close... :)

No comments: