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...

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...

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...

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...

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,...

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...

Audit Disk Usage

Required Files: None Some cool script to audit disk usage. &nbsp Import-Module $env:SyncroModule $32bitWindows = [System.IntPtr]::Size -eq 4 if($32bitWindows){ # this usually takes about a minute or less C:\temp\sfk.exe stat -minsize=50m C:\ | Sort-Object...