BitTitan.Runbooks.Sync.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
<#
.SYNOPSIS
    PowerShell module for the sync framework used in BitTitan Runbooks
.NOTES
    Version: 0.1.7
    Last updated: 22 April 2019
 
    Copyright (c) BitTitan, Inc. All rights reserved.
    Licensed under the MIT License.
#>


# Install and import BitTitan.Runbooks.Modules for the Import-BT_Module and Import-ExternalModule functions
if ("BitTitan.Runbooks.Modules" -notIn (Get-Module).Name) {
    Install-Module BitTitan.Runbooks.Modules -Scope CurrentUser -AllowClobber -Force
    Import-Module -Name "$($env:USERPROFILE)\Documents\WindowsPowerShell\Modules\BitTitan.Runbooks.Modules" -Force
}

# Import external modules

# Import BitTitan.Runbooks modules
Import-BT_Module BitTitan.Runbooks.ActiveDirectory -Quiet
Import-BT_Module BitTitan.Runbooks.Common -Quiet
Import-BT_Module BitTitan.Runbooks.MSPComplete -Quiet