Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

filegroups removed before adding new ones , even after bad connection #1

Open
wants to merge 35 commits into
base: master
Choose a base branch
from

Conversation

hansstobbe
Copy link

Is there a way , that the filegroups and templates are not removed before there is a good connection to https://fsrm.experiant.ca/api/v1/get , and that the configuration has been downloaded?
Now , if there is no good connection, the whole protection will be removed and there is NO protection.

nexxai and others added 30 commits September 30, 2016 12:11
* Update DeployCryptoBlocker.ps1

One major change and some minor tweaks pull request.

 - New-CBArraySplit does string splitting and joining to test the 4Kb limit, but file extensions can have commas in them so it risks splitting in the middle of a file extension and breaking. Reworked it to build up a temporary array on the fly, checking the extra string length each time won't push the array over the 4Kb limit. Updated it to output to the pipeline. Merged the FileGroupName property into it.

 - Normalise ConvertFrom-Json20 to use Param() block. Added comment.

 - Updated the Get-WmiObject call for drives with shares, formatting, added comments, does the share root with a DirectoryInfoCast which won't error if the item doesn't exist, and calls te Name property instead of string interpolation, forced it to be an array with @() and removed the following $null test.

 - Windows version comment, tweaked "other version" message.

 - ConvertFrom-Json20 call was using parens, which isn't PowerShell function call syntax. Changed, and expanded ForEach-Object alias in that line.

 - Reworked SkipList to do the trim() call when loading and use array -notcontains to remove the exclusions.

 - Changed the emtpy file message to use a here-string instead of backtick continuations.

 - Updated the call to New-CBArraySplit

 - Expanded % alias at end of file.

* Fix two typos

Selec-Object  corrected to Select-Object in Get-WmiObject lines.
SplitPath   corrected to Split-Path in SkipList.txt code.
* Extended functionality and polished ouput

- added the notification options to the template
- removed notification options from the file screen
- added active/passiv screen type configuration
- added german translation to the notification messages
- output polished a bit ;-)
- added a few more comments

* changed default language to english

* changed default type to active
Dropping it down by a byte didn't help; due to some bad counting, this should fix it.
* initial commit of proof of concept scripts

* Initial draft of README.md for PoC
Quick change as reported privately
----
Quote:
Today I ran into a problem when executing your script on Windows Server 2016, it fails with error "servermanagercmd is not recognized as internal or external command..."
The problem is that it incorrectly identifies Server 2016 as Server 2008.
The Major version number of Server 2016 is 10, which returns true for the first clause. The script then goes into checking the minor version, and since the minor version number is 0, it returns false for all clauses, until it runs into the Server 2008 elseif and tries to run the unsopported command.
…tect those shares. If not, then protect all the shares on the system. (#43)
StarDestroyer78 and others added 5 commits January 11, 2018 12:21
* Add support for a "ProtectList.txt" ... if this file exists, only protect those shares. If not, then protect all the shares on the system.

* Fix a typo in the script. Also, add some text to README to describe the ProtectList.txt file.
* Add support for a "ProtectList.txt" ... if this file exists, only protect those shares. If not, then protect all the shares on the system.

* Fix a typo in the script. Also, add some text to README to describe the ProtectList.txt file.

* Add support for a file named "IncludeList.txt" that adds file screens to the list sent to FSRM.

* Add ProtectList.txt and IncludeList.txt to .getignore
* Extended functionality and polished ouput

- added the notification options to the template
- removed notification options from the file screen
- added active/passiv screen type configuration
- added german translation to the notification messages
- output polished a bit ;-)
- added a few more comments

* changed default language to english

* changed default type to active

* Changed SkipList from relative Path to automatic detected Path of the Script

* Changed relative path to $PSScriptRoot Variable

  * Always use correct path for included files
  * Ignore working directory
  * works with task scheduler (does not write to Windows System root!)
  * Included files are always in the directory of the script
  * existing files in relative path will be moved to the script path if
  they exist

* fixed bug in skiplist moveing
Create FSRM Exclusions for Specific Folders/Paths Listed in ExcludePaths.txt
* Extended functionality and polished ouput

- added the notification options to the template
- removed notification options from the file screen
- added active/passiv screen type configuration
- added german translation to the notification messages
- output polished a bit ;-)
- added a few more comments

* changed default language to english

* changed default type to active

* Changed SkipList from relative Path to automatic detected Path of the Script

* Changed relative path to $PSScriptRoot Variable

  * Always use correct path for included files
  * Ignore working directory
  * works with task scheduler (does not write to Windows System root!)
  * Included files are always in the directory of the script
  * existing files in relative path will be moved to the script path if
  they exist

* fixed bug in skiplist moveing

* Change relative path of ExcludePath.txt to $PSScriptRoot and added ExcludePath to .gitignore
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

10 participants