I have queried for installed hotfix information from a machine from windows client machine, im able to get all the information except the installed on file return with hexa decimal.
I imported the output file in to the excel sheet and tried to format the installed on column with normal date and time however i was unable to do it if i change the format the value appears like this “############”.
Sample of output information from the get-hotfix information.
Caption Description HotFixID InstalledBy InstalledOn
Microsoft Support Security Update KB2079403 S-1-5-21-1533859529-1408025176-2769211490-500 01ccdaac39926974 –> Date and time format.
Note : As per the design “https://msdn.microsoft.com/en-us/library/aa394391(VS.85).aspx” from some operating systems it is expected to get hexadecimal value
I have a powershell script which would gets me to open the excel sheet however im unable to write further commands to modify the installed on column to convert to date/time format from hexa decimal.
Any help would be higly appreaciated.
###############################################
Power shell script.
$oldci = [System.Threading.Thread]::CurrentThread.CurrentCulture
$newci = [System.Globalization.CultureInfo]“en-US”
$path=‘E:\Case share\HSBC-Manish\date.xlsx’
$objExcel = New-Object -ComObject “Excel.Application”
$objExcel.visible = $true
[system.threading.Thread]::CurrentThread.CurrentCulture = $newci
$objWorkbook =$objExcel.Workbooks.Open($path)
$worksheet = $objWorkbook.sheets.item(“date”)
#############################################