July 3, 2011 5:17 AM
Posted by: Richard Siddaway
PowerShell v2,
WMIThe batch file has a separate report for event log service status
wmic service where name="EventLog" get Name, SystemName, StartMode, Status
PowerShell translation
Get-WmiObject -Class Win32_Service -Filter "Name='Eventlog'" | Select Name, SystemName,...
July 3, 2011 5:06 AM
Posted by: Richard Siddaway
Operating System,
WMI
The batch file retrieves service information using
wmic service where state="Running" get DisplayName, Caption
Direct PowerShell translation is this.
Get-WmiObject -Class Win32_Service -Filter "State='Running'" | Select DisplayName,...
July 1, 2011 1:56 PM
Posted by: Richard Siddaway
Hardware,
Operating System,
PowerShell v2,
WMIA recent post on the powershell.com site asked about running a Windows command (batch) file through PowerShell against remote machines. The batch file was expected to produce a number of files of data in a folder structure based on computer name. This makes it difficult as we could in theory run...