Add files via upload

This commit is contained in:
Belim 2020-09-21 18:55:47 +02:00 committed by GitHub
parent 7f2497a4c6
commit 25224ab95c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 125 additions and 175 deletions

View file

@ -54,9 +54,8 @@
this.PnlPS = new System.Windows.Forms.Panel(); this.PnlPS = new System.Windows.Forms.Panel();
this.BtnMenuPS = new System.Windows.Forms.Button(); this.BtnMenuPS = new System.Windows.Forms.Button();
this.TxtPSInfo = new System.Windows.Forms.TextBox(); this.TxtPSInfo = new System.Windows.Forms.TextBox();
this.TxtOutputPS = new System.Windows.Forms.TextBox();
this.TxtConsolePS = new System.Windows.Forms.TextBox();
this.LblPSHeader = new System.Windows.Forms.Label(); this.LblPSHeader = new System.Windows.Forms.Label();
this.TxtConsolePS = new System.Windows.Forms.TextBox();
this.PSMenu = new System.Windows.Forms.ContextMenuStrip(this.components); this.PSMenu = new System.Windows.Forms.ContextMenuStrip(this.components);
this.PSImport = new System.Windows.Forms.ToolStripMenuItem(); this.PSImport = new System.Windows.Forms.ToolStripMenuItem();
this.PSSaveAs = new System.Windows.Forms.ToolStripMenuItem(); this.PSSaveAs = new System.Windows.Forms.ToolStripMenuItem();
@ -139,10 +138,10 @@
// PnlNav // PnlNav
// //
this.PnlNav.BackColor = System.Drawing.Color.WhiteSmoke; this.PnlNav.BackColor = System.Drawing.Color.WhiteSmoke;
this.PnlNav.Controls.Add(this.TvwSettings);
this.PnlNav.Controls.Add(this.LblPS); this.PnlNav.Controls.Add(this.LblPS);
this.PnlNav.Controls.Add(this.LblSettings); this.PnlNav.Controls.Add(this.LblSettings);
this.PnlNav.Controls.Add(this.LblMainMenu); this.PnlNav.Controls.Add(this.LblMainMenu);
this.PnlNav.Controls.Add(this.TvwSettings);
this.PnlNav.Controls.Add(this.LstPS); this.PnlNav.Controls.Add(this.LstPS);
resources.ApplyResources(this.PnlNav, "PnlNav"); resources.ApplyResources(this.PnlNav, "PnlNav");
this.PnlNav.Name = "PnlNav"; this.PnlNav.Name = "PnlNav";
@ -274,9 +273,8 @@
this.PnlPS.BackColor = System.Drawing.Color.White; this.PnlPS.BackColor = System.Drawing.Color.White;
this.PnlPS.Controls.Add(this.BtnMenuPS); this.PnlPS.Controls.Add(this.BtnMenuPS);
this.PnlPS.Controls.Add(this.TxtPSInfo); this.PnlPS.Controls.Add(this.TxtPSInfo);
this.PnlPS.Controls.Add(this.TxtOutputPS);
this.PnlPS.Controls.Add(this.TxtConsolePS);
this.PnlPS.Controls.Add(this.LblPSHeader); this.PnlPS.Controls.Add(this.LblPSHeader);
this.PnlPS.Controls.Add(this.TxtConsolePS);
this.PnlPS.Name = "PnlPS"; this.PnlPS.Name = "PnlPS";
// //
// BtnMenuPS // BtnMenuPS
@ -300,13 +298,11 @@
this.TxtPSInfo.Name = "TxtPSInfo"; this.TxtPSInfo.Name = "TxtPSInfo";
this.TxtPSInfo.ReadOnly = true; this.TxtPSInfo.ReadOnly = true;
// //
// TxtOutputPS // LblPSHeader
// //
resources.ApplyResources(this.TxtOutputPS, "TxtOutputPS"); resources.ApplyResources(this.LblPSHeader, "LblPSHeader");
this.TxtOutputPS.BackColor = System.Drawing.Color.White; this.LblPSHeader.BackColor = System.Drawing.Color.Gainsboro;
this.TxtOutputPS.BorderStyle = System.Windows.Forms.BorderStyle.None; this.LblPSHeader.Name = "LblPSHeader";
this.TxtOutputPS.ForeColor = System.Drawing.Color.Black;
this.TxtOutputPS.Name = "TxtOutputPS";
// //
// TxtConsolePS // TxtConsolePS
// //
@ -318,12 +314,6 @@
this.TxtConsolePS.ForeColor = System.Drawing.Color.Black; this.TxtConsolePS.ForeColor = System.Drawing.Color.Black;
this.TxtConsolePS.Name = "TxtConsolePS"; this.TxtConsolePS.Name = "TxtConsolePS";
// //
// LblPSHeader
//
resources.ApplyResources(this.LblPSHeader, "LblPSHeader");
this.LblPSHeader.BackColor = System.Drawing.Color.Gainsboro;
this.LblPSHeader.Name = "LblPSHeader";
//
// PSMenu // PSMenu
// //
this.PSMenu.BackColor = System.Drawing.Color.WhiteSmoke; this.PSMenu.BackColor = System.Drawing.Color.WhiteSmoke;
@ -364,11 +354,11 @@
// //
// PnlSettingsBottom // PnlSettingsBottom
// //
this.PnlSettingsBottom.Controls.Add(this.BtnSettingsAnalyze);
this.PnlSettingsBottom.Controls.Add(this.BtnSettingsUndo); this.PnlSettingsBottom.Controls.Add(this.BtnSettingsUndo);
this.PnlSettingsBottom.Controls.Add(this.BtnSettingsDo); this.PnlSettingsBottom.Controls.Add(this.BtnSettingsDo);
this.PnlSettingsBottom.Controls.Add(this.ChkCodePS);
this.PnlSettingsBottom.Controls.Add(this.BtnDoPS); this.PnlSettingsBottom.Controls.Add(this.BtnDoPS);
this.PnlSettingsBottom.Controls.Add(this.BtnSettingsAnalyze);
this.PnlSettingsBottom.Controls.Add(this.ChkCodePS);
resources.ApplyResources(this.PnlSettingsBottom, "PnlSettingsBottom"); resources.ApplyResources(this.PnlSettingsBottom, "PnlSettingsBottom");
this.PnlSettingsBottom.Name = "PnlSettingsBottom"; this.PnlSettingsBottom.Name = "PnlSettingsBottom";
// //
@ -400,8 +390,8 @@
this.BackColor = System.Drawing.Color.White; this.BackColor = System.Drawing.Color.White;
this.Controls.Add(this.PnlSettingsBottom); this.Controls.Add(this.PnlSettingsBottom);
this.Controls.Add(this.PnlNav); this.Controls.Add(this.PnlNav);
this.Controls.Add(this.PnlSettings);
this.Controls.Add(this.PnlPS); this.Controls.Add(this.PnlPS);
this.Controls.Add(this.PnlSettings);
this.Name = "MainWindow"; this.Name = "MainWindow";
this.ShowIcon = false; this.ShowIcon = false;
this.MainMenu.ResumeLayout(false); this.MainMenu.ResumeLayout(false);
@ -439,7 +429,6 @@
private System.Windows.Forms.Button BtnSettingsAnalyze; private System.Windows.Forms.Button BtnSettingsAnalyze;
private System.Windows.Forms.Panel PnlPS; private System.Windows.Forms.Panel PnlPS;
private System.Windows.Forms.TextBox TxtPSInfo; private System.Windows.Forms.TextBox TxtPSInfo;
private System.Windows.Forms.TextBox TxtOutputPS;
private System.Windows.Forms.TextBox TxtConsolePS; private System.Windows.Forms.TextBox TxtConsolePS;
private System.Windows.Forms.ContextMenuStrip PSMenu; private System.Windows.Forms.ContextMenuStrip PSMenu;
private System.Windows.Forms.ToolStripMenuItem PSImport; private System.Windows.Forms.ToolStripMenuItem PSImport;

View file

@ -1,19 +1,17 @@
using Privatezilla.ITreeNode; using Privatezilla.ITreeNode;
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Diagnostics; using System.Diagnostics;
using System.Drawing; using System.Drawing;
using System.Globalization; // Localization
using System.IO; using System.IO;
using System.Linq; using System.Linq;
using System.Management.Automation;
using System.Net; using System.Net;
using System.Runtime.CompilerServices; using System.Runtime.CompilerServices;
using System.Text; using System.Text;
using System.Threading; // Localization
using System.Threading.Tasks; using System.Threading.Tasks;
using System.Windows.Forms; using System.Windows.Forms;
using System.Globalization;
using System.Threading;
namespace Privatezilla namespace Privatezilla
{ {
@ -97,7 +95,7 @@ namespace Privatezilla
public MainWindow() public MainWindow()
{ {
// Uncomment lower line and add lang code to run localization test // Uncomment lower line and add lang code to run localization test
// Thread.CurrentThread.CurrentUICulture = new CultureInfo("es"); // Thread.CurrentThread.CurrentUICulture = new CultureInfo("es");
InitializeComponent(); InitializeComponent();
@ -586,7 +584,7 @@ namespace Privatezilla
/// <summary> /// <summary>
/// Run custom PowerShell scripts /// Run custom PowerShell scripts
/// </summary> /// </summary>
private void BtnDoPS_Click(object sender, EventArgs e) private async void BtnDoPS_Click(object sender, EventArgs e)
{ {
if (LstPS.CheckedItems.Count == 0) if (LstPS.CheckedItems.Count == 0)
{ {
@ -598,24 +596,42 @@ namespace Privatezilla
if (LstPS.GetItemChecked(i)) if (LstPS.GetItemChecked(i))
{ {
LstPS.SelectedIndex = i; LstPS.SelectedIndex = i;
string psdir = @"scripts\" + LstPS.SelectedItem.ToString() + ".ps1";
var ps1File = psdir;
var equals = new[] { "Silent" };
var str = TxtPSInfo.Text;
BtnDoPS.Text = Properties.Resources.statusDoPSProcessing; BtnDoPS.Text = Properties.Resources.statusDoPSProcessing;
PnlPS.Enabled = false; PnlPS.Enabled = false;
//TxtOutputPS.Clear(); // Silent
using (PowerShell powerShell = PowerShell.Create()) if (equals.Any(str.Contains))
{ {
powerShell.AddScript(TxtConsolePS.Text); var startInfo = new ProcessStartInfo()
powerShell.AddCommand("Out-String"); {
Collection<PSObject> PSOutput = powerShell.Invoke(); FileName = "powershell.exe",
StringBuilder stringBuilder = new StringBuilder(); Arguments = $"-executionpolicy bypass -file \"{ps1File}\"",
foreach (PSObject pSObject in PSOutput) UseShellExecute = false,
stringBuilder.AppendLine(pSObject.ToString()); CreateNoWindow = true,
};
TxtOutputPS.Text = stringBuilder.ToString(); await Task.Run(() => { Process.Start(startInfo).WaitForExit(); });
BtnDoPS.Text = Properties.Resources.statusDoPSApply;
PnlPS.Enabled = true;
} }
else // Create ConsoleWindow
{
var startInfo = new ProcessStartInfo()
{
FileName = "powershell.exe",
Arguments = $"-executionpolicy bypass -file \"{ps1File}\"",
UseShellExecute = false,
};
await Task.Run(() => { Process.Start(startInfo).WaitForExit(); });
}
BtnDoPS.Text = Properties.Resources.statusDoPSApply;
PnlPS.Enabled = true;
// Done! // Done!
MessageBox.Show("Script " + "\"" + LstPS.Text + "\" " + Properties.Resources.msgPSSuccess, this.Text, MessageBoxButtons.OK, MessageBoxIcon.Information); MessageBox.Show("Script " + "\"" + LstPS.Text + "\" " + Properties.Resources.msgPSSuccess, this.Text, MessageBoxButtons.OK, MessageBoxIcon.Information);
@ -632,12 +648,10 @@ namespace Privatezilla
{ {
ChkCodePS.Text = Properties.Resources.PSBack; ChkCodePS.Text = Properties.Resources.PSBack;
TxtConsolePS.Visible = true; TxtConsolePS.Visible = true;
TxtOutputPS.Visible = false;
} }
else else
{ {
ChkCodePS.Text = Properties.Resources.PSViewCode; ChkCodePS.Text = Properties.Resources.ChkCodePS;
TxtOutputPS.Visible = true;
TxtConsolePS.Visible = false; TxtConsolePS.Visible = false;
} }
} }
@ -677,7 +691,6 @@ namespace Privatezilla
/// <summary> /// <summary>
/// Save PowerShell script files as new preset script files /// Save PowerShell script files as new preset script files
/// </summary> /// </summary>
private void PSSaveAs_Click(object sender, EventArgs e) private void PSSaveAs_Click(object sender, EventArgs e)
{ {
if (ChkCodePS.Checked == false) if (ChkCodePS.Checked == false)
@ -711,7 +724,7 @@ namespace Privatezilla
private void PSMarketplace_Click(object sender, EventArgs e) private void PSMarketplace_Click(object sender, EventArgs e)
{ {
Process.Start("http://www.builtbybel.com/marketplace"); Process.Start("https://github.com/builtbybel/privatezilla/tree/master/scripts");
} }
private void CommunityPkg_Click(object sender, EventArgs e) private void CommunityPkg_Click(object sender, EventArgs e)

View file

@ -145,7 +145,7 @@
<value>PnlNav</value> <value>PnlNav</value>
</data> </data>
<data name="&gt;&gt;TvwSettings.ZOrder" xml:space="preserve"> <data name="&gt;&gt;TvwSettings.ZOrder" xml:space="preserve">
<value>0</value> <value>3</value>
</data> </data>
<data name="LblMainMenu.AutoSize" type="System.Boolean, mscorlib"> <data name="LblMainMenu.AutoSize" type="System.Boolean, mscorlib">
<value>True</value> <value>True</value>
@ -175,7 +175,7 @@
<value>PnlNav</value> <value>PnlNav</value>
</data> </data>
<data name="&gt;&gt;LblMainMenu.ZOrder" xml:space="preserve"> <data name="&gt;&gt;LblMainMenu.ZOrder" xml:space="preserve">
<value>3</value> <value>2</value>
</data> </data>
<metadata name="MainMenu.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> <metadata name="MainMenu.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value> <value>17, 17</value>
@ -273,7 +273,7 @@
<value>PnlNav</value> <value>PnlNav</value>
</data> </data>
<data name="&gt;&gt;LblPS.ZOrder" xml:space="preserve"> <data name="&gt;&gt;LblPS.ZOrder" xml:space="preserve">
<value>1</value> <value>0</value>
</data> </data>
<data name="LblSettings.AutoSize" type="System.Boolean, mscorlib"> <data name="LblSettings.AutoSize" type="System.Boolean, mscorlib">
<value>True</value> <value>True</value>
@ -306,7 +306,7 @@
<value>PnlNav</value> <value>PnlNav</value>
</data> </data>
<data name="&gt;&gt;LblSettings.ZOrder" xml:space="preserve"> <data name="&gt;&gt;LblSettings.ZOrder" xml:space="preserve">
<value>2</value> <value>1</value>
</data> </data>
<data name="LstPS.Anchor" type="System.Windows.Forms.AnchorStyles, System.Windows.Forms"> <data name="LstPS.Anchor" type="System.Windows.Forms.AnchorStyles, System.Windows.Forms">
<value>Top, Bottom, Left, Right</value> <value>Top, Bottom, Left, Right</value>
@ -525,7 +525,7 @@
<value>$this</value> <value>$this</value>
</data> </data>
<data name="&gt;&gt;PnlSettings.ZOrder" xml:space="preserve"> <data name="&gt;&gt;PnlSettings.ZOrder" xml:space="preserve">
<value>4</value> <value>5</value>
</data> </data>
<data name="BtnSettingsUndo.Anchor" type="System.Windows.Forms.AnchorStyles, System.Windows.Forms"> <data name="BtnSettingsUndo.Anchor" type="System.Windows.Forms.AnchorStyles, System.Windows.Forms">
<value>Bottom, Right</value> <value>Bottom, Right</value>
@ -558,7 +558,7 @@
<value>PnlSettingsBottom</value> <value>PnlSettingsBottom</value>
</data> </data>
<data name="&gt;&gt;BtnSettingsUndo.ZOrder" xml:space="preserve"> <data name="&gt;&gt;BtnSettingsUndo.ZOrder" xml:space="preserve">
<value>1</value> <value>0</value>
</data> </data>
<data name="BtnSettingsDo.Anchor" type="System.Windows.Forms.AnchorStyles, System.Windows.Forms"> <data name="BtnSettingsDo.Anchor" type="System.Windows.Forms.AnchorStyles, System.Windows.Forms">
<value>Bottom, Right</value> <value>Bottom, Right</value>
@ -591,7 +591,7 @@
<value>PnlSettingsBottom</value> <value>PnlSettingsBottom</value>
</data> </data>
<data name="&gt;&gt;BtnSettingsDo.ZOrder" xml:space="preserve"> <data name="&gt;&gt;BtnSettingsDo.ZOrder" xml:space="preserve">
<value>2</value> <value>1</value>
</data> </data>
<data name="BtnSettingsAnalyze.Anchor" type="System.Windows.Forms.AnchorStyles, System.Windows.Forms"> <data name="BtnSettingsAnalyze.Anchor" type="System.Windows.Forms.AnchorStyles, System.Windows.Forms">
<value>Bottom, Left</value> <value>Bottom, Left</value>
@ -624,7 +624,7 @@
<value>PnlSettingsBottom</value> <value>PnlSettingsBottom</value>
</data> </data>
<data name="&gt;&gt;BtnSettingsAnalyze.ZOrder" xml:space="preserve"> <data name="&gt;&gt;BtnSettingsAnalyze.ZOrder" xml:space="preserve">
<value>0</value> <value>3</value>
</data> </data>
<data name="PnlPS.Anchor" type="System.Windows.Forms.AnchorStyles, System.Windows.Forms"> <data name="PnlPS.Anchor" type="System.Windows.Forms.AnchorStyles, System.Windows.Forms">
<value>Top, Bottom, Left, Right</value> <value>Top, Bottom, Left, Right</value>
@ -681,13 +681,13 @@
<value>110</value> <value>110</value>
</data> </data>
<data name="TxtPSInfo.Text" xml:space="preserve"> <data name="TxtPSInfo.Text" xml:space="preserve">
<value>Welcome to the Modern Policy Editor, which allows you to apply group policies and custom settings in the form of PowerShell scripts and templates (bundled scripts). <value>Welcome to the Scripting Editor, which allows you to apply third-party script files and custom settings in form of PowerShell scripts and templates (bundled scripts).
Select a script to view it's description. Select a script to view it's description.
To check the code for vulnerabilities click on "View code". To check the code for vulnerabilities click on "View code".
To obtain new objects (templates, scripts etc.) visit the Marketplace in the upper right menu. Privatezilla uses the Marketplace of the app "SharpApp". Since this app is from the same developer and the scripting is based upon Powershell, they are also compatible with each other. To obtain new objects (templates, scripts etc.) visit the Marketplace in the upper right menu.
</value> </value>
</data> </data>
<data name="&gt;&gt;TxtPSInfo.Name" xml:space="preserve"> <data name="&gt;&gt;TxtPSInfo.Name" xml:space="preserve">
@ -702,43 +702,40 @@ To obtain new objects (templates, scripts etc.) visit the Marketplace in the upp
<data name="&gt;&gt;TxtPSInfo.ZOrder" xml:space="preserve"> <data name="&gt;&gt;TxtPSInfo.ZOrder" xml:space="preserve">
<value>1</value> <value>1</value>
</data> </data>
<data name="TxtOutputPS.Anchor" type="System.Windows.Forms.AnchorStyles, System.Windows.Forms"> <data name="LblPSHeader.Anchor" type="System.Windows.Forms.AnchorStyles, System.Windows.Forms">
<value>Top, Bottom, Left, Right</value> <value>Top, Left, Right</value>
</data> </data>
<data name="TxtOutputPS.Font" type="System.Drawing.Font, System.Drawing"> <data name="LblPSHeader.Font" type="System.Drawing.Font, System.Drawing">
<value>Consolas, 9pt</value> <value>Segoe UI Semibold, 12pt, style=Bold</value>
</data> </data>
<data name="TxtOutputPS.Location" type="System.Drawing.Point, System.Drawing"> <data name="LblPSHeader.Location" type="System.Drawing.Point, System.Drawing">
<value>242, 48</value> <value>0, 0</value>
</data> </data>
<data name="TxtOutputPS.Multiline" type="System.Boolean, mscorlib"> <data name="LblPSHeader.Padding" type="System.Windows.Forms.Padding, System.Windows.Forms">
<value>True</value> <value>5, 0, 0, 0</value>
</data> </data>
<data name="TxtOutputPS.ScrollBars" type="System.Windows.Forms.ScrollBars, System.Windows.Forms"> <data name="LblPSHeader.Size" type="System.Drawing.Size, System.Drawing">
<value>Both</value> <value>716, 45</value>
</data> </data>
<data name="TxtOutputPS.Size" type="System.Drawing.Size, System.Drawing"> <data name="LblPSHeader.TabIndex" type="System.Int32, mscorlib">
<value>474, 722</value> <value>116</value>
</data> </data>
<data name="TxtOutputPS.TabIndex" type="System.Int32, mscorlib"> <data name="LblPSHeader.Text" xml:space="preserve">
<value>10</value> <value>Apply PowerShell Script</value>
</data> </data>
<data name="TxtOutputPS.Text" xml:space="preserve"> <data name="LblPSHeader.TextAlign" type="System.Drawing.ContentAlignment, System.Drawing">
<value>PS</value> <value>MiddleLeft</value>
</data> </data>
<data name="TxtOutputPS.WordWrap" type="System.Boolean, mscorlib"> <data name="&gt;&gt;LblPSHeader.Name" xml:space="preserve">
<value>False</value> <value>LblPSHeader</value>
</data> </data>
<data name="&gt;&gt;TxtOutputPS.Name" xml:space="preserve"> <data name="&gt;&gt;LblPSHeader.Type" xml:space="preserve">
<value>TxtOutputPS</value> <value>System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data> </data>
<data name="&gt;&gt;TxtOutputPS.Type" xml:space="preserve"> <data name="&gt;&gt;LblPSHeader.Parent" xml:space="preserve">
<value>System.Windows.Forms.TextBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;TxtOutputPS.Parent" xml:space="preserve">
<value>PnlPS</value> <value>PnlPS</value>
</data> </data>
<data name="&gt;&gt;TxtOutputPS.ZOrder" xml:space="preserve"> <data name="&gt;&gt;LblPSHeader.ZOrder" xml:space="preserve">
<value>2</value> <value>2</value>
</data> </data>
<data name="TxtConsolePS.Anchor" type="System.Windows.Forms.AnchorStyles, System.Windows.Forms"> <data name="TxtConsolePS.Anchor" type="System.Windows.Forms.AnchorStyles, System.Windows.Forms">
@ -780,42 +777,6 @@ To obtain new objects (templates, scripts etc.) visit the Marketplace in the upp
<data name="&gt;&gt;TxtConsolePS.ZOrder" xml:space="preserve"> <data name="&gt;&gt;TxtConsolePS.ZOrder" xml:space="preserve">
<value>3</value> <value>3</value>
</data> </data>
<data name="LblPSHeader.Anchor" type="System.Windows.Forms.AnchorStyles, System.Windows.Forms">
<value>Top, Left, Right</value>
</data>
<data name="LblPSHeader.Font" type="System.Drawing.Font, System.Drawing">
<value>Segoe UI Semibold, 12pt, style=Bold</value>
</data>
<data name="LblPSHeader.Location" type="System.Drawing.Point, System.Drawing">
<value>0, 0</value>
</data>
<data name="LblPSHeader.Padding" type="System.Windows.Forms.Padding, System.Windows.Forms">
<value>5, 0, 0, 0</value>
</data>
<data name="LblPSHeader.Size" type="System.Drawing.Size, System.Drawing">
<value>716, 45</value>
</data>
<data name="LblPSHeader.TabIndex" type="System.Int32, mscorlib">
<value>116</value>
</data>
<data name="LblPSHeader.Text" xml:space="preserve">
<value>Apply PowerShell Script</value>
</data>
<data name="LblPSHeader.TextAlign" type="System.Drawing.ContentAlignment, System.Drawing">
<value>MiddleLeft</value>
</data>
<data name="&gt;&gt;LblPSHeader.Name" xml:space="preserve">
<value>LblPSHeader</value>
</data>
<data name="&gt;&gt;LblPSHeader.Type" xml:space="preserve">
<value>System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;LblPSHeader.Parent" xml:space="preserve">
<value>PnlPS</value>
</data>
<data name="&gt;&gt;LblPSHeader.ZOrder" xml:space="preserve">
<value>4</value>
</data>
<data name="PnlPS.Location" type="System.Drawing.Point, System.Drawing"> <data name="PnlPS.Location" type="System.Drawing.Point, System.Drawing">
<value>366, 0</value> <value>366, 0</value>
</data> </data>
@ -838,7 +799,7 @@ To obtain new objects (templates, scripts etc.) visit the Marketplace in the upp
<value>$this</value> <value>$this</value>
</data> </data>
<data name="&gt;&gt;PnlPS.ZOrder" xml:space="preserve"> <data name="&gt;&gt;PnlPS.ZOrder" xml:space="preserve">
<value>5</value> <value>4</value>
</data> </data>
<metadata name="PSMenu.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> <metadata name="PSMenu.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>132, 19</value> <value>132, 19</value>
@ -899,6 +860,42 @@ To obtain new objects (templates, scripts etc.) visit the Marketplace in the upp
<data name="&gt;&gt;PSMenu.Type" xml:space="preserve"> <data name="&gt;&gt;PSMenu.Type" xml:space="preserve">
<value>System.Windows.Forms.ContextMenuStrip, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> <value>System.Windows.Forms.ContextMenuStrip, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data> </data>
<data name="BtnDoPS.Anchor" type="System.Windows.Forms.AnchorStyles, System.Windows.Forms">
<value>Bottom, Right</value>
</data>
<data name="BtnDoPS.FlatStyle" type="System.Windows.Forms.FlatStyle, System.Windows.Forms">
<value>Flat</value>
</data>
<data name="BtnDoPS.Font" type="System.Drawing.Font, System.Drawing">
<value>Segoe UI, 9.75pt</value>
</data>
<data name="BtnDoPS.Location" type="System.Drawing.Point, System.Drawing">
<value>508, 14</value>
</data>
<data name="BtnDoPS.Size" type="System.Drawing.Size, System.Drawing">
<value>196, 32</value>
</data>
<data name="BtnDoPS.TabIndex" type="System.Int32, mscorlib">
<value>114</value>
</data>
<data name="BtnDoPS.Text" xml:space="preserve">
<value>Apply selected</value>
</data>
<data name="BtnDoPS.Visible" type="System.Boolean, mscorlib">
<value>False</value>
</data>
<data name="&gt;&gt;BtnDoPS.Name" xml:space="preserve">
<value>BtnDoPS</value>
</data>
<data name="&gt;&gt;BtnDoPS.Type" xml:space="preserve">
<value>System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;BtnDoPS.Parent" xml:space="preserve">
<value>PnlSettingsBottom</value>
</data>
<data name="&gt;&gt;BtnDoPS.ZOrder" xml:space="preserve">
<value>2</value>
</data>
<data name="ChkCodePS.Anchor" type="System.Windows.Forms.AnchorStyles, System.Windows.Forms"> <data name="ChkCodePS.Anchor" type="System.Windows.Forms.AnchorStyles, System.Windows.Forms">
<value>Bottom, Left</value> <value>Bottom, Left</value>
</data> </data>
@ -942,42 +939,6 @@ To obtain new objects (templates, scripts etc.) visit the Marketplace in the upp
<value>PnlSettingsBottom</value> <value>PnlSettingsBottom</value>
</data> </data>
<data name="&gt;&gt;ChkCodePS.ZOrder" xml:space="preserve"> <data name="&gt;&gt;ChkCodePS.ZOrder" xml:space="preserve">
<value>3</value>
</data>
<data name="BtnDoPS.Anchor" type="System.Windows.Forms.AnchorStyles, System.Windows.Forms">
<value>Bottom, Right</value>
</data>
<data name="BtnDoPS.FlatStyle" type="System.Windows.Forms.FlatStyle, System.Windows.Forms">
<value>Flat</value>
</data>
<data name="BtnDoPS.Font" type="System.Drawing.Font, System.Drawing">
<value>Segoe UI, 9.75pt</value>
</data>
<data name="BtnDoPS.Location" type="System.Drawing.Point, System.Drawing">
<value>508, 14</value>
</data>
<data name="BtnDoPS.Size" type="System.Drawing.Size, System.Drawing">
<value>196, 32</value>
</data>
<data name="BtnDoPS.TabIndex" type="System.Int32, mscorlib">
<value>114</value>
</data>
<data name="BtnDoPS.Text" xml:space="preserve">
<value>Apply selected</value>
</data>
<data name="BtnDoPS.Visible" type="System.Boolean, mscorlib">
<value>False</value>
</data>
<data name="&gt;&gt;BtnDoPS.Name" xml:space="preserve">
<value>BtnDoPS</value>
</data>
<data name="&gt;&gt;BtnDoPS.Type" xml:space="preserve">
<value>System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;BtnDoPS.Parent" xml:space="preserve">
<value>PnlSettingsBottom</value>
</data>
<data name="&gt;&gt;BtnDoPS.ZOrder" xml:space="preserve">
<value>4</value> <value>4</value>
</data> </data>
<data name="PnlSettingsBottom.Dock" type="System.Windows.Forms.DockStyle, System.Windows.Forms"> <data name="PnlSettingsBottom.Dock" type="System.Windows.Forms.DockStyle, System.Windows.Forms">

View file

@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
// Sie können alle Werte angeben oder Standardwerte für die Build- und Revisionsnummern verwenden, // Sie können alle Werte angeben oder Standardwerte für die Build- und Revisionsnummern verwenden,
// indem Sie "*" wie unten gezeigt eingeben: // indem Sie "*" wie unten gezeigt eingeben:
// [assembly: AssemblyVersion("1.0.*")] // [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("0.40.2")] [assembly: AssemblyVersion("0.41.0")]
[assembly: AssemblyFileVersion("0.40.2")] [assembly: AssemblyFileVersion("0.41.0")]

View file

@ -106,7 +106,7 @@ namespace Privatezilla.Properties {
} }
/// <summary> /// <summary>
/// Sucht eine lokalisierte Zeichenfolge, die View Code ähnelt. /// Sucht eine lokalisierte Zeichenfolge, die View code ähnelt.
/// </summary> /// </summary>
internal static string ChkCodePS { internal static string ChkCodePS {
get { get {
@ -283,7 +283,7 @@ namespace Privatezilla.Properties {
} }
/// <summary> /// <summary>
/// Sucht eine lokalisierte Zeichenfolge, die What does this template/script do?\r\n ähnelt. /// Sucht eine lokalisierte Zeichenfolge, die What does this script do?\r\n ähnelt.
/// </summary> /// </summary>
internal static string PSInfo { internal static string PSInfo {
get { get {
@ -309,15 +309,6 @@ namespace Privatezilla.Properties {
} }
} }
/// <summary>
/// Sucht eine lokalisierte Zeichenfolge, die View code ähnelt.
/// </summary>
internal static string PSViewCode {
get {
return ResourceManager.GetString("PSViewCode", resourceCulture);
}
}
/// <summary> /// <summary>
/// Sucht eine lokalisierte Zeichenfolge, die You are using an unoffical version of Privatezilla. ähnelt. /// Sucht eine lokalisierte Zeichenfolge, die You are using an unoffical version of Privatezilla. ähnelt.
/// </summary> /// </summary>
@ -1480,13 +1471,13 @@ namespace Privatezilla.Properties {
} }
/// <summary> /// <summary>
/// Sucht eine lokalisierte Zeichenfolge, die Welcome to the Modern Policy Editor, which allows you to apply group policies and custom settings in the form of PowerShell scripts and templates (bundled scripts). /// Sucht eine lokalisierte Zeichenfolge, die Welcome to the Scripting Editor, which allows you to apply third-party script files and custom settings in form of PowerShell scripts and templates (bundled scripts).
/// ///
///Select a script to view it&apos;s description. ///Select a script to view it&apos;s description.
/// ///
///To check the code for vulnerabilities click on &quot;View code&quot;. ///To check the code for vulnerabilities click on &quot;View code&quot;.
/// ///
///To obtain new objects (templates, scripts etc.) visit the Marketplace in the upper right menu. Privatezilla uses the Marketplace of the app &quot;SharpApp&quot;. Since this app is from the same developer and the scripting is based upon Powershell [Rest der Zeichenfolge wurde abgeschnitten]&quot;; ähnelt. ///To obtain new objects (templates, scripts etc.) visit the Marketplace in the upper right menu. ähnelt.
/// </summary> /// </summary>
internal static string TxtPSInfo { internal static string TxtPSInfo {
get { get {

View file

@ -138,7 +138,7 @@
<comment>Main menu</comment> <comment>Main menu</comment>
</data> </data>
<data name="ChkCodePS" xml:space="preserve"> <data name="ChkCodePS" xml:space="preserve">
<value>View Code</value> <value>View code</value>
<comment>GUI</comment> <comment>GUI</comment>
</data> </data>
<data name="columnSetting" xml:space="preserve"> <data name="columnSetting" xml:space="preserve">
@ -226,7 +226,7 @@ Add translation credits here!</comment>
<comment>Scripting menu</comment> <comment>Scripting menu</comment>
</data> </data>
<data name="PSInfo" xml:space="preserve"> <data name="PSInfo" xml:space="preserve">
<value>What does this template/script do?\r\n</value> <value>What does this script do?\r\n</value>
<comment>Scripting menu</comment> <comment>Scripting menu</comment>
</data> </data>
<data name="PSMarketplace" xml:space="preserve"> <data name="PSMarketplace" xml:space="preserve">
@ -237,10 +237,6 @@ Add translation credits here!</comment>
<value>Save current script as new preset script</value> <value>Save current script as new preset script</value>
<comment>Scripting menu</comment> <comment>Scripting menu</comment>
</data> </data>
<data name="PSViewCode" xml:space="preserve">
<value>View code</value>
<comment>GUI</comment>
</data>
<data name="releaseUnofficial" xml:space="preserve"> <data name="releaseUnofficial" xml:space="preserve">
<value>You are using an unoffical version of Privatezilla.</value> <value>You are using an unoffical version of Privatezilla.</value>
</data> </data>
@ -731,13 +727,13 @@ Add translation credits here!</comment>
<value>Do you really want to revert all selected settings to Windows 10 default state?</value> <value>Do you really want to revert all selected settings to Windows 10 default state?</value>
</data> </data>
<data name="TxtPSInfo" xml:space="preserve"> <data name="TxtPSInfo" xml:space="preserve">
<value>Welcome to the Modern Policy Editor, which allows you to apply group policies and custom settings in the form of PowerShell scripts and templates (bundled scripts). <value>Welcome to the Scripting Editor, which allows you to apply third-party script files and custom settings in form of PowerShell scripts and templates (bundled scripts).
Select a script to view it's description. Select a script to view it's description.
To check the code for vulnerabilities click on "View code". To check the code for vulnerabilities click on "View code".
To obtain new objects (templates, scripts etc.) visit the Marketplace in the upper right menu. Privatezilla uses the Marketplace of the app "SharpApp". Since this app is from the same developer and the scripting is based upon Powershell, they are also compatible with each other.</value> To obtain new objects (templates, scripts etc.) visit the Marketplace in the upper right menu.</value>
<comment>GUI </comment> <comment>GUI </comment>
</data> </data>
</root> </root>