-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathload-module.ps1
54 lines (50 loc) · 2.97 KB
/
load-module.ps1
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
53
54
# SPDX-License-Identifier: BSD-3-Clause
# Copyright 2018 Jacob Keller. All rights reserved.
# vim: et:ts=4:sw=4
# Load the shared module file, and a config object.
# Intended to be used with a shortcut that starts a powershell console with -noexit
# i.e.
# C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -noexit -file "load-module.ps1"
#
# This is useful to load a console that already has the module functions
# and $config available, for debugging or manual uploading, etc.
# Load the shared module]
Write-Host -ForegroundColor DarkYellow "Loading the l0g-101086.psm1 module file"
Import-Module -Force -DisableNameChecking (Join-Path -Path $PSScriptRoot -ChildPath l0g-101086.psm1)
# Load the configuration from the default file
$config_file = Get-Config-File
Write-Host -ForegroundColor DarkYellow "Loading the config from ${config_file}"
$config = Load-Configuration $config_file
Write-Host -ForegroundColor Yellow "You can now access the `$config object and module functions"
# SIG # Begin signature block
# MIIFhQYJKoZIhvcNAQcCoIIFdjCCBXICAQExCzAJBgUrDgMCGgUAMGkGCisGAQQB
# gjcCAQSgWzBZMDQGCisGAQQBgjcCAR4wJgIDAQAABBAfzDtgWUsITrck0sYpfvNR
# AgEAAgEAAgEAAgEAAgEAMCEwCQYFKw4DAhoFAAQUzUH0Rsc1sEY2GRbbXpLCwO75
# rz+gggMYMIIDFDCCAfygAwIBAgIQLNFTiNzlwrtPtvlsLl9i3DANBgkqhkiG9w0B
# AQsFADAiMSAwHgYDVQQDDBdMMEctMTAxMDg2IENvZGUgU2lnbmluZzAeFw0xOTA1
# MTEwNjIxMjNaFw0yMDA1MTEwNjQxMjNaMCIxIDAeBgNVBAMMF0wwRy0xMDEwODYg
# Q29kZSBTaWduaW5nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ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