I'm trying to get the last windows update date from PowerShell, and I want to save it in a windows variable as text, so I can use it in future statements.
I have tried this method, which can be found in various forums and tutorials. However, it saves it as type Object, and X number of characters cannot be subtracted from it.
(New-Object -com "Microsoft.Update.AutoUpdate").Results|fl
I want to be able to extract certain characters from the text printed after that command, or directly get just the date so I can use it in a text declaration.