Upload files to "/"

This commit is contained in:
aaron 2023-12-18 18:01:36 +00:00
parent 7e42e74d83
commit 595813d05e
5 changed files with 39 additions and 0 deletions

View 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

View 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
View 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"}

View 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
View 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}