Quantcast
Viewing all articles
Browse latest Browse all 138

New Post: Enterprise Policy Management Framework 4.0 versus SQL Server 2014

-KeithCorser
So you're having issues with the reports? These have not changed from v4, as the schema in the database remains the same.
About the PS issue, can you provide the full output please?
Thanks

-wfvdijk
So I'm with the same PS version and SQL as CMS, and I get the following (not running PS in elevated prompt, but in account that is local admin):
PS D:\PBMTest> .\EPM_EnterpriseEvaluation_41.ps1 -ConfigurationGroup "" -PolicyCategoryFilter "Microsoft Best Practices: Maintenance" -EvalMode "Check"
Loading Assemblies...
Loading SQLPS module...
VERBOSE: Nov 25 2014 12:32:41:900AM - Starting data integration for Category Microsoft Best Practices: Maintenance
VERBOSE: Nov 25 2014 12:32:42:660AM   |- 111 rows inserted...
VERBOSE: Nov 25 2014 12:32:42:660AM - Starting no target data integration
VERBOSE: Nov 25 2014 12:32:42:670AM   |- 1 rows inserted...
VERBOSE: Nov 25 2014 12:32:42:670AM - Starting errors data integration
VERBOSE: Nov 25 2014 12:32:42:680AM   |- 0 rows inserted...
VERBOSE: Nov 25 2014 12:32:42:680AM - Finished data integration for Category Microsoft Best Practices: Maintenance
So, although I cannot seem to repro your issue, may I ask you to change the following (minus start and end double quotes, and try again?
"$OutputFile = $ResultDir + ("{0}_{1}.xml" -f ($ServerName), ($PolicyName))"
to
"$OutputFile = $ResultDir + ("{0}_{1}.xml" -f (Encode-SqlName $ServerName), ($PolicyName))"
Also change the + above to plus sign.

Also, let's escape the characters in the replace, like so:
$PolicyName = $PolicyName -replace "\\", "" 
$PolicyName = $PolicyName -replace "\/", "" 
$PolicyName = $PolicyName -replace "\?", "" 
$PolicyName = $PolicyName -replace "\:", "" 
$PolicyName = $PolicyName -replace "\*", "" 
$PolicyName = $PolicyName -replace "\<", "" 
$PolicyName = $PolicyName -replace "\>", "" 
$PolicyName = $PolicyName -replace " ", ""
Please let me know how it works.
Thanks

Viewing all articles
Browse latest Browse all 138

Trending Articles