forked from microsoft/PowerStig
-
Notifications
You must be signed in to change notification settings - Fork 0
/
PowerStig.Convert.psm1
51 lines (48 loc) · 2.31 KB
/
PowerStig.Convert.psm1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
#Requires -Version 5.1
<#
A funny note if you have OCD. The order of the dot sourced files is important due to the way
that PowerShell processes the files (Top/Down). The Classes in the module depend on the
enumerations, so if you want to alphabetize this list, don't. PowerShell with throw an error
indicating that the enumerations can't be found, if you try to load the classes before the
enumerations.
#>
using module .\Module\Common\Common.psm1
using module .\Module\Convert\Convert.psm1
using module .\Module\AccountPolicyRule\AccountPolicyRule.psm1
using module .\Module\AuditPolicyRule\AuditPolicyRule.psm1
using module .\Module\DnsServerRootHintRule\DnsServerRootHintRule.psm1
using module .\Module\DnsServerSettingRule\DnsServerSettingRule.psm1
using module .\Module\DocumentRule\DocumentRule.psm1
using module .\Module\FileContentRule\FileContentRule.psm1
using module .\Module\GroupRule\GroupRule.psm1
using module .\Module\IISLoggingRule\IISLoggingRule.psm1
using module .\Module\ManualRule\ManualRule.psm1
using module .\Module\MimeTypeRule\MimeTypeRule.psm1
using module .\Module\PermissionRule\PermissionRule.psm1
using module .\Module\ProcessMitigationRule\ProcessMitigationRule.psm1
using module .\Module\RegistryRule\RegistryRule.psm1
using module .\Module\SecurityOptionRule\SecurityOptionRule.psm1
using module .\Module\ServiceRule\ServiceRule.psm1
using module .\Module\SqlScriptQueryRule\SqlScriptQueryRule.psm1
using module .\Module\Rule\Rule.psm1
using module .\Module\UserRightsAssignmentRule\UserRightsAssignmentRule.psm1
using module .\Module\WebAppPoolRule\WebAppPoolRule.psm1
using module .\Module\WebConfigurationPropertyRule\WebConfigurationPropertyRule.psm1
using module .\Module\WindowsFeatureRule\WindowsFeatureRule.psm1
using module .\Module\WinEventLogRule\WinEventLogRule.psm1
using module .\Module\WmiRule\WmiRule.psm1
# load the public functions
foreach ($supportFile in ( Get-ChildItem -Path "$PSScriptRoot\Module\Convert.Main" -Filter '*.ps1' ) )
{
Write-Verbose "Loading $($supportFile.FullName)"
. $supportFile.FullName
}
Export-ModuleMember -Function @(
'ConvertFrom-StigXccdf',
'ConvertTo-PowerStigXml',
'Compare-PowerStigXml',
'Get-ConversionReport',
'Split-StigXccdf'
)