Error output formatting
Replaced wmi object initialization with a generator pattern