Answer the question
In order to leave comments, you need to log in
Blocking access to network folder via powershell script?
Good afternoon!
There is a script downloaded from github and edited - RansomwareBlockSmb.
Answer the question
In order to leave comments, you need to log in
You could at least write how exactly you launch ....
If you look at what it calls there ( Block-SmbShareAccess )
and then look at usage examples,
get-help Block-SmbShareAccess -examples
then in the examples you can see that the command is launched with the name shares,
Block-SmbShareAccess -Name VMFiles -AccountName Contoso\Guest
You, judging by an error, have the full path in the name of the balls, and not just the name. Your name will be V$ , where \\FILESERVER\ comes from, you know better. Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question