S SQLSERVER:\SQL\CMS_ServerName\DEFAULT> if ($host.Name -eq "ConsoleHost")
{}Write-Host -ForegroundColor green " Finished server loop"
Finished server loop
PS SQLSERVER:\SQL\CMS_ServerName\DEFAULT> $dr.Close()
PS SQLSERVER:\SQL\CMS_ServerName\DEFAULT> $sconn.Close()
PS SQLSERVER:\SQL\CMS_ServerName\DEFAULT>
PS SQLSERVER:\SQL\CMS_ServerName\DEFAULT> #Shred the XML results to PolicyHistoryDetai
ls
PS SQLSERVER:\SQL\CMS_ServerName\DEFAULT> Invoke-Sqlcmd -ServerInstance $CentralManage
mentServer -Database $HistoryDatabase -Query "EXEC policy.epm_LoadPolicyHistoryD
etail `$(PolicyCategory)" -Variable "PolicyCategory='${PolicyCategoryFilter}'" -
QueryTimeout 65535 -Verbose -ErrorAction Stop
WARNING: Using provider context. Server = CMS_ServerName.
VERBOSE: Feb 26 2015 1:11:09:570PM - Starting data integration for Category
Server Configuration
VERBOSE: Feb 26 2015 1:11:09:570PM |- 0 rows inserted...
VERBOSE: Feb 26 2015 1:11:09:570PM - Starting no target data integration
VERBOSE: Feb 26 2015 1:11:09:570PM |- 0 rows inserted...
VERBOSE: Feb 26 2015 1:11:09:570PM - Starting errors data integration
VERBOSE: Feb 26 2015 1:11:09:570PM |- 0 rows inserted...
VERBOSE: Feb 26 2015 1:11:09:570PM - Finished data integration for Category
Server Configuration
PS SQLSERVER:\SQL\CMS_ServerName\DEFAULT>
PS SQLSERVER:\SQL\CMS_ServerName\DEFAULT> if ($host.Name -eq "ConsoleHost")
{$(Get-Date -Format G)"Write-Host -ForegroundColor green "Finished policy category evaluation -
}