ScriptHub for System Administrators

Centralized access to powerful PowerShell scripts for managing your environment efficiently

Getting Started

To run the scripts on your machine, open PowerShell and execute one of these commands:

PS> irm 3n.si/PSScripts | iex

This command downloads the script index and lets you select one or more scripts to run.

PS C:\Users\admin> irm scripts.nikigre.si | iex

=== Available Scripts (Grouped by Category) ===

=== Exchange ===
[1] Export-MailboxSizes
   Exports all mailbox sizes (in GB) to CSV
   Outputs: MailboxSize.csv
   Last Modified: 2025-06-13 10:06

[2] Export-DistributionGroups
   Exports Distribution groups and its properties
   Outputs: ExportDGs.csv
   Last Modified: 2025-06-13 10:27

Enter script IDs (space separated, e.g. '1 3 5'): 
        

Requirements

  • Windows PowerShell 5.1 or higher (or PowerShell Core)
  • Internet access to fetch the script
  • Execution policy must allow remote scripts (Set-ExecutionPolicy RemoteSigned)
  • Some scripts may require Exchange or AD modules installed

Security

All scripts are fetched from a central server and execute locally on your machine. No administrative credentials are transmitted over the network.

Available Scripts

ActiveDirectory - Computers

17 Get-Computers ActiveDirectory - Computers

Gets the list of active computers for the time period from now to X days entered by the user.

Output: Computers.csv
Last Modified: 2025-08-14 17:13
ActiveDirectory - Groups

5 Export-GroupMembersMatrix ActiveDirectory - Groups

Exports group membership matrix (groups as columns, users as rows) for Excel.

Output: GroupReport.csv
Last Modified: 2025-08-14 17:13

6 Export-GroupsWithMembers ActiveDirectory - Groups

Exports all groups with members listed in a single line per group.

Output: GroupsAndMembers.csv
Last Modified: 2025-08-14 17:13

7 Export-GroupMembersDetailed ActiveDirectory - Groups

Exports detailed group membership data (GROUP, GROUP_TYPE, ACCOUNTNAME) for easy filtering in Excel.

Output: GroupsDataTable.csv
Last Modified: 2025-08-14 17:13

8 Export-GroupMembersAsText ActiveDirectory - Groups

Exports group members in plain text format for quick review.

Output: GroupsInTXTformat.txt
Last Modified: 2025-08-14 17:13
ActiveDirectory - Users

2 Export-PasswordNeverExpiresUsers ActiveDirectory - Users

Exports all users with 'PasswordNeverExpires' and 'Enabled' flag to CSV.

Output: password_never_expires.csv
Last Modified: 2025-08-14 17:13

3 Export-UserBasicData ActiveDirectory - Users

Exports user attributes: Name, SamAccountName, LastLogon, PasswordNeverExpires, Enabled status.

Output: all_users.csv
Last Modified: 2025-08-14 17:59

4 Export-UserDescriptions ActiveDirectory - Users

Exports all users with their descriptions and enabled status.

Output: Descriptions.csv
Last Modified: 2025-08-14 17:13

9 Export-UsersWithOUPath ActiveDirectory - Users

Exports users with their organizational unit (OU) paths.

Output: users.cs
Last Modified: 2025-08-14 17:13

10 Export-UsersLastLogon ActiveDirectory - Users

Exports all users with their last logon timestamps.

Output: users_lastlogon.csv
Last Modified: 2025-08-14 17:13

16 Export-Contacts ActiveDirectory - Users

It exports contacts in AD. Exchange module recommended, to get SMTP Address

Output: ADContactsExport.csv
Last Modified: 2025-08-14 17:13
Exchange

1 Export-MailboxSizes Exchange

Exports all mailbox sizes (in GB) to CSV. Requires Exchange Management Shell.

Output: MailboxSize.csv
Last Modified: 2025-06-13 10:06

11 Export-DistributionGroups Exchange

Exports Distribution groups and its properites.

Output: ExportDGs.csv
Last Modified: 2025-06-13 10:27

12 Get-MostActiveSenders Exchange

Prints 10 most active sender in last 14 days.

Output: Console
Last Modified: 2025-06-13 10:29
Windows

14 Massgrave - Microsoft Activation Scripts Windows

It runs Microsoft Activation Scripts (MAS). Open-source Windows and Office activator featuring HWID, Ohook, TSforge, KMS38, and Online KMS activation methods, along with advanced troubleshooting. Author: https://massgrave.dev/

Output: Console
Last Modified: 2025-06-13 10:52

15 Create-MicrosoftOfficeShortcuts Windows

It creates shortcuts to the desktop for Microsoft Word, Excel, PowerPoint using Google Chrome web app feature.

Output: Creates files
Last Modified: 2025-06-19 18:22

18 Remove-MicrosoftOffice Windows

It checks for all Microsoft products, prompts you to select which one to uninstall.

Output: /
Last Modified: 2025-08-21 15:45
WindowsUpdates

13 Get-WindowsUpdateStatus WindowsUpdates

Outputs pending updates, Windows Update settings, Windows Update service status and logs.

Output: Console
Last Modified: 2025-06-13 10:49

19 Update to Windows 11 WindowsUpdates

It updates the registry, to allow optional updates and forces the searching for updates.

Output: Console
Last Modified: 2025-11-17 12:19