Scripts
Read the code, check the requirements and understand what a PowerShell script does before using it in a client environment.
- Check whether the script reads data or makes changes.
- Sign in free to read the full code before you download it.
- Each listed script has been scanned and reviewed by a person.
Windows and Endpoints
119| Script | Language | Effect | Reviews | Open |
|---|---|---|---|---|
| Proxmox node, quorum, guests and storage unhealthyRuns on a Proxmox VE node and checks quorum, every node online, every start-on-boot VM and container running, and storage use. Read-only, no extra packages. | Bash | Read-only | No reviews | |
| VPN client readyChecks the one VPN client you name: Windows VPN profiles and whether their server resolves, or that the vendor client's service is running. Read-only. | PowerShell | Read-only | No reviews | |
| Is SQL Server healthyOne health check for every local SQL Server instance: engine and Agent running, databases online, logs not full, no failed Agent jobs, recent FULL backups. | PowerShell | Read-only | No reviews | |
| SQL Server backups too oldReads msdb on running local SQL Server instances and flags old or missing full backups, plus overdue log backups where required. | PowerShell | Read-only | No reviews | |
| Is the RDS session host healthyHealth check for a Remote Desktop Session Host: service and connections, sessions disconnected too long, licensing mode, licence server and grace days, and broker reachability. | PowerShell | Read-only | No reviews | |
| VPN won't connect - VPN first aidStarts a stopped client service, or restarts a running one with Force, then flushes and re-registers DNS. With Force off, an already healthy client is left alone. | PowerShell | Changes things | No reviews | |
| Windows LAPS not configured or not backing upReads the active LAPS policy and the Windows LAPS event log on this PC, and alerts on no policy, backup turned off, no recent backup or a failed policy run. | PowerShell | Read-only | No reviews | |
| Reclaim Microsoft 365 licences from disabled usersRemoves directly assigned licenses from disabled users, saves a before-state first, never touches group licenses. Needs DryRun=false and Approve=remove-unused-m365-licenses. | PowerShell | Changes things | No reviews | |
| Employee left - Microsoft 365 offboardingRuns the leaver steps for one user, each logged and each switchable, and saves the groups, licenses and mailbox settings first. It deletes nothing, and a dry run lists every step. | PowerShell | Changes things | No reviews | |
| Paying for unused Microsoft 365 licencesReports licenses held by disabled or inactive users and spare seats in enabled user plans. It changes nothing. | PowerShell | Read-only | No reviews | |
| New client tenant - Microsoft 365 onboarding auditOne read-only pass over a new tenant that writes a row per finding with a severity: High, Medium, Low or Info. A check the app cannot run shows as Not checked, not as a failure. | PowerShell | Read-only | No reviews | |
| PC facts for the quarterly reviewBefore a quarterly business review (QBR), run elevated PowerShell on one Windows PC. If “Restart pending” reads “Yes (Windows Update)”, schedule a restart and recheck the PC before the meeting. | PowerShell | Read-only | No reviews | |
| Lost or returned laptop - remote wipe or retire in IntuneQueues Wipe (factory reset by default) or Retire (remove company data and apps) for one Intune device by name or ID. Dry run until you approve it. | PowerShell | Changes things | No reviews | |
| NTLMv1 and LM hashes still allowedAlerts when the LAN Manager authentication level is below what you want, LM hashes are stored, or recent sign-ins used NTLMv1 or LM. Lists who and from where. Read-only. | PowerShell | Read-only | No reviews | |
| Someone changed a GPO - alert on any GPO changeCompares all GPOs with the last run's snapshot and alerts on any added, removed or modified GPO, with the changing account when the audit log has it. Changes nothing in the domain. | PowerShell | Read-only | No reviews | |
| Domain controller backup too oldAlerts when any directory partition on this domain controller was last backed up more than MaxAgeDays days ago, has no backup recorded or cannot be read. Read-only. | PowerShell | Read-only | No reviews | |
| Back up all GPOs with HTML reportsBacks up all GPOs with an HTML report each into a dated folder, skips unchanged days, and prunes its own old backups to the number you keep. Never changes a GPO. Schedule it daily. | PowerShell | Changes things | No reviews | |
| Windows DNS server - forwarders, aging and scavengingReports this DNS server's forwarders (and whether each answers a test query), server scavenging, and aging for every primary zone. Read-only, one row per setting. | PowerShell | Read-only | No reviews | |
| Report a problem - diagnostics and description in a zipSaves a problem report from the signed-in user's PC: their description, Windows version, addresses, uptime, disk space and recent application errors, zipped. | PowerShell | Changes things | No reviews | |
| RMM agent stopped, disabled or missing - start it againStarts stopped or disabled RMM agent services again, and installs the agent when it is missing and you supply an HTTPS installer with its SHA-256. | PowerShell | Changes things | No reviews | |
| Ransomware triage: collect the evidence before a rebootCollects processes, services, tasks, autoruns, ransom notes, connections, event logs, users and shadow copy state into one ZIP on the PC. Run it before a reboot. | PowerShell | Read-only | No reviews | |
| Cyber-insurance questionnaire - device evidence packOne evidence table for the device questions an insurer asks: patching, BitLocker, antivirus, EDR, firewall, admins, RDP, SMB1, Secure Boot and more. Pass, Fail or Unknown for each. | PowerShell | Read-only | No reviews | |
| Isolate a PC from the network but keep the RMMIsolates a suspect PC with Windows Firewall rules, restricting traffic and allowing outbound access to the hosts and programs you list, with a connection test and an optional auto-undo timer. | PowerShell | Changes things | No reviews | |
| Windows Update stuck or failing - reset the update stackResets a stuck Windows Update stack: renames SoftwareDistribution and catroot2, cancels BITS jobs, restarts the services and requests a scan when supported. Renames, never deletes the new copy. | PowerShell | Changes things | No reviews | |
| Is Active Directory healthy - services, replication, FSMO, dcdiagChecks directory services, SYSVOL and NETLOGON, the five FSMO role holders, replication partners and dcdiag, and alerts on any failure. | PowerShell | Read-only | No reviews | |
| Employee left - disable in AD, strip groups, move, log offDisables one AD user, resets their password, removes direct group memberships except Domain Users and stamps the description. Dry run by default. | PowerShell | Changes things | No reviews | |
| Install Windows updatesInstalls security and critical Windows updates through the Windows Update Agent, one row each, with excluded KBs and an optional restart when nobody is signed in. | PowerShell | Changes things | No reviews | |
| USB storage not blocked - check the block policyChecks whether USB mass storage is blocked by the drivers, the removable-storage policy or the device-installation policy, and lists disks recorded in USBSTOR. | PowerShell | Read-only | No reviews | |
| Block USB storage with an allow-listBlocks USB storage with Windows policy, with optional serial exceptions for supported drives. It changes nothing until DryRun=false and Approve=disable-usb-storage. | PowerShell | Changes things | No reviews | |
| Is this PC exposing RDP, SMB or other risky ports through the firewallLists the TCP ports this PC listens on beyond itself, asks the Windows firewall who can reach each, and alerts when a risky port is open to any address, including when the firewall is off. | PowerShell | Read-only | No reviews | |
| Update apps with wingetLists applications with an upgrade available through winget and upgrades each on its own, skipping excluded ids, a built-in never-upgrade list and detected running apps unless Force is true. | PowerShell | Changes things | No reviews | |
| Windows 10 PC needs Windows 11 - check eligibility and start the in-place upgradeChecks the OS, UEFI, TPM 2.0, processor, RAM, disk, free space and pending restart, then starts the upgrade. High risk: needs DryRun=false and Approve=update-windows-10-to-11. | PowerShell | Changes things | No reviews | |
| Windows not activated - activation status and editionReads Windows activation, edition and license channel. It flags no active license and can alert on Home editions. It shows the last five key characters when available. | PowerShell | Read-only | No reviews | |
| Clock out of syncChecks the Windows Time service, the configured time source and the clock offset against a reference server, and alerts when the offset is over MaxOffsetSeconds or the service is stopped. | PowerShell | Read-only | No reviews | |
| SMBv1 still enabled - find where and who uses itChecks the SMB server setting, the SMB1 optional features and the SMB1 client driver, and lists the clients seen using SMB1 in the audit log for AuditDays days. | PowerShell | Read-only | No reviews | |
| Secure Boot 2023 certificate updateChecks Secure Boot, searches the firmware db for the Windows UEFI CA 2023 certificate, and alerts when Secure Boot is on and the certificate name is missing or the firmware database cannot be read. | PowerShell | Read-only | No reviews | |
| Remote Desktop open to the internet or without NLAChecks Remote Desktop settings, NLA and inbound TCP rules for the RDP port. It flags broad sources, an off firewall profile or missing NLA when RDP is on. | PowerShell | Read-only | No reviews | |
| Public SSL certificate about to expire (TLS check of your sites)Connects to each host and port, reads the TLS certificate and alerts when it expires within WarningDays, has expired, or fails the name or chain check. | PowerShell | Read-only | No reviews | |
| OneDrive not syncing - health and Known Folder Move monitorProbes OneDrive in the signed-in user's session and alerts when an account is signed in but OneDrive is not running, or required folders are not redirected into OneDrive. | PowerShell | Read-only | No reviews | |
| Risky local accounts on this PCReads every local account and alerts on the enabled built-in Administrator or Guest, passwords that are old or not required and suspect names, with one row per finding. | PowerShell | Read-only | No reviews | |
| Is a specific Windows update installedAlerts when a listed KB is missing from the PC, or when the Windows build is below the minimum you set, using three sources to find an installed KB. | PowerShell | Read-only | No reviews | |
| End-of-life software installedCompares installed programs with a built-in list of products whose vendor stopped issuing security fixes, and checks Windows itself, with a row and an action for each finding. | PowerShell | Read-only | No reviews | |
| Client domain about to expire (RDAP expiry check)Reads each domain's expiration date from its registry's RDAP server and alerts when it falls within WarningDays, has passed, or the domain is not found at the registry. | PowerShell | Read-only | No reviews | |
| Drive about to fail - SMART health and SSD wearReads each physical disk's health and operational status, wear, temperature, uncorrected read errors, power-on hours and SMART flag, and alerts on a failing or worn disk. | PowerShell | Read-only | No reviews | |
| PC is slow - sustained CPU and memory pressure with top processesSamples CPU and available memory for SampleSeconds and alerts when the average CPU is over CpuPercent or available memory dips under MemoryPercent, with the top processes named. | PowerShell | Read-only | No reviews | |
| Certificate about to expire on this PCReads the certificates in the LocalMachine stores you name and alerts on any that expired or expire within Days days, skipping superseded certificates and, by default, self-signed ones. | PowerShell | Read-only | No reviews | |
| Laptop battery worn out - capacity and cycle countCompares each battery's full-charge capacity with its design capacity as a health percent, shows the cycle count, and alerts when health drops below MinHealthPercent. | PowerShell | Read-only | No reviews | |
| Did last night's backup succeed?Reads the evidence backup products leave on the PC and alerts when a newest run failed, the last success is older than MaxAgeHours, or a service that should run is stopped. | PowerShell | Read-only | No reviews | |
| Is a vulnerable app version installedAlerts when an installed application, or a program file you name, is older than the minimum version you set, with versions compared number by number. | PowerShell | Read-only | No reviews | |
| Drives missing - map network drivesMaps the drive letters you list to network shares in the signed-in user's own session, persistently by default, and checks each drive opens. No password is taken or stored. | PowerShell | Changes things | No reviews | |
| Local admin password - rotate it and store it in a fieldRotates the password of the built-in Administrator or a named local account to a random 20-character value, written only to a secure RMM field and never printed or logged. | PowerShell | Changes things | No reviews | |
| Defender attack surface reduction rules - audit then blockSets a fixed set of 14 Defender attack surface reduction rules to Audit or Block, never lowering a rule already stricter, and reports each rule before and after. | PowerShell | Changes things | No reviews | |
| Restart a PC - now, at a set time or if pendingSchedules a Windows restart with a countdown and a message: now, at a set time, or only when a restart is pending. Needs DryRun=false and Approve=restart-computer. | PowerShell | Changes things | No reviews | |
| OneDrive not syncing - reset itRuns OneDrive.exe /reset in the signed-in user's session, starts OneDrive again if needed and checks it is running. No files are deleted, but it re-syncs everything. | PowerShell | Changes things | No reviews | |
| Outlook won't open or keeps asking for a password - rebuild the profileCreates a new, empty classic Outlook profile for the signed-in user and sets it as default, with the registry backed up first. The old profile and mail data are never touched. | PowerShell | Changes things | No reviews | |
| Defender turned off or broken - switch it back onRepairs Microsoft Defender when it is the PC's antivirus and is off or broken: clears local disabling policy, starts services, turns protection on and updates signatures. | PowerShell | Changes things | No reviews | |
| Too many local admins - remove the unapproved onesRemoves local administrators who are not in AllowedMembers, keeping built-in, system and LAPS accounts, and saves the member list first. Needs DryRun=false and Approve. | PowerShell | Changes things | No reviews | |
| Tell the user something - show a notificationShows a Windows toast to the signed-in user with a title, a message and an optional Open button. If toasts are off it falls back to msg.exe in their session. | PowerShell | Changes things | No reviews | |
| Retire a PC - leave domain and Entra ID, remove MDM, write the recordLeaves Entra ID and the domain, removes MDM enrollment and writes a retirement record, doing only the parts that apply. Never wipes. Needs DryRun=false and Approve=invoke-pc-retirement. | PowerShell | Changes things | No reviews | |
| Install Microsoft 365 Apps (Office) with a generated configurationDownloads the Office Deployment Tool from Microsoft, checks its signature, writes a configuration from your inputs, installs Microsoft 365 Apps and verifies it is installed. | PowerShell | Changes things | No reviews | |
| Install an application from a URL, verifiedDownloads an installer over HTTPS, verifies it by SHA-256 or a trusted publisher signature, installs it silently and checks the installed entry if DetectName is set. | PowerShell | Changes things | No reviews | |
| PC is slow - slow-PC first aid diagnosticChecks CPU, memory, disks, startup programs, pending restart, power plan, last blue screen and antivirus in about 15 seconds, and names the three worst concerns. | PowerShell | Read-only | No reviews | |
| Outlook slow or crashing - first-aid reportReports the Office build and channel, Outlook profiles, OST and PST sizes and locations, add-ins and Outlook's own disabled list, and recent crashes and hangs. | PowerShell | Read-only | No reviews | |
| What is on this network - list the devices on the local subnetLists the other devices on the PC's local subnet from its neighbor table, with an optional ping sweep, reverse DNS names and MAC address prefixes. | PowerShell | Read-only | No reviews | |
| Local user accounts on this PCLists every local account with enabled state, last logon, password age and settings, and administrator membership, with a Flags column for what needs a look. | PowerShell | Read-only | No reviews | |
| Who can open this folder - NTFS and share permissionsOne row per permission entry on the folder and its subfolders to a depth you set, with share permissions and a flag for the entries that are almost always a mistake. | PowerShell | Read-only | No reviews | |
| Is this PC ready for Microsoft 365 Copilot?Reads Windows version, Microsoft 365 Apps and update channel, and Entra join state, then answers Ready or Not ready for Microsoft 365 Copilot with the blockers named. | PowerShell | Read-only | No reviews | |
| Which browser extensions are installed?Lists every installed browser extension for every local user across Chrome, Edge, Brave and Firefox, with its ID, name and version. NameMatch narrows the list. | PowerShell | Read-only | No reviews | |
| Which AI tools do staff use? - shadow AI appsLists the AI tools found on the PC, with where each was found, its version and the user, from programs, Store apps, per-user installs, VS Code extensions and browser extensions. | PowerShell | Read-only | No reviews | |
| Windows Firewall is off - turn it on and block inboundTurns on any Windows Firewall profile that is off and sets default inbound to Block, leaving Group Policy managed profiles alone. Backs up the policy first and never edits a rule. | PowerShell | Changes things | No reviews | |
| Turn on BitLocker and store the recovery keyEncrypts the Windows drive with BitLocker and a TPM protector, storing the recovery key in Entra ID, Active Directory or a configured secure RMM field before encrypting. | PowerShell | Changes things | No reviews | |
| SMBv1 still enabled - turn it off (can break old devices)Turns off SMBv1 on the server and disables the Windows optional feature, normally checking the audit log for clients still using it. A High-risk Action that needs approval. | PowerShell | Changes things | No reviews | |
| End network isolation and restore the firewallUndoes enable-network-isolation: deletes its firewall rule group, restores the saved firewall settings, removes the auto-undo task and tests the connection when a target is available. | PowerShell | Changes things | No reviews | |
| Remove a Mac app and everything it left behindRemoves a Mac app and leftover files by exact name or bundle ID. It refuses Apple apps and apps with protected agent bundle IDs. A dry run until approved. | Bash | Changes things | No reviews | |
| Remote Login or Screen Sharing is onReads whether Remote Login, Screen Sharing and Remote Management are running on a Mac and alerts for each one that is on while you have not allowed it. Read-only. | Bash | Read-only | No reviews | |
| Unapproved administrators on this MacLists the members of a Mac's admin group and alerts on names outside a configured allow list or a count over your limit. Root and system accounts are never flagged. | Bash | Read-only | No reviews | |
| Mac firewall is offAsks the macOS application firewall whether it is on and whether stealth mode is on, and alerts when the firewall is off or, by default, stealth mode is off or unreadable. Read-only. | Bash | Read-only | No reviews | |
| Linux disk, memory or CPU over limitChecks free disk space on supported local volumes, available memory and the 5-minute load average against your limits, and alerts when any is past its limit. | Bash | Read-only | No reviews | |
| Who has root? Unexpected sudo or UID 0 accountsChecks for root access through sudoers, the sudo, wheel and admin groups, or UID 0, and alerts on any you have not approved. It never alerts on limited sudo rules. | Bash | Read-only | No reviews | |
| FileVault is off or has no recovery keyChecks that FileVault disk encryption is on and that the Mac has a recovery key. It alerts when FileVault is off, is being turned off, or is on with no key. It never prints a key. | Bash | Read-only | No reviews | |
| Mac local admin password - create or rotate a hidden adminCreates a hidden admin account on a Mac, or rotates its password, and writes the new random password to a NinjaOne secure custom field. High risk: a dry run until you approve it. | Bash | Changes things | No reviews | |
| Mac network trouble - flush DNS, renew DHCPFlushes the DNS cache and restarts mDNSResponder, and optionally renews the DHCP lease or switches to the Automatic network location. It tests a name before and after. | Bash | Changes things | No reviews | |
| Remove an old SSH key from every accountDeletes matching lines from Linux authorized-key files, after backing up each file. A comment can match more than one public key. Dry run until approved. | Bash | Changes things | No reviews | |
| Unapproved administrators on this Mac - demote themTakes unapproved accounts out of a Mac's admin group so they become standard users. High risk, so it is a dry run until you approve it, and it never leaves the Mac without an administrator. | Bash | Changes things | No reviews | |
| Tell the user something on a Mac - dialog or notificationShows a dialog or submits a banner notification for the user signed in at the Mac. A dialog reports the button pressed or that nobody answered. | Bash | Changes things | No reviews | |
| Install macOS updates now (all or recommended)Installs selected macOS updates by label. Restarts are opt-in, and FORCE_RESTART can override the signed-in user check. | Bash | Changes things | No reviews | |
| Install or update a Mac app from a link, verified by hash or developerDownloads a .dmg, .pkg or .zip from your https link, refuses it unless its SHA256 or signing Team ID checks out, then installs the app or runs the package. | Bash | Changes things | No reviews | |
| Patch this Linux server nowInstalls apt or dnf updates, security only by default, and reports reboot status. A required reboot can be scheduled if allowed and no console user is detected. | Bash | Changes things | No reviews | |
| Who can SSH in? List authorized keysReads local authorized-key files and shows each key's account, type, size, SHA256 fingerprint, comment and options. Flags keys outside your allow list. | Bash | Read-only | No reviews | |
| Mac health and security summaryReads a Mac's OS version, SIP, Gatekeeper, FileVault, firewall, XProtect, MDM enrollment, uptime, disk space and battery into one table and one line for a custom field. | Bash | Read-only | No reviews | |
| What is this Linux box? Health summaryOne table of facts about a Linux server: OS, load, memory, disk, failed services, waiting updates, firewall and SSH settings. It changes nothing and never alerts. | Bash | Read-only | No reviews | |
| Turn on the Mac firewall and stealth modeTurns on the macOS application firewall and, by default, stealth mode. It saves the settings file if present before changing either setting. | Bash | Changes things | No reviews | |
| Turn off Remote Login and Screen Sharing on a MacTurns off SSH, Screen Sharing and Remote Management (Apple Remote Desktop) on a Mac and checks each is off. High risk, so it is a dry run until you approve it. | Bash | Changes things | No reviews | |
| Teams won't load on a Mac - clear the Teams cacheEmpties the Teams cache folders for eligible Mac users, or one user, without touching settings, sign-in data or chats. Skips anyone whose Teams is running unless you let it quit Teams. | Bash | Changes things | No reviews | |
| Linux disk full: clear logs, journal and cachesVacuums the journal, clears the package cache, autoremoves unused packages and old kernels, and deletes old rotated logs. The rotated-file pass uses filename and age, and leaves home folders alone. | Bash | Changes things | No reviews | |
| Disk Full First Aid: Silent CleanupClears temp files, the Windows Update download cache, crash dumps and error reports on the system drive, and says how much it freed. User documents and the Recycle Bin stay. | PowerShell | Changes things | No reviews | |
| Uninstall an application silently by nameFinds installed applications by name, runs each one's silent uninstaller and checks the entry is gone. Refuses short names and, by default, multiple matches. Dry run until approved. | PowerShell | Changes things | No reviews | |
| Can this PC run Windows 11?Checks a Windows 10 PC against the Windows 11 hardware requirements: OS build, UEFI and Secure Boot, TPM 2.0, CPU, RAM and disk. Alerts on any that fail. | PowerShell | Read-only | No reviews | |
| PC crashed or blue-screened - unexpected shutdown monitorAlerts on unexpected restarts, unexpected shutdowns and blue screens in the System log over the days you set, with the bugcheck code when the event has one. | PowerShell | Read-only | No reviews | |
| Unapproved remote-access tool installedAlerts when any of 25 remote-access tools that you have not allowed is installed, running, or present as a portable copy in a user folder. | PowerShell | Read-only | No reviews | |
| Service stopped - monitorAlerts when any service you name is not running. Wildcards work, manual services do not alert by default, and the run skips when no named service is found. | PowerShell | Read-only | No reviews | |
| PC never rebooted - uptime and pending-reboot monitorAlerts when uptime is over MaxUptimeDays or a restart is pending, and says why: servicing, Windows Update, a rename or Configuration Manager. | PowerShell | Read-only | No reviews | |
| How many days since this PC was patchedAlerts when the newest successful quality or security update is older than MaxDays. Drivers and definitions do not count. Shows the last five history entries. | PowerShell | Read-only | No reviews | |
| Unapproved local administratorsAlerts when the local Administrators group has a member you have not approved. Finds orphaned SIDs too, and works on Windows in any language. | PowerShell | Read-only | No reviews | |
| Windows Firewall off or wide open - profile and port monitorAlerts when a firewall profile is off or allows inbound by default, or when Remote Desktop, SMB, WinRM, SSH or Telnet is open to any address. Group Policy counts. | PowerShell | Read-only | No reviews | |
| Something is logging errors - event ID and text match monitorReads one event log for a time window and alerts when events matching your IDs, sources, message text and severity pass a count. Lists the newest matches. | PowerShell | Read-only | No reviews | |
| Disk space below thresholdAlerts when any fixed drive's free space falls below your percentage. One row per drive, with removable and excluded drives left out. | PowerShell | Read-only | No reviews | |
| Is Microsoft Defender actually protecting this PC - end-to-end healthChecks Defender end to end: antivirus on, real-time and tamper protection, signature age and last scan. Names the active antivirus when Defender is passive. | PowerShell | Read-only | No reviews | |
| BitLocker off or recovery key not escrowedCheck a Windows laptop before handoff with elevated PowerShell and BitLocker tools. An example alert, “C: has no recovery password”, means the drive needs a recovery protector. Open a ticket for it. | PowerShell | Read-only | No reviews | |
| Service stopped or hung - restart itRestarts a named Windows service with its running dependents, ends a hung service process when it will not stop, and checks it is running again. | PowerShell | Changes things | No reviews | |
| Internet works but nothing loads - reset the network stackResets Winsock and the TCP/IP stack, flushes DNS and by default renews DHCP leases. Refuses machines with static IPs unless allowed. Dry run until approved; a restart finishes it. | PowerShell | Changes things | No reviews | |
| Windows corrupted or SFC fails - DISM then SFC repairRuns DISM and SFC in the right order: checks the component store and system files, repairs damage in Auto mode, then checks again. Scan mode only reports. | PowerShell | Changes things | No reviews | |
| Shared PC full of ex-staff profiles - remove stale profilesDeletes Windows user profiles unused for MinAgeDays days, folder and registry entry, the way Windows does. Keeps direct local admins by default and anyone you exclude. Dry run until approved. | PowerShell | Changes things | No reviews | |
| Which remote-access tools are installedFinds 25 remote-access tools in services, installed programs, program folders, running processes and user folders, and marks the ones you allow. Read-only. | PowerShell | Read-only | No reviews | |
| Installed software inventory and app finderLists installed software from the registry, machine-wide and per user, or finds one app by name. Never uses Win32_Product, so it never triggers an MSI repair. | PowerShell | Read-only | No reviews | |
| Hardware and OS inventoryReports the facts an asset record needs: make, model, serial, BIOS, CPU, RAM, disks, Windows version, domain or Entra join, and TPM version. Read-only. | PowerShell | Read-only | No reviews | |
| Teams won't load - clear the Teams cacheClears the new and classic Teams cache folders in every user profile, or only the users you name. Users with Teams open are skipped unless CloseTeams is on. | PowerShell | Changes things | No reviews | |
| Print queue stuck - clear the spoolerClears a stuck print queue: stops the Print Spooler, deletes queued job files older than you choose, starts the spooler again and checks it is running. | PowerShell | Changes things | No reviews | |
| Website not resolving - flush the DNS cacheFlushes the Windows DNS client cache, reports the before and after counts when available, and can re-register the PC's own DNS records. | PowerShell | Changes things | No reviews |
Microsoft 365
62| Script | Language | Effect | Reviews | Open |
|---|---|---|---|---|
| Users can consent to any appReads the tenant's authorization policy and alerts when every user may consent to any app, or to apps Microsoft flags as risky. Limited or off is OK. | PowerShell | Read-only | No reviews | |
| New inbox rules that hide mailReads user and shared mailbox inbox rules and alerts on suspicious rules within the first-seen window. It saves a local snapshot and changes nothing in the tenant. | PowerShell | Read-only | No reviews | |
| Stale or duplicate devices in IntuneLists every Intune device that has not synced for StaleDays days or that is an older record of a serial number seen again, and alerts when it lists any. Read-only. | PowerShell | Read-only | No reviews | |
| Shared mailboxes that can sign inLists shared and, by default, room and equipment mailboxes with an enabled Entra account. ExcludeMailboxes keeps approved accounts out of the alert. | PowerShell | Read-only | No reviews | |
| Apps with risky Microsoft 365 permissionsLists delegated consents and application permissions that contain a high-risk permission, skipping Microsoft's apps and your AllowedApps. Any grant alerts. | PowerShell | Read-only | No reviews | |
| New MFA method registeredReads the Entra audit log for new MFA registrations in the last LookbackHours and alerts on each one, with who it was for, who did it and the IP address when the log supplies it. | PowerShell | Read-only | No reviews | |
| Someone was just made an adminReads the Entra audit log for role assignments, including PIM-eligible ones, in the last LookbackHours, and alerts on each. IgnoreActors skips expected changes. | PowerShell | Read-only | No reviews | |
| Microsoft 365 app access check (permissions and certificate expiry)Signs in once, lists the granted app permissions, checks the certificate's expiry and alerts on a missing permission. Optionally proves Exchange Online connects. Read-only. | PowerShell | Read-only | No reviews | |
| Mail forwarding to outside addressesChecks mailbox forwarding and enabled inbox rules on user and shared mailboxes, or one mailbox you name. It reports outside targets and unresolved mailbox forwarding recipients. Read-only. | PowerShell | Read-only | No reviews | |
| Entra Connect stopped syncingReads the tenant's last directory sync time from Microsoft Graph and alerts when it is older than MaxAgeHours or when sync has been turned off. No access to the sync server is needed. | PowerShell | Read-only | No reviews | |
| Entra Connect server healthChecks the ADSync service, the scheduler, the newest run of every connector, the server mode and the installed version, and alerts on the first sign of trouble. | PowerShell | Read-only | No reviews | |
| DKIM signing not on for a domainChecks authoritative custom domains for a DKIM signing config, whether it is enabled, and whether both selector records resolve to the right target. One row per checked domain. | PowerShell | Read-only | No reviews | |
| Is anything forcing MFA in Microsoft 365Reads Security Defaults and every Conditional Access policy. OK when Security Defaults is on or an enabled policy requires MFA, otherwise an alert. | PowerShell | Read-only | No reviews | |
| Break-glass accounts present, excluded, unusedChecks each named break-glass account exists, is enabled, is excluded from every enabled Conditional Access policy and has not signed in lately. Any failed check alerts. | PowerShell | Read-only | No reviews | |
| App secret or certificate expiring in Microsoft 365Reads every app registration and enterprise app in one client tenant and alerts on any secret or certificate that has expired or expires within WarnDays. It changes nothing. | PowerShell | Read-only | No reviews | |
| Give or remove mailbox accessGrants or removes one kind of access for one user or group on one mailbox, and says Already when nothing needs to change. Never touches other permissions or folder permissions. | PowerShell | Changes things | No reviews | |
| Block automatic external forwarding for the tenantSets the default outbound spam policy to block automatic external forwarding, with optional exempt senders. Needs DryRun=false and Approve=set-external-forwarding-block. Saves a before-state first. | PowerShell | Changes things | No reviews | |
| Deploy the Conditional Access baselineCreates up to three Conditional Access policies, report-only by default, excluding named break-glass accounts. Needs DryRun=false and Approve=set-conditional-access-baseline. | PowerShell | Changes things | No reviews | |
| User lost their phone - reset MFA methodsDeletes four kinds of MFA method. If none that satisfy MFA remain, the user must register again at an MFA sign-in. The dry run lists the methods first. | PowerShell | Changes things | No reviews | |
| Remove risky app consentsDeletes the high-risk consents that test-risky-app-consents finds, saving them first. Needs DryRun=false and Approve=remove-risky-app-consents. Allowed apps are never touched. | PowerShell | Changes things | No reviews | |
| Mail forwarding to outside addresses - turn it offClears external mailbox forwarding and disables (or removes) inbox rules that forward outside, after saving a before-state file. Needs DryRun=false and Approve=remove-external-mail-forwarding. | PowerShell | Changes things | No reviews | |
| Create Microsoft 365 users from a CSV fileChecks the CSV, then creates a batch of missing users with any requested license and groups. Passwords go to a secure RMM field. Dry run by default. | PowerShell | Changes things | No reviews | |
| Intune remediation - create the detection and remediation pairStage two approved scripts for a client’s Intune change. In Windows PowerShell 5.1, a dry-run row can show “Would change”. Check the package name against the change ticket before creating it. | PowerShell | Changes things | No reviews | |
| New starter same as Jane - copy group membershipsCopies the template user's direct group memberships to the new user, skipping groups that cannot or should not be changed from here, and lists every skip with the reason. | PowerShell | Changes things | No reviews | |
| Change not showing in Microsoft 365 - force an Entra Connect syncStarts one Delta or Initial sync cycle on the Entra Connect server and can wait for connector results. It changes no sync rules or settings. | PowerShell | Changes things | No reviews | |
| Compromised M365 account - contain it in orderBlocks the account, revokes its sessions, then optionally resets the password, removes MFA methods and disables forwarding rules. The order is the point. It never deletes or unblocks. | PowerShell | Changes things | No reviews | |
| Sign-in history of one userReads the Entra sign-in log for one user over the last LookbackDays and gives each sign-in with app, IP address, country and result, plus the countries seen. | PowerShell | Read-only | No reviews | |
| Identity posture of every client tenantReads each tenant in a list and reports users, admins, MFA registration, a legacy sign-in policy reading and guests. One unreadable tenant does not stop the run. | PowerShell | Read-only | No reviews | |
| Where did this email go - message traceLists recent mail from Microsoft 365 by sender, recipient and subject, newest first, one row per recipient with its delivery status. Up to ten days back, read-only. | PowerShell | Read-only | No reviews | |
| Mailbox nearly full - size and quota reportOne row per mailbox with size, quota, percent used, item count, Recoverable Items and archive size, fullest first. MinPercentUsed lists only the nearly full ones. | PowerShell | Read-only | No reviews | |
| Who can access which mailboxOne row per grant of Full Access, Send As or Send on Behalf held by someone other than the owner. Groups show as groups, and unresolved leftovers show as a SID. | PowerShell | Read-only | No reviews | |
| Who still uses legacy authenticationReads the Entra sign-in log by user, legacy client and app, with counts of successes and failures, last seen and the most frequent IP address. | PowerShell | Read-only | No reviews | |
| Which computers have a managed local admin passwordBuilds one list of Windows computers from Active Directory and optionally Entra ID, and marks each Managed, Overdue or Not managed. Read-only; no password is ever requested. | PowerShell | Read-only | No reviews | |
| Who holds admin roles in Microsoft 365One row per directory role assignment: role, member, active or eligible, scope and end date. It counts Global Administrators and warns outside 2 to 4. | PowerShell | Read-only | No reviews | |
| Email protection below standardOne row per checked setting with its value, the recommended value and Meets, Below or Info. A snapshot against the Standard recommendation. It never applies a preset or changes a policy. | PowerShell | Read-only | No reviews | |
| Conditional Access drifted from our baselineWithout a baseline file it saves the current policies as one. With one it lists each policy that is Missing, Extra, StateChanged or Changed. The tenant is only read. | PowerShell | Read-only | No reviews | |
| Turn on the archive and auto-expanding archiveEnables missing online archives and, by default, enables auto-expansion wherever it is off. It skips mailboxes that already have the requested features and never deletes an archive. | PowerShell | Changes things | No reviews | |
| Tag external email in OutlookTurns on external sender identification so Outlook shows an External label on outside mail, and adds any AllowSenders you list. Only adds, never removes, and saves the before-state. | PowerShell | Changes things | No reviews | |
| DKIM signing not on - create the config and turn it onCreates a switched-off DKIM config for each domain that lacks one, prints the two CNAMEs, and switches signing on only once both records resolve. Run it again after the DNS change. | PowerShell | Changes things | No reviews | |
| Audit logging off - turn on unified and mailbox auditingTurns on the unified audit log and mailbox auditing when they are off, lists accounts that bypass auditing, and saves the before-state. Never turns auditing off or changes retention. | PowerShell | Changes things | No reviews | |
| Shared mailboxes that can sign in - block themSets the account of each shared, room or equipment mailbox that can sign in to blocked. Mail and delegate access keep working. Needs DryRun=false and Approve=disable-shared-mailbox-sign-in. | PowerShell | Changes things | No reviews | |
| Stale and duplicate Intune devices - delete the old recordsDeletes Intune records with no sync in StaleDays and older duplicates of the same serial number, after a before-state file. Dry run by default; real runs need DryRun=false and Approve. | PowerShell | Changes things | No reviews | |
| Remove stale guest accountsDisables or deletes guests with old pending invitations or no recent sign-in, after saving a before-state file. Dry run by default. Disable is the default mode. | PowerShell | Changes things | No reviews | |
| Stale guest accountsLists guests with a pending invitation older than StaleDays or, when activity is available, no recent sign-in. It shows days idle and changes nothing. | PowerShell | Read-only | No reviews | |
| Directory sync errors and duplicate UPN or proxy addressReads sync and available service provisioning errors for users, groups and contacts. It looks up the other object in UPN and proxy address conflicts. | PowerShell | Read-only | No reviews | |
| Users without MFA or with SMS-only MFAReads the authentication methods registration report for one client tenant and alerts on members with no strong MFA method, or with phone methods only. Read-only. | PowerShell | Read-only | No reviews | |
| Package an app for Intune - build the .intunewin fileBuilds the .intunewin file with Microsoft's IntuneWinAppUtil.exe. By default the tool must have a valid Microsoft signature. Nothing is uploaded to Intune. | PowerShell | Changes things | No reviews | |
| Back up the whole Intune configuration to JSONReads six kinds of Intune policy from one client tenant and writes each one to its own JSON file in a new dated folder, with an index. Nothing in the tenant changes. | PowerShell | Changes things | No reviews | |
| AD accounts with weak password settingsAlerts on AD users with weak password settings: never expires, blank password allowed, reversible encryption, DES only or DES enabled. Service accounts are listed but do not alert on never expires. | PowerShell | Read-only | No reviews | |
| AD security group - create it, add or remove membersAdds and removes direct members of one AD security group, and can create the group. Names are checked before any change, the old membership is saved, and privileged groups are refused. | PowerShell | Changes things | No reviews | |
| Reset an AD user's password - random, forced change at logonSets a random 20-character password on one AD user and writes it only to a secure RMM field. By default it requires a change at next sign-in and unlocks the account if locked. | PowerShell | Changes things | No reviews | |
| New employee - create the AD user like a template userCreates AD users individually or from CSV, copying OU, job attributes and eligible direct groups. Single-user mode writes the first password to a secure RMM field. | PowerShell | Changes things | No reviews | |
| Passwords expiring soon - which AD users to warnLists enabled AD users whose password expires within a window you choose, with e-mail, days left and the policy that applies. Read-only; feed the list to whatever sends your reminders. | PowerShell | Read-only | No reviews | |
| Who is in this AD group - list its membersLists the members of one AD group, one row each, with type, enabled state and whether they are direct members. Turn on Recursive to include nested groups. Read-only. | PowerShell | Read-only | No reviews | |
| User locked out - unlock the accountUnlocks the named users only if they are locked out now, then reads each account again to check. An account that is not locked out is left alone. | PowerShell | Changes things | No reviews | |
| User keeps getting locked out - find the sourceFind the source of an Active Directory account lockout with Event ID 4740, then use failed sign-ins to confirm which device or job needs attention. | PowerShell | Read-only | No reviews | |
| Privileged AD groups - nested membership and change alertsReads the nested membership of ten groups that can take over a domain and alerts on any change since the last run, or on any member not in AllowedMembers. | PowerShell | Read-only | No reviews | |
| Disable stale AD users and computers and move them to a holding OUDisables and moves the accounts get-stale-ad-objects lists, saving their original location first. Nothing is deleted. High risk: needs DryRun=false and Approve=disable-stale-ad-objects. | PowerShell | Changes things | No reviews | |
| Stale AD users and computers - who has not signed in for 90 daysLists enabled users and computers with no sign-in for InactiveDays (90 by default), or never signed in since creation, leaving out built-in, domain controller and excluded accounts. | PowerShell | Read-only | No reviews | |
| Export all Active Directory users with key attributesOne row per user: sign-in name, display name, UPN, enabled, last logon, password last set, never-expires flag, OU and direct group count. | PowerShell | Read-only | No reviews | |
| SSO and Teams sign-in broken - Entra join and PRT healthRuns dsregcmd /status and checks the join state, device certificate dates and, in a user's context, the Primary Refresh Token, alerting on a broken join. | PowerShell | Read-only | No reviews | |
| Is this domain protected from email spoofing - SPF, DKIM and DMARC checkReads MX, SPF, DMARC, DKIM, MTA-STS and TLS-RPT for up to 20 domains and gives each record a Pass, Warn, Fail or Info verdict, with the reason. | PowerShell | Read-only | No reviews |
RMM and Automation
15| Script | Language | Effect | Reviews | Open |
|---|---|---|---|---|
| Send an email through Microsoft Graph from a scriptSends a single email from a named mailbox to the addresses you give, plain text or HTML, with one optional attachment under 3 MB. DryRun=true sends nothing. | PowerShell | Changes things | No reviews | |
| Autopilot hash not registered - upload this PC's hardware hashRun on the PC itself: it reads the hardware hash and serial number, skips a PC the tenant already holds, uploads the rest and waits for the import result. | PowerShell | Changes things | No reviews | |
| Join this PC to the AD domain, into the right OUJoins this PC to an AD domain into the OU you name, with the join account's password read only from a secure RMM field. Dry run by default; real runs need DryRun=false and Approve. | PowerShell | Changes things | No reviews | |
| Remove the previous provider's RMM agentRemoves one named RMM agent: its silent uninstaller, leftover services, scheduled tasks and program folders. Needs DryRun=false and Approve=uninstall-rmm-agent. | PowerShell | Changes things | No reviews | |
| Remove remote-access tools that are not approvedUninstalls about 25 known remote-access tools not on your allow-list, deleting leftover services, folders and portable copies. Needs DryRun=false and Approve=remove-remote-access-tools. | PowerShell | Changes things | No reviews | |
| New Windows PC needs the standard settings - apply the MSP baselineChecks six settings one by one and fixes only the ones that differ. Nothing is restarted, no user is signed out and no software is installed or removed. | PowerShell | Changes things | No reviews | |
| Rename the computer - fixed name or PREFIX-SERIAL patternRenames a PC to a fixed name or a PREFIX-SERIAL pattern built from the BIOS serial number. The name takes effect at the next restart, which the script does not trigger. | PowerShell | Changes things | No reviews | |
| New PC full of junk apps - Windows 11 debloat (safe MSP profile)Removes a fixed list of consumer apps for all users and from the Windows image, with a protected list it never touches. Needs DryRun=false and Approve=remove-windows-bloatware. | PowerShell | Changes things | No reviews | |
| Remove ScreenConnect instances that are not yoursFinds every ScreenConnect client instance on the PC, keeps the ids in AllowedInstanceIds and removes the rest. Needs DryRun=false and Approve=remove-screenconnect-instances. | PowerShell | Changes things | No reviews | |
| Create or update a scheduled taskRegisters one scheduled task with one trigger and one action, as SYSTEM or for signed-in users. Rerunning with the same inputs changes nothing, and an update saves the old task first. | PowerShell | Changes things | No reviews | |
| Break-glass local admin - create or reset itCreates a local administrator for emergency access with a random 20-character password, written only to a secure RMM custom field and never printed or logged. | PowerShell | Changes things | No reviews | |
| Wake a powered-off PC - Wake-on-LANSends Wake-on-LAN magic packets for the MAC addresses you list, to each local subnet or to broadcast addresses you give. It cannot confirm that a PC woke. | PowerShell | Changes things | No reviews | |
| Download a file safely - https, SHA-256 check, size limitDownloads over HTTPS with a size limit and a SHA-256 check by default. A bad or partial download leaves no download file behind. | PowerShell | Changes things | No reviews | |
| Run a command as the logged-in user (from SYSTEM)Runs your PowerShell code as the signed-in user, with that user's rights and registry, and returns up to 40 lines of output. High risk: needs DryRun=false and Approve=invoke-as-logged-in-user. | PowerShell | Changes things | No reviews | |
| Which other RMM agents are on this PCFinds about 25 RMM and endpoint-management agents in services, installed programs and program folders, so you know what the last provider left behind. Read-only. | PowerShell | Read-only | No reviews |
Nothing here matches that. Clear the search to see every script.