19 lines
1.1 KiB
PowerShell
19 lines
1.1 KiB
PowerShell
$p = Get-Process | Where-Object { $_.Name -like 'Sword*' }
|
|
$p | Select-Object Id,Name,MainWindowTitle,ProcessorAffinity,StartTime,@{n='Threads';e={$_.Threads.Count}},WorkingSet64 | Format-List
|
|
$p.Threads | Select-Object Id,@{n='Start';e={'0x{0:x8}' -f [int64]$_.StartAddress}},ThreadState,WaitReason,TotalProcessorTime,BasePriority,CurrentPriority | Format-Table -AutoSize
|
|
"--- tools"
|
|
Get-Command wpr,xperf,logman,typeperf,tracelog -ErrorAction SilentlyContinue | Select-Object Name,Source | Format-Table -AutoSize
|
|
"--- SOTS dir"
|
|
Get-ChildItem C:\SOTS | Where-Object { $_.Extension -in '.ini','.cfg','.txt','.log' } | Select-Object Name,Length,LastWriteTime | Format-Table -AutoSize
|
|
"--- Z:"
|
|
Test-Path Z:\
|
|
Get-ChildItem C:\Tools | Select-Object Name
|
|
"--- tasks"
|
|
schtasks /Query /TN SOTS /FO LIST 2>&1 | Select-String Status
|
|
schtasks /Query /TN SOTSUI /FO LIST 2>&1 | Select-String Status
|
|
"--- ui"
|
|
Get-Content C:\SOTS\ui\log.txt -Tail 5 -ErrorAction SilentlyContinue
|
|
"--- saves"
|
|
Get-ChildItem C:\SOTS\SavedGames | Select-Object Name,Length,LastWriteTime | Format-Table -AutoSize
|
|
"--- display.cfg"
|
|
Get-Content C:\SOTS\display.cfg
|