CaussyR
asked on
Process Monitor Date \ Time \ Command Line Data
Hi Everyone,
I am trying to output the process command line and date but the date format is in US, although running get-culture returns UK status. There are two things I need to knowm, how I can change the date format to dd/mm/yyyy hh:mm:ss and to format the output to a readable table format. here is the script I have put to gether :
$a = gwmi win32_process -computername localhost
$a | foreach-object{ $_.Name + " " + $_.commandline + " " + $_.ConvertToDateTime( $_.CreationDate )}
I am trying to output the process command line and date but the date format is in US, although running get-culture returns UK status. There are two things I need to knowm, how I can change the date format to dd/mm/yyyy hh:mm:ss and to format the output to a readable table format. here is the script I have put to gether :
$a = gwmi win32_process -computername localhost
$a | foreach-object{ $_.Name + " " + $_.commandline + " " + $_.ConvertToDateTime( $_.CreationDate )}
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER