Select Page

Uninstall Program – Nirsoft UninstallView

Required Files: SharedScriptRequiredFile 48 Uninstall a Program Specified at Runtime. Use * for a wildcard for the program name. Ex. Mozilla Firefox* Currently set to uninstall up to 5 programs that matches the variable at a time.   Import-Module $env:SyncroModule...

Uninstall Pulseway

Required Files: None This script will uninstall the Pulseway agent and delete the configuration for the Pulseway agent. Please note that this script will not work if the Pulseway agent is installed only for one user:   $result = gwmi win32_product -filter "Name...

Disable Windows 10 fast boot via Powershell

Required Files: None Is your PC truly shutting down? While fast startup is a pretty harmless tool that can deliver a considerable startup speed boost, especially to PCs using hard-disk drives (HDD), some people prefer to have their PC truly shut down when they click...

MAC – Remove Webroot

Required Files: None #!/bin/sh launchctl unload com.webroot.security.mac.plist launchctl unload com.webroot.webfilter.mac.plist rm -rf /Applications/Webroot\ SecureAnywhere.app   #!/bin/sh launchctl unload com.webroot.security.mac.plist launchctl unload...

MAC – Enable Firewall

Required Files: None #!/bin/sh /usr/libexec/ApplicationFirewall/socketfilterfw –setglobalstate on   #!/bin/sh /usr/libexec/ApplicationFirewall/socketfilterfw --setglobalstate on#!/bin/sh /usr/libexec/ApplicationFirewall/socketfilterfw --setglobalstate...

MAC – Disable Remote Access

Required Files: None #!/bin/sh echo “yes” | sudo systemsetup -setremotelogin off > /dev/null 2>&1   #!/bin/sh echo "yes" | sudo systemsetup -setremotelogin off > /dev/null 2>&1#!/bin/sh echo "yes" | sudo systemsetup...

Clear Teams Cache

Required Files: None   Write-Host "Closing Teams in order to clear cache" try{ Get-Process -ProcessName Teams | Stop-Process -Force Start-Sleep -Seconds 5 Write-Host "Teams is now closed" } catch{ echo $_ } # Now clean temp file...

MAC – Kill_Restart CoreAudio

Required Files: None #!/bin/sh kill -9 `ps ax|grep ‘coreaudio[a-z]’ | awk ‘{print $1}’`   #!/bin/sh kill -9 `ps ax|grep 'coreaudio[a-z]' | awk '{print $1}'`#!/bin/sh kill -9 `ps ax|grep 'coreaudio[a-z]' | awk '{print...

NumLock ON at login

Required Files: None Set the NumLock to ON at Windows Login screen   #Set NumLock ON at Windows login screen   $path = 'HKU:\.DEFAULT\Control Panel\Keyboard\' $name = 'InitialKeyboardIndicators' $value = '2' Set-Itemproperty -Path $path -Name $name -Value $value...

Task – Rename Computer

Required Files: None Renames the computer and optionally restarts it to take effect. You will have to change the asset name manually if you want it to match.   Import-Module $env:SyncroModule -WarningAction SilentlyContinue   # Chanage the computer name in...

Bios Version

Required Files: None Gets Current Bios Version   Import-Module $env:SyncroModule $bversion=$(Get-WmiObject -Class "Win32_Bios").SMBIOSBIOSVersion Set-Asset-Field -Subdomain "SUBDOMAINHERE" -Name "BiosVersion" -Value...

MAC – Flush DNS

Required Files: None #!/bin/sh killall -HUP mDNSResponder && dscacheutil -flushcache   #!/bin/sh killall -HUP mDNSResponder && dscacheutil -flushcache#!/bin/sh killall -HUP mDNSResponder && dscacheutil...

Jumpcloud Installation

Required Files: None Install Jumpcloud Agent. Note: Insert Connect Key for Company under Line 20   <# .SYNOPSIS Repairs an installation of the JumpCloud Windows agent .DESCRIPTION Uninstalls any existing installations, and cleans up any remaining cruft, and...

Get Dell Warranty

Required Files: None This script will pull Dell warranty info from the Dell API. You do need a Dell API Key to get this working.   #script credit to https://github.com/connochio #Couple things that need improvement #Probably need to put a random time function to...

Dell Support Assist – Install

Required Files: None Install Dell SupportAssist if not already installed.   Import-Module $env:SyncroModule   # Silent Install Dell Support Assist # https://downloads.dell.com/serviceability/catalog/SupportAssistInstaller.exe     # Path for the workdir...

Check Battery Health

Required Files: SharedScriptRequiredFile 41 (For Laptops and mobile devices.) Attaches “Battery.csv” to your asset page.   Import-Module $env:SyncroModule $path = "c:\temp\" If(!(test-path $path)) { New-Item -ItemType...

Windows Update – Reset

Required Files: None Resetting Windows Update using this option will clear the view update history details list (cache). This will not actually uninstall any of your currently installed Windows Update. They will just not be listed anymore. Any new Windows Update...

Brand Computer

Required Files: None This modifies the system information to reflect your company information   <# Make sure you change the variables to match your business information   Logo needs to be in BMP format, 120 x 120 pixels   Upload your logo to Syncro - name...

Check Office Activation Status

Required Files: None This checks office activation status for Office 2016 32 and 64 bit   <# .Creator: Steven Grabowski - SoHo Integration, LLC   .Synopsis This script will work with 32 or 64 bit Office 2016 to check status of Office Activation. A ticket is...

Get Bitlocker Keys (Shared)

Required Files: None Get Bitlocker Recovery Key(s) and store them in a custom field called “Bitlocker_Keys”   #TODO - MAKE SURE YOU SETUP YOUR ASSET CUSTOM FIELD CALLED "Bitlocker_Key_<drive>" for each drive as a "Text Field" on...

Average CPU, HDD, RAM Usage

Required Files: None Polls and creates a CSV Log on C:\   # script created to pull Average CPU, RAM and HDD usage # the details are for the comptuer that run this script on (For single computer) $AVGProc = Get-WmiObject win32_processor | Measure-Object -property...

Print Test Page

Required Files: None Print a test page to the default printer.   #Printer Test page script for Nick # Get Printer Objects for this computer from WMI $printers = Get-WmiObject -Query " SELECT * FROM Win32_Printer WHERE Default=$true"     # Display...

CrystalDiskInfo Portable MASTER TEMPLATE

Required Files: None Download CrystalDiskInfo Portable, extract and run the file. Generate a DiskInfo text file. Upload the text file to Syncro Asset. Generate RMM Alert and Ticket, add 15 minutes to ticket and close ticket and alert. This script requires...

Delete Temp Folders

Required Files: None Delete Temp Folders   # Deleting Temp Folders ## Variables ####   $objShell = New-Object -ComObject Shell.Application $objFolder = $objShell.Namespace(0xA)   $temp = get-ChildItem "env:\TEMP" $temp2 = $temp.Value  ...

Unhide User Account

Required Files: None Unhide Previously Hidden User Account in Windows.   #unhide admin accounts from the logon screen   $Username = "TYPEHERE"   $path = 'HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\SpecialAccounts\UserList' New-Item...

Services Monitor – Standard Server

Required Files: None Monitor multiple important services from a single script on a standard server. Notify if any of them are stopped.   Import-Module $env:SyncroModule   <# .SYNOPSIS Monitors the status of an array of services .DESCRIPTION Checks the status...

Delete a Folder

Required Files: None Delete a folder.   # Script Created to delete a Folder   # Recurse will not prompt if there any child items and force will delete if there are any hidden or read only files Remove-Item –path "C:\IT Dept" –recurse -Force# Script...

On-Boarding

Required Files: None Run once to on-board a new workstation for managed services. – Create MSP Admin – Set Power Settings – Create Tech Folder – Create Restore Point – Audit Workstation   #Create System Restore Point named On-Boarding...

TeamViewer – Install and Assign

Required Files: None This is for the silent rollout of TeamViewer and will run the assignment tool for you. This only works on the Corporate edition with the MSI. There is a TeamViewer integration that basically does the same thing, go to the App Center to see it...

Get Existing Windows Users

Required Files: None Get a list of existing user accounts in Windows.   # get information on the number of user accounts in this computer get-localuser | Select name,Enabled >C:\Logs\sri.txt# get information on the number of user accounts in this computer...

Audit-Disk-Usage

Required Files: SharedScriptRequiredFile 15,SharedScriptRequiredFile 16 This uses Swiss File Knife to discover large files on the disk that could help in troubleshooting low disk space. This is setup to run on the whole system.   Import-Module $env:SyncroModule  ...

Sample – Notify-Installing AV

Required Files: None Tell the user not to worry if they see Antivirus Popups (Emsisoft)   Import-Module $env:SyncroModule   Display-Alert -Message "Notice from IT: Your computer is about to get an Antivirus software upgrade - do not be alarmed if you see...

Date-HostName-Cpu-Memory-CDriveFree

Required Files: None Script to give you Date/Time, Host Name, % Load on a processor, % Memory Free, % C Drive Free   ###################################################################### # # Modified Nick Lenius script to export to a csv # # For the Path you will...

TeamViewer – get id

Required Files: None This just looks for the TeamViewer ID from your registry and puts it on a custom field.   Import-Module $env:SyncroModule   #ok, now lets get the teamviewer ID into a variable $prop = Get-ItemProperty -path...

Set’s Network Type to Private (Windows 10)

Required Files: None This Powershell Script will automatically set the user’s machine Network type from Public to Private.   $env:SyncroModule $net = get-netconnectionprofile;Set-NetConnectionProfile -Name $net.Name -NetworkCategory Private$env:SyncroModule $net...

Sample – Ticket Control

Required Files: None This is a sample script that can open a ticket, add some time, and close the ticket. Edit lines, 2, 3, 4 (Number of minutes to add to the ticket), 7 (Subject), 12 (Notes)   Import-Module $env:SyncroModule $subdomain = "SUBDOMAIN" $email...

Custom Restart

Required Files: None       #---------------------------------------------- #region Import Assemblies #---------------------------------------------- [void][Reflection.Assembly]::Load('System.Windows.Forms, Version=2.0.0.0,...

ABC-Update Audit

Required Files: None ABC-Update is an easy to use tool that sets you in control of MS Update operations. With ABC-Update you get the updates exactly when you want them, and can also define max reboots, use filtering options to select updates based on patch dates, KB...

Get Installed Antivirus Information

Required Files: None Gathers the name, location, update status, real time protection status, and product state of any installed Antivirus.   function Get-LHSAntiVirusProduct { <# .SYNOPSIS Get the status of Antivirus Product on local and Remote Computers....

Install Available Windows Updates

Required Files: None Installs all available Windows Updates   Function Get-WUInstall { <# .SYNOPSIS Download and install updates.   .DESCRIPTION Use Get-WUInstall to get list of available updates, next download and install it. There are two types of...

Bleachbit-clean-basics

Required Files: SharedScriptRequiredFile 5 Bleachbit is a super popular technician tool that can do a variety of cleanup tasks. Here you can see an example that does some basic cleanup.   Import-Module $env:SyncroModule   #this places it in...

Monitor-EventLog Copy

Required Files: None This handy script can monitor for keywords or eventids in a specified time period. Easily run this daily to catch windows events you want to be alerted for.   Import-Module $env:SyncroModule   # put in queries like...

Get Syncro Log Files – Powershell 2.0

Required Files: None This script copies the syncro logs, then zips them up using methods available in Powershell 2.0.   #Import Syncro Function so we can upload the syncro log files Import-Module $env:SyncroModule   ## Created by SoHo Integration, LLC ## This...

Bleachbit – Clean Temp Files

Required Files: SharedScriptRequiredFile 23 This script was based off the template Bleachbit script in the repository. I modified what it cleans (see below), and have had it create a ticket, add ticket time (10 minutes which you can change), and close the ticket. I...

LastActivity

Required Files: None This script is helpful to run after an application crash or a bluescreen. It will download lastactivityview from Nirsoft and then dump all recent activities on the PC to a csv then upload it to the asset.   #Import Syncro Function so we can create...

Service-Monitor

Required Files: None Checks the status of the specified service, and optionally starts the service and/or creates a Syncro alert if it was not already running.   Import-Module $env:SyncroModule   <# .SYNOPSIS Monitors the status of the specified service...

Windows-License-Status

Required Files: None   function Get-ActivationStatus { [CmdletBinding()] param( [Parameter(ValueFromPipeline = $true, ValueFromPipelineByPropertyName = $true)] [string]$DNSHostName = $Env:COMPUTERNAME ) process...

Audit-Scheduled-Tasks

Required Files: None This will log the list of Windows Scheduled Tasks and compare it each time you run. If the set changes it will alert.   Import-Module $env:SyncroModule   $oldFile = "C:\temp\tasks-old.txt" $newFile =...

Audit-Local-Administrators

Required Files: None This will log the local Administrators group to a txt file and compare it to the last run. Maybe run daily to look for changes to the administrators group.   Import-Module $env:SyncroModule $oldFile = "C:\temp\a-old.txt" $newFile =...

Monitor-CPU health

Required Files: None Monitor CPU Queue Length, User Time, and Privileged Time – alert if over threshold.   Import-Module $env:SyncroModule   $CPUQueueLenth = (get-counter -counter "\System\Processor Queue...

Audit-Listening-Ports

Required Files: None This will log ports that are listening and alert if they change between script runs.   Import-Module $env:SyncroModule   $oldFile = "C:\temp\ports-old.txt" $newFile = "C:\temp\ports-new.txt"   if(!(test-path...

Printers – Get List of All Installed

Required Files: None This simply writes a list of all the installed printers to the log.   Function Get-InstalledPrinter { <# .SYNOPSIS Uses Get-WMIObject Win32_Printer to list all printers installed.   .DESCRIPTION Uses Get-WMIObject Win32_Printer to...

ReleaseRenewDHCP

Required Files: None   echo off cls ipconfig /release ipconfig /renew ipconfig /registerdns exitecho off cls ipconfig /release ipconfig /renew ipconfig /registerdns...

Show Syncro Taskbar Icon

Required Files: None This script will force your Syncro Taskbar Icon to show up automatically. Explorer will restart after running this script. Since it changes ‘current user’, This script needs to be run as ‘Logged In User’ Adapted from...

Install Chocolatey

Required Files: None This will install the Chocolatey Package Manager for Windows.   @powershell -NoProfile -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET...

CloudBerry – Monitor Backups

Required Files: None This script will make sure CloudBerry is there and optionally; – Alert if not found – Alert if backup failed – Alert if no backups scheduled Schedule this at a similar schedule to your backups, if you have a daily backup, you...

Crashplan Service Monitor

Required Files: None Checks the status of the Crashplan backup service, and optionally starts the service and/or creates a Syncro alert if it was not already running.   Import-Module $env:SyncroModule   <# .SYNOPSIS Monitors the status of the specified service...

Monitor-and-Patch-Unifi_Controller

Required Files: None A script that will check health, availability, and patchability – and then do patches if available.   param( [string]$URL = '10.0.0.30', [string]$port = '8443', [string]$User = 'Admin', [string]$Pass =...

Monitor-and-remediate-SearchDB

Required Files: None Monitor the Windows Search Database, try to remediate and also alert if it has grown out of control   Import-Module $env:SyncroModule   $MaxSizeInGB = '50'   $getservice = Get-service "wsearch" -ErrorAction SilentlyContinue...

Browser-Get-History

Required Files: SharedScriptRequiredFile 13 This will use Nirsoft BrowsingHistoryView to save the browser history for last 14 days from all users on the machine. You can easily add a specific username, or change the timeframe/browsers.   Import-Module...

Windows 10 – Disable Suggested Apps

Required Files: None This updates the registry key so that Suggested apps in windows 10 are disabled   $registryPath = "HKLM:\SOFTWARE\Policies\Microsoft\Windows\CloudContent" $Name = "DisableWindowsConsumerFeatures " $value = "1"  ...

Monitor-ShadowProtect jobs

Required Files: None Monitor ShadowProtect jobs and alert if there is an issue   Import-Module $env:SyncroModule   try{ $ShadowProtectLog = Get-EventLog -logname Application | Where-Object {(Get-Date $_.TimeWritten) -gt...

Get User Login History for Past 30 Days

Required Files: None Gets a list of every instance where any User logged in to the computer in the past 30 days   <# .Synopsis Get the details of who logged in to the server on certain days. .DESCRIPTION The script provides the details of the users logged into the...

CCleaner Cloud – Silent Install

Required Files: None Download and Install CCleaner Cloud on your clients machine!   # You will need to download your own CCleaner Cloud download! I recommend making it unlimited installs!   Import-Module $env:SyncroModule Start-Process C:\temp\ccleaner.msi...

Disable Sleep Power Option

Required Files: None Disable Sleep Power Option   Import-Module $env:SyncroModule     #Set display sleep to 5 minutes when on AC c:\windows\system32\powercfg.exe -change -monitor-timeout-ac 5   #Set display sleep to 5 minutes when on battery...

Uninstall ATERA & Splashtop

Required Files: None Uninstall Atera Networks & Splashtop Runs twice   sc stop ateraagent sc delete ateraagent   rmdir /S /Q "C:\Program Files\ATERA Networks" rmdir /S /Q "C:\Program Files (x86)\ATERA Networks"   reg delete...

Get List of Installed Applications

Required Files: None Gathers a List of All Installed Applications   Function Get-RemoteProgram { <# .Synopsis Generates a list of installed programs on a computer   .DESCRIPTION This function generates a list by querying the registry and returning the...

Windows Update: Get List of Available Updates

Required Files: SharedScriptRequiredFile 10 Gathers a list of all available windows updates   Import-Module $env:SyncroModule   write-host "Extracting necessary files to User Profile..."   $UserProfilePath = $env:USERPROFILE +...

Get Windows Product Key

Required Files: None Gathers Windows product key and outputs it to the output log   Import-Module $env:SyncroModule   function Get-ProductKey { <# .SYNOPSIS Retrieves the product key and OS information from a local or remote system/s.   .DESCRIPTION...

CloudBerry – Install and Configure

Required Files: None This will download your custom whitelabel installer, install, set the product type, and log the user in. Just add your recent windows installer.exe as C:\temp\backup-installer.exe in the required files section to make it work.   Import-Module...

Ninite – Updating Only

Required Files: None Use Ninite pro (your own copy) to install/patch 3rd party software with ease!   #TODO - Attach your "ninite-pro.exe" and put it in C:\temp\ninite-classic.exe   Import-Module $env:SyncroModule     $Params =...

Get-Event-logs

Required Files: None This will grab the last 300 Application and System event logs in the Error and Warning categories and attach them to the Asset.   Import-Module $env:SyncroModule     # Get Application Logs $result = Get-WinEvent -Logname Application...

TempProber

Required Files: SharedScriptRequiredFile 11 A small command line application that pulls temps of various hardware components using Open Hardware Monitor Lib, outputs info along with proper exit code, for use on RMM dashboards. Supports Windows based workstations and...

Service-Restart-Spooler

Required Files: None Powershell to restart the print spooler service   Restart-Service -Name Spooler -ForceRestart-Service -Name Spooler...

Uptime-Alert-if-no-reboot

Required Files: None Powershell to alert you if a machine hasn’t been rebooted lately   Import-Module $env:SyncroModule   $LastRebootTime = Get-WmiObject win32_operatingsystem | select csname,...

System-Restore-Create-Restore-Point

Required Files: None This runs the Powershell command “Checkpoint-Computer” which creates a system restore point. If it fails it will RMM-Alert you.   Import-Module $env:SyncroModule   try { Enable-ComputerRestore -Drive "C:\"...

Pin Office Icons to Taskbar

Required Files: SharedScriptRequiredFile 24 This script is useful for new setups / onboarding. It will locate Excel.exe, Outlook.exe, and Winword.exe It will then ‘pin’ the shortcuts to the Taskbar This uses the free syspin.exe utility from:...

Wake-on-LAN

Required Files: SharedScriptRequiredFile 6 Put in a MAC address and this will wake up that computer. See http://www.nirsoft.net/utils/wake_on_lan.html for more information.   Import-Module $env:SyncroModule   #TODO put the MAC address in place of the 00-00......

System-Restore-Get-List

Required Files: None This will get a list of all restore points and put them in the log.   Get-ComputerRestorePoint | Format-Table SequenceNumber, @{Label="Date"; Expression={$_.ConvertToDateTime($_.CreationTime)}}, Description...

Monitor – Dell RAID

Required Files: None Monitors Dell RAID issues via the Open Manage command line tool. This is a BETA and could use help from the community to improve.   Import-Module $env:SyncroModule   try { omconfig preferences cdvformat delimiter=comma $OmReport =...

Add Local Admin Account

Required Files: None Add local administrative account to PC, and attempts to hide it from the logon screen. If you create an Asset Custom Field called “LocalAdminAccount” and the script will populate the field with the username chosen!   Import-Module...

Set DNS Servers

Required Files: None Sets the Primary and Secondary DNS Server for all Network Adapters where IPEnabled is true   # Choose whatever Primary and Secondary DNS Servers you want. Some common # DNS Services are listed below, but you can use whatever you want. # # Level3...