Upload files to "/"
This commit is contained in:
parent
7e42e74d83
commit
595813d05e
2
Increase-MaxOSTFileLimit100GB.bat
Normal file
2
Increase-MaxOSTFileLimit100GB.bat
Normal file
@ -0,0 +1,2 @@
|
||||
REG ADD "HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\Outlook\PST" /v MaxLargeFileSize /t REG_DWORD /d "102400" /f
|
||||
REG ADD "HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\Outlook\PST" /v WarnLargeFileSize /t REG_DWORD /d "97280" /f
|
2
Increase-MaxOSTFileLimit75GB.bat
Normal file
2
Increase-MaxOSTFileLimit75GB.bat
Normal file
@ -0,0 +1,2 @@
|
||||
REG ADD "HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\Outlook\PST" /v MaxLargeFileSize /t REG_DWORD /d "76800" /f
|
||||
REG ADD "HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\Outlook\PST" /v WarnLargeFileSize /t REG_DWORD /d "74240" /f
|
6
Monitor-ADRecycleBin.ps1
Normal file
6
Monitor-ADRecycleBin.ps1
Normal file
@ -0,0 +1,6 @@
|
||||
# Monitors whether Active Directory Recycle bin feature is active
|
||||
|
||||
$Recycler = Get-ADOptionalFeature -Filter 'name -like "Recycle Bin Feature"'
|
||||
|
||||
if(!$Recycler.EnabledScopes){Write-Host "Active Directory Recycle Bin is not enabled"; exit 1}
|
||||
else{Write-Host "Healthy"}
|
6
Monitor-ExProLicenceKey.ps1
Normal file
6
Monitor-ExProLicenceKey.ps1
Normal file
@ -0,0 +1,6 @@
|
||||
# Monitors whether Examine Pro Licence USB Key is preasent
|
||||
|
||||
$driver = Get-WindowsDriver -Online -all | Where-Object {$_.ProviderName -eq "SafeNet, Inc."}
|
||||
|
||||
if ($driver -eq $null){Write-Host "Licence Key is Missing"; exit 1}
|
||||
else {Write-Host "Licence Key is Present"; exit 0}
|
23
Monitor-LargeOSTFiles.ps1
Normal file
23
Monitor-LargeOSTFiles.ps1
Normal file
@ -0,0 +1,23 @@
|
||||
# Monitors if any user's OST file is over a given size, default 45GB
|
||||
|
||||
param([double]$MinSize = 45)
|
||||
|
||||
$UserFolder = "C:\Users"
|
||||
$OutlookFolder = "AppData\Local\Microsoft\Outlook"
|
||||
|
||||
Get-ChildItem -Path $UserFolder | ForEach-Object {
|
||||
$User = $_
|
||||
$Folder = "$User\$OutlookFolder"
|
||||
if ($(Test-Path -Path $Folder)){
|
||||
$FoundFiles = Get-ChildItem $Folder -Filter *.ost | Where-Object {$_.Length / ($MinSize * 1GB) -gt 1}
|
||||
$FoundFiles | Select-Object FullName, Length | ForEach-Object {
|
||||
$Name = $_.FullName
|
||||
$Size = [Math]::Round(($_.Length / 1GB), 2)
|
||||
Write-Host "$Name $Size GB"
|
||||
}
|
||||
if ($FoundFiles){$script:Found = $true}
|
||||
}
|
||||
}
|
||||
|
||||
if ($script:Found) {exit 1}
|
||||
else {exit 0}
|
Loading…
x
Reference in New Issue
Block a user