hi everyone,
get-process |
Select-Object name,Description,VM |
ConvertTo-Html|Format-Table name,description,@{n='VM(MB)';e={$PSItem.VM / 1MB -as [int]};formatstring='f2'; align='right'} |
Out-File C:\Users\Administrator\Desktop\Powershell\process3.html
when i run this script it runs without errors but its not what i expected i want to format the VM column as mention in the script
but i get the output as default formatting
Note:-when i run this script without ConverTo-HTML the Formatting is applied as in the script
is there any way of solving this plz help
Thanks !!!