Many routine tasks from daily IT operations can be automated, delegated and greatly simplified using PowerShell scripts and ScriptRunner. To avoid each administrator writing their own scripts for standard use cases, we provide ready-to-use script collection, so called ActionPacks.
The new Windows System Management ActionPack contains a total of 140 scripts for managing system settings for Windows 10 clients and Windows servers. The majority of the scripts can be used for both systems. Special scripts for Windows 10 Clients as well as for Windows Server can be found in separate subfolders.
General for both systems:
Query (query scripts)
Windows 10 Clients:
Windows 10 Apps
Windows Server Backup
How to integrate ActionPack scripts into ScriptRunner
There are two ways to integrate ActionPacks into ScriptRunner:
You download the script collection from the ScriptRunner GitHub repository as a ZIP file and copy the scripts you want to use into the working directory of ScriptRunner.
You connect ScriptRunner to our GitHub repository and set up a synchronization. This can be done directly in the working directory of ScriptRunner or in a separate directory.
Use cases for the new ActionPack
After the scripts from the ActionPacks have been synchronized, they can be used to create Actions. Two examples will show how fast the scripts are ready for use.
The Backup-SysMBitLockerKeyProtector script stores the recovery password protection for a volume protected by BitLocker Drive Encryption in Active Directory Domain Services (AD DS). To be able to select the parameters dynamically via the dropdown menu, corresponding query scripts can be used for the drive selection and the Key Protector Object. The computer selection can be done via an AD query.
In the full case, the user selects the computer and drive, the Protector Object is determined with the query script, and the recovery password protection is stored in the AD when the script is executed.
That’s how it works:
Create a new action (+New) and select the “Backup-SysMBitLockerKeyProtector” script. Then select your target system and the corresponding credentials. The own machine can be used as a target, since the script can access other computers remotely.
Executing the Action
If the action is started via the admin app, the variables drive, ProtectorID and target system can now be selected.
Use case: Activating/deactivating firewall rules by the service desk
If you regularly receive support requests regarding problems with the local Windows firewall, you can allow the service desk direct access to the firewall settings via the ScriptRunner Delegate App. An integrated query script can also be used to provide the service desk with a set of firewall rules to be changed via a drop-down menu.
That’s how it works:
In this case, the query must first be created using query script, and after the action has been created, it must be released to the service desk by delegation.
Create the query script:
Under +New >Querie >With a Script select the query script “QUY_Get-SysMFirewallRules.ps1” from the ActionPack and confirm the settings as shown in screenshot 3.
Create the action:
Now create a new action with the script “Set-SysMFirewallRuleStatus”. Activate the newly created query script for the RuleName parameter via the binocular symbol. If the settings are selected as shown in the following screenshot, the rule can be selected from the drop-down menu when the action is executed and whether it should be activated or deactivated.
Release for the Service Desk:
Use the +New field to create a new delegation and select the action you just created. In the “Delegate this Action to…” window, select the Service Desk account.
After the entries have been confirmed, the Service Desk can execute the action with the selected parameters via the Delegate App.
https://support.scriptrunner.com/wp-content/uploads/2019/05/Secure1zu1-t.jpg10001000Daniel Finkenzellerhttps://support.scriptrunner.com/wp-content/uploads/2018/02/ScriptRunner_logo.pngDaniel Finkenzeller2019-08-08 15:44:422020-04-08 16:16:35Manage PowerShell credentials with Pleasant password server
https://support.scriptrunner.com/wp-content/uploads/2019/04/Network_1zu1.jpg387387Frank Kresse, Head of Productshttps://support.scriptrunner.com/wp-content/uploads/2018/02/ScriptRunner_logo.pngFrank Kresse, Head of Products2019-04-04 19:34:152019-10-09 13:36:15ScriptRunner version 2019R1 - what's new?
https://support.scriptrunner.com/wp-content/uploads/2019/02/Neue-Version-2018R3-gold-2.png319400Frank Kresse, Head of Productshttps://support.scriptrunner.com/wp-content/uploads/2018/02/ScriptRunner_logo.pngFrank Kresse, Head of Products2018-10-26 16:20:472019-10-09 13:36:45Feature overview of the new version 2018R3