Skip to content
This repository has been archived by the owner on Jun 27, 2024. It is now read-only.

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
Apoc70 committed Apr 8, 2021
1 parent 8886f6f commit eadef7f
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion Purge-LogFiles.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,16 @@ Add-PSSnapin -Name Microsoft.Exchange.Management.PowerShell.SnapIn -ErrorAction
Import-Module -Name ActiveDirectory

# 2015-06-18: Implementation of global functions module
Import-Module -Name GlobalFunctions
# Import GlobalFunctions
if($null -ne (Get-Module -Name GlobalFunctions -ListAvailable).Version) {
Import-Module -Name GlobalFunctions
}
else {
Write-Warning -Message 'Unable to load GlobalFunctions PowerShell module.'
Write-Warning -Message 'Open an administrative PowerShell session and run Import-Module GlobalFunctions'
Write-Warning -Message 'Please check http://bit.ly/GlobalFunctions for further instructions'
exit
}
$ScriptDir = Split-Path -Path $script:MyInvocation.MyCommand.Path
$ScriptName = $MyInvocation.MyCommand.Name
$logger = New-Logger -ScriptRoot $ScriptDir -ScriptName $ScriptName -LogFileRetention 14
Expand Down

0 comments on commit eadef7f

Please sign in to comment.