ADComputerRange.psm1
# __________________________________________________ # | | # # | ADComputerRange.psm1 | # # |__________________________________________________| # # Paths. $SEPARATOR = [System.IO.Path]::DirectorySeparatorChar; $NAME = $PSScriptRoot.Split($SEPARATOR)[-1]; $MANIFEST = $PSScriptRoot + $SEPARATOR + $NAME + '.psd1'; $PATH_PUB = $PSScriptRoot + $SEPARATOR + 'src' + $SEPARATOR + 'windows' + $SEPARATOR + 'public'; $PATH_PRIV = $PSScriptRoot + $SEPARATOR + 'src' + $SEPARATOR + 'windows' + $SEPARATOR + 'private'; $PATH_CLASSES = $PSScriptRoot + $SEPARATOR + 'src' + $SEPARATOR + 'windows' + $SEPARATOR + 'classes'; # Sourcing. $PUB = Get-ChildItem -Path $PATH_PUB | Where-Object { $_.Extension -eq '.ps1' }; $PUB | ForEach-Object { . $_.FullName }; $PRIV = Get-ChildItem -Path $PATH_PRIV | Where-Object { $_.Extension -eq '.ps1' }; $PRIV | ForEach-Object { . $_.FullName }; $CLASSES = Get-ChildItem -Path $PATH_CLASSES | Where-Object { $_.Extension -eq '.ps1' }; $CLASSES | ForEach-Object { . $_.FullName }; |