$monitoredExtensions = your files back.*", $fileTemplateName = "CryptoBlockerTemplate" Write-Host "Other version of Windows detected! Quitting." &servermanagercmd -Install FS-FileServer FS-Resource-Manager Installing (2008 R2)."Īdd-WindowsFeature FS-FileServer, FS-Resource-Manager Install-WindowsFeature -Name FS-Resource-Manager -IncludeManagementToolsĮlseif ($minorVer -ge 1 -and $checkFSRM.Installed -ne "True") If ($minorVer -ge 2 -and $checkFSRM.Installed -ne "True") ![]() $checkFSRM = Get-WindowsFeature -Name FS-Resource-Manager Write-Host "Checking File Server Resource Manager." Write-Host "The following shares needing to be protected: $($drivesContainingShares -Join ",")" ![]() Write-Host "No drives containing shares were found. ![]() If ($drivesContainingShares -eq $null -or $drivesContainingShares.Length -eq 0) # Functions #įunction PurgeNonAdminDirectoryPermissions( $directory) ![]() # 6) Creates File Screens utilising this template for each drive containing network shares # 5) Creates a File Screen Template utilising this File Group, with an Event notification and Command notification # 4) Creates a File Group within FSRM containing malicious extensions to screen on # 3) Creates Batch and PowerShell scripts used by FSRM # 2) Install File Server Resource Manager (FSRM) if missing # This script performs the following actions:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |