Create HTA Files

Another way is to ConvertTo-HTML is a convenient way of converting object results in HTML. However when you open these files, your browser starts with all the bells and whistles. You should try a better way by storing the HTML in a file with HTA extension:

Get-Process | ConvertTo-HTML | Out-File $home\result.hta
Invoke-Item $home\result.hta

Twitter This Tip! ReTweet this Tip!


Posted Apr 16 2010, 08:00 AM by ps1

Comments

Twitter Trackbacks for Create HTA Files - Power Tips - PowerShell.com [powershell.com] on Topsy.com wrote Twitter Trackbacks for Create HTA Files - Power Tips - PowerShell.com [powershell.com] on Topsy.com
on 04-16-2010 10:30 AM

Pingback from  Twitter Trackbacks for                 Create HTA Files - Power Tips - PowerShell.com         [powershell.com]        on Topsy.com

Who can answer two questions (on the new mail and a web host)? | Host Rage wrote Who can answer two questions (on the new mail and a web host)? | Host Rage
on 04-21-2010 7:57 AM

Pingback from  Who can answer two questions (on the new mail and a web host)? | Host Rage

Concentrated Tech NSoftware Dell Compellent Sponsored by Idera and Concentrated Tech and NSoftware and Dell Compellent
Copyright 2011 PowerShell.com. All rights reserved.