Quantcast
Channel: PowerShell
Viewing all articles
Browse latest Browse all 15370

how to UnBlock-SmbShareAccess windows server 2012 r2?

$
0
0

Hi,

I started to use FSRM to protect shared folders from ransomware.

I came up with this command that will block SMB access to the infected user:

-ExecutionPolicy Unrestricted -NoLogo -Command "& { Get-SmbShare -Special $false | ForEach-Object { Block-SmbShareAccess -Name $_.Name -AccountName '[Source Io Owner]' -Force } }"

It works fine, The problem is that I have no clue how to unblock the user..

:D


Viewing all articles
Browse latest Browse all 15370

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>