FpsGeneral.psm1
# General functions $CmdLets = @( 'Check-FileExists.ps1' 'Check-ServiceNotExistsError.ps1' 'Check-StringNullOrEmpty.ps1' 'Confirm-PowershellSessionHasAdministratorRole.ps1' 'Convert-LocalPathToUncPath.ps1' 'Convert-UncPathToLocalPath.ps1' 'Copy-SourceFileToTargetFile.ps1' 'Extract-DatabaseFromZipFile' 'Get-LastLineFromArray.ps1' 'Get-NstCredentials.ps1' 'Invoke-ShrinkDatabaseLogFile.ps1' 'New-ImpersonateUser.ps1' 'Set-ItemDateTime.ps1' 'Set-LocalBakFileNameFromServerBakFileName.ps1' 'Show-MessageBox.ps1' 'Test-PathLifetime' 'Write-DebugInfoToOutput.ps1' 'Write-StartProcessLine.ps1' 'Write-EndProcessLine.ps1' ) | ForEach-Object {Join-Path -Path 'Functions' -ChildPath $_} # RemotePS $CmdLets += @( 'Add-TrustedHost.ps1' 'Clear-TrustedHosts.ps1' 'Get-IpAddressFromHostname.ps1' 'Get-TrustedHosts.ps1' 'Remove-TrustedHosts.ps1' 'Set-TrustedHosts.ps1' ) | ForEach-Object {Join-Path -Path 'Functions\RemotePS' -ChildPath $_} $CmdLets | ForEach-Object { . (Join-Path -Path $PSScriptRoot -ChildPath $_) } |