Powershell? Capturing session information.

Associate
Joined
23 Jun 2007
Posts
552
Location
South East
I'm looking for a script or utility that can be used to essentially capture what is displayed via the task manager.

In an ideal world it would include username, logon time, open applications/running processes, memory status etc.

Is this something that could be achieved with a powershell script or could any of you suggest a utility that would offer something similar?

The goal is to provide consistent information when service desk agents are logging calls. Any suggestions welcome!

TIA
 
So you want a snapshot of everything running on a machine at the moment the script is run? If so it's fairly straightforward.

Code:
$ComputerName = $args[0]

"Processes:"
Get-Process -ComputerName $ComputerName | Format-Table -AutoSize
""
"Services:"
Get-Service -ComputerName $ComputerName | Format-Table -AutoSize

Above is really basic, but might get you going down the right path. Will list running processes and services.

Are you familiar with powershell at all? Great introduction to it here:
http://www.powershellpro.com/powershell-tutorial-introduction/tutorial-windows-powershell-console/

Thanks for the suggestions there.

The issue I have is I won't always know the computer name and the end user will working in a Citrix environment so I need 'session' rather than machine.

I'll continue to read!
 
Back
Top Bottom