Skip to content

Instantly share code, notes, and snippets.

$logs = 'c:\windows\system32\ccm\logs\smstslog'
if (-not (test-path $logs))
{
exit 0
}
$tsenv = new-object -comobject Microsoft.SMS.TSEnvironment
$computer = ""
if ($tsenv -ne $null)
{