BcAdmin.psm1

#Requires -RunAsAdministrator

# Load the compiled C# DLL
Write-Verbose "Import '$PSScriptRoot\lib\BcAdmin.dll'"
Import-Module "$PSScriptRoot\lib\BcAdmin.dll"

# Dot-source PowerShell scripts
. $PSScriptRoot\functions\Get-BcLicenseNo.ps1
. $PSScriptRoot\functions\Publish-MyModule.ps1
. $PSScriptRoot\functions\Set-Sample.ps1

. $PSScriptRoot\functions\appdev\Get-BcSymbol.ps1
. $PSScriptRoot\functions\appdev\Get-FilenameFromContentDisposition.ps1
. $PSScriptRoot\functions\appdev\Invoke-Alc.ps1
. $PSScriptRoot\functions\appdev\Update-AppVersionAndRuntime.ps1
. $PSScriptRoot\functions\common\ConvertTo-RelativePath.ps1
. $PSScriptRoot\functions\common\Copy-Newest.ps1
. $PSScriptRoot\functions\common\Import-BcManagement.ps1
. $PSScriptRoot\functions\service\Restart-BcService.ps1
. $PSScriptRoot\functions\setup\Get-BcDvdUrl.ps1
. $PSScriptRoot\functions\setup\Get-BcDvd.ps1
. $PSScriptRoot\functions\setup\Test-BcInstalled.ps1
. $PSScriptRoot\functions\setup\Install-Bc.ps1
. $PSScriptRoot\functions\setup\Uninstall-Bc.ps1
. $PSScriptRoot\functions\setup\Start-BcSetup.ps1
. $PSScriptRoot\functions\setup\Get-ManagementPathFromMsiLog.ps1
. $PSScriptRoot\functions\setup\Get-Uninstall.ps1
. $PSScriptRoot\functions\setup\Get-BcInstallationProperty.ps1


# Export functions and cmdlets
# - First assorted examples
Export-ModuleMember -Function Get-BcLicenseNo, Publish-MyModule #, Set-Sample
# Export-ModuleMember -Cmdlet Test-SampleCmdlet
# - Common
Export-ModuleMember -Function ConvertTo-RelativePath, Copy-Newest
Export-ModuleMember -Function Import-BcManagement
# - Setup
Export-ModuleMember -Function Get-BcDvdUrl, Get-BcDvd
Export-ModuleMember -Function Test-BcInstalled, Install-Bc, Uninstall-Bc
Export-ModuleMember -Function Get-BcInstallationProperty, Get-Uninstall, Get-ManagementPathFromMsiLog
Export-ModuleMember -Function Start-BcSetup
# - Service Management
Export-ModuleMember -Function Restart-BcService
# - App Development
Export-ModuleMember -Function Get-FilenameFromContentDisposition
Export-ModuleMember -Function Get-BcSymbol
Export-ModuleMember -Function Invoke-Alc
Export-ModuleMember -Function Update-AppVersionAndRuntime
# PowerShell Module management
Export-ModuleMember -Function Publish-MyModule
# Allowed PowerShell Verbs Cheat Sheet
#
# Common Verbs:
# - Add
# - Clear
# - Close
# - Copy
# - Enter
# - Exit
# - Find
# - Format
# - Get
# - Hide
# - Join
# - Lock
# - Move
# - New
# - Open
# - Optimize
# - Pop
# - Push
# - Redo
# - Remove
# - Rename
# - Reset
# - Search
# - Select
# - Set
# - Show
# - Skip
# - Split
# - Step
# - Switch
# - Undo
# - Unlock
# - Watch
#
# Communication Verbs:
# - Connect
# - Disconnect
# - Read
# - Receive
# - Send
# - Write
#
# Data Verbs:
# - Backup
# - Checkpoint
# - Compare
# - Compress
# - Convert
# - ConvertFrom
# - ConvertTo
# - Dismount
# - Edit
# - Expand
# - Export
# - Group
# - Import
# - Initialize
# - Limit
# - Merge
# - Mount
# - Out
# - Publish
# - Restore
# - Save
# - Sync
# - Unpublish
# - Update
#
# Diagnostic Verbs:
# - Debug
# - Measure
# - Ping
# - Repair
# - Resolve
# - Test
# - Trace
#
# Lifecycle Verbs:
# - Approve
# - Assert
# - Complete
# - Confirm
# - Deny
# - Disable
# - Enable
# - Install
# - Invoke
# - Register
# - Request
# - Restart
# - Resume
# - Start
# - Stop
# - Submit
# - Suspend
# - Uninstall
# - Unregister
# - Wait
#
# Security Verbs:
# - Block
# - Grant
# - Protect
# - Revoke
# - Unblock
# - Unprotect