forked from microsoft/PowerStig
-
Notifications
You must be signed in to change notification settings - Fork 0
/
PowerStig.Convert.psm1
52 lines (49 loc) · 2.77 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
52
# 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\Rule\Rule.psm1
using module .\Module\Rule\Convert\ConvertFactory.psm1
using module .\Module\Rule.AccountPolicy\Convert\AccountPolicyRule.Convert.psm1
using module .\Module\Rule.AuditPolicy\Convert\AuditPolicyRule.Convert.psm1
using module .\Module\Rule.DnsServerRootHint\Convert\DnsServerRootHintRule.Convert.psm1
using module .\Module\Rule.DnsServerSetting\Convert\DnsServerSettingRule.Convert.psm1
using module .\Module\Rule.Document\Convert\DocumentRule.Convert.psm1
using module .\Module\Rule.FileContent\Convert\FileContentRule.Convert.psm1
using module .\Module\Rule.Group\Convert\GroupRule.Convert.psm1
using module .\Module\Rule.IISLogging\Convert\IISLoggingRule.Convert.psm1
using module .\Module\Rule.Manual\Convert\ManualRule.Convert.psm1
using module .\Module\Rule.MimeType\Convert\MimeTypeRule.Convert.psm1
using module .\Module\Rule.Permission\Convert\PermissionRule.Convert.psm1
using module .\Module\Rule.ProcessMitigation\Convert\ProcessMitigationRule.Convert.psm1
using module .\Module\Rule.Registry\Convert\RegistryRule.Convert.psm1
using module .\Module\Rule.SecurityOption\Convert\SecurityOptionRule.Convert.psm1
using module .\Module\Rule.Service\Convert\ServiceRule.Convert.psm1
using module .\Module\Rule.SqlScriptQuery\Convert\SqlScriptQueryRule.Convert.psm1
using module .\Module\Rule.UserRight\Convert\UserRightRule.Convert.psm1
using module .\Module\Rule.WebAppPool\Convert\WebAppPoolRule.Convert.psm1
using module .\Module\Rule.WebConfigurationProperty\Convert\WebConfigurationPropertyRule.Convert.psm1
using module .\Module\Rule.WindowsFeature\Convert\WindowsFeatureRule.Convert.psm1
using module .\Module\Rule.WinEventLog\Convert\WinEventLogRule.Convert.psm1
using module .\Module\Rule.SslSettings\Convert\SslSettingsRule.Convert.psm1
using module .\Module\Rule.Wmi\Convert\WmiRule.Convert.psm1
# load the public functions
foreach ($supportFile in ( Get-ChildItem -Path "$PSScriptRoot\Module\Stig\Convert" -Recurse -Filter '*.ps1' -Exclude 'Data.*.ps1' ) )
{
Write-Verbose "Loading $($supportFile.FullName)"
. $supportFile.FullName
}
Export-ModuleMember -Function @(
'ConvertFrom-StigXccdf',
'ConvertTo-PowerStigXml',
'Compare-PowerStigXml',
'Get-ConversionReport',
'Split-StigXccdf'
)