Script Library

Boost your management, troubleshoot, and remediation capabilities with scripts created by experts in the IT community.

<< Back to Script Library

Tag: security

(16 Scripts)
Checks for services and scheduled tasks that are configured to run using domain accounts. For such accounts, the script reports the password expiry date.
Use cases:
1) detecting expiry of accounts used for services, so that the account password may be renewed
2) detecting the use of domain accounts, as opposed to managed service accounts
Version: 1.1.12  |   Created: 2024-01-22  |   Modified: 2024-02-25  |   Creator: Bill Powell  |   Downloads: 2
This script is intended to be used to sync the Solve users, based on the membership of the specified AD Security group.
Version: 2.3.7  |   Created: 2023-09-06  |   Modified: 2023-10-26  |   Creator: Bill Powell  |   Downloads: 36
Sets a new password for an AD User and requires the user to change the password at next logon.
Version: 3.0.8  |   Created: 2023-06-05  |   Modified: 2023-06-23  |   Creator: Rein Leen/Bill Powell  |   Downloads: 10
Show all Active Directory Accounts which have not been logged into for specified days or more.
System account and accounts without any login activity are ignored by this script.
Reporting on inactive accounts will return the command to disable those accounts.
Disabling accounts will return the command to re-enable those accounts to counter mistakes.
Version: 1.1.6  |   Created: 2023-04-14  |   Modified: 2023-06-23  |   Creator: Rein Leen  |   Downloads: 18
Gets the Active Directory expiration date of specified users or all users within specified search bases.
Version: 2.1.12  |   Created: 2023-04-06  |   Modified: 2023-06-22  |   Creator: Rein Leen  |   Downloads: 34
Query all services, both system and per-user, get the binary responsible for the service, which will be a dll when the service executable is svchost,exe and check its digital signature.
By default, only services whose binary is not validly signed will be shown but parameters are available to show any signing state and to show all services or just non-Microsoft ones
Version: 1.0.6  |   Created: 2023-02-23  |   Modified: 2023-02-23  |   Creator: Guy Leech  |   Downloads: 8
Enables Firewall Auditing Events and then tails the event log remotely. The tailing of events for this script is closer to realtime then the text log.
Version: 1.7.9  |   Created: 2020-09-22  |   Modified: 2020-09-28  |   Creator: Trentent Tye  |   Downloads: 44
This script will scan the Security log for evidence of recent changes to the local Administrators group and report whether the required audit policy is configured on the machine.
Version: 1.7.8  |   Created: 2020-06-10  |   Modified: 2020-06-10  |   Creator: Marcel Calef  |   Downloads: 49
This script will check if the user is part of BUILTINAdministrators, directly named This script will check if the user is a member of BUILTINAdministrators, directly named
or inherited from other local or domain groups
Version: 1.5.5  |   Created: 2020-06-10  |   Modified: 2020-06-10  |   Creator: Marcel Calef  |   Downloads: 83
Uses the Horizon REST api's to pull all admin related events from the Horizon Event database for all pods. If there is no cloud pod setup it will only process the local pod. After pulling the events it will translate the id's for the various objects to names to show the proper names where needed.

Output is displayed in the console but also saved to a default location of c:windowstempCU_Horizon_audit_log.csv
Version: 4.8.21  |   Created: 2020-04-28  |   Modified: 2023-10-25  |   Creator: Wouter Kursten  |   Downloads: 103
This script retreives the administrative users and groups in a Horizon View environment.
You can this script to make sure administrators have the right permissions in Horizon View?
This action should be executed against a Horizon endpoint machine (one which has the HZ Primary Connection Server column populated in ControlUp Console). The script uses the target machine to determine the connection server address, and is executed on the machine running ControlUp Console.
Version: 3.5.9  |   Created: 2020-01-11  |   Modified: 2020-02-04  |   Creator: Ton de Vreede  |   Downloads: 53
Creates a report of the packets dropped by Windows firewall during the specified interval.
Version: 1.4.16  |   Created: 2018-11-22  |   Modified: 2019-02-17  |   Creator: Ton de Vreede  |   Downloads: 165
Add or remove domain or local accounts to/from local groups on selected computers. Can either be done immediately or at a given date/time in the future via a scheduled task, e.g. remove specific users from the local admininstrators group in 1 day's time.
Arguments:
Users - a comma separated list of AD user accounts to add/remove to/from the specified group
Local group - the name of the local group which will have the users added or removed
Remove from group - if true then the specified users will be removed from the group, if false then the users will be added to the group (default is false)
When - If nothing is specified, the action is taken immediately otherwise a scheduled task is created to perform the action at the data/time specified which can also be a number followed by a time unit, e.g. 8h for 8 hours or 1d for 1 day. If specifying a date/time, it must be enclosed in double quotes.
Version: 1.4.12  |   Created: 2018-10-22  |   Modified: 2018-11-26  |   Creator: Guy Leech  |   Downloads: 69
This SBA confirms whether protection against these vulnerabilities have been enabled on the target computer.
For more infomation: https://support.microsoft.com/en-us/help/4072698/
Version: 2.2.6  |   Created: 2018-01-04  |   Modified: 2018-01-11  |   Creator: Rotem Agmon  |   Downloads: 116
Adds the required registry keys to enable the mitigations on the target computer.
Requires the relevant Microsoft patch installed on the target computer.
For more inforrmation: https://support.microsoft.com/en-us/help/4072698
Version: 2.2.15  |   Created: 2018-01-04  |   Modified: 2018-01-11  |   Creator: Rotem Agmon  |   Downloads: 72
This script gets the user SID for the current username. If the same name exists in both the local computer and the domain, both SIDs will be returned.
Version: 2.1.2  |   Created: 2017-01-26  |   Modified: 2021-01-11  |   Creator: Sebastien Le Gonidec  |   Downloads: 955