diff --git a/BR-SuperEdit-v2/README.md b/BR-SuperEdit-v2/README.md new file mode 100644 index 0000000..8f22682 --- /dev/null +++ b/BR-SuperEdit-v2/README.md @@ -0,0 +1,31 @@ +# SuperEdit v2 + +## VeeamHub + +Veeamhub projects are community driven projects, and are not created by Veeam R&D nor validated by Veeam Q&A. They are maintained by community members which might be or not be Veeam employees. + +## Distributed under MIT license + +Copyright (c) 2022 VeeamHub + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +## Project Notes + +**Author:** Timothy Dewin + +**Function:** Allows you to generate script to modify multiple jobs via a selection wizard + +**Requires:** +Backup & Replication v11, run directly on the backup server + +Just run, select and click generate to create a powershell script. Customizable since the GUI is built on top of WPF and the scripting engine is configured by an embedded JSON file. + +![SuperEdit v2 GUI and result](./supereditscreenshot.png) + + +Replaces SuperEdit (v1) which was a harder to maintain c# application which in the end still ran powershell. \ No newline at end of file diff --git a/BR-SuperEdit-v2/superedit-v2.ps1 b/BR-SuperEdit-v2/superedit-v2.ps1 new file mode 100644 index 0000000..0893cb0 --- /dev/null +++ b/BR-SuperEdit-v2/superedit-v2.ps1 @@ -0,0 +1,582 @@ +param( + $jsonsrc = "internal", + $cachejsonsrc = "" +) + +#tls errors otherwise +[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 + +write-host "Loading, if this is the first time you started superedit in this session, connection has to be made to VBR and this might take a while" +Add-Type -AssemblyName PresentationFramework +[xml]$xaml = @" + + + + + + + + + + +