
Most Recent Scripts:
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
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 locations try{ Get-ChildItem -Path...
MAC – Reset Launcher Service
Required Files: None #!/bin/sh /System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Support/lsregister -kill -r -domain local -domain system -domain user #!/bin/sh...
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}'`
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 Windows...
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...
Task – Send Email to Alert Asset is Online
Required Files: None Import-Module $env:SyncroModule -WarningAction SilentlyContinue # Suggested script variables to use: {{asset_name}} and {{customer_business_name_or_customer_full_name}} Send-Email -Subdomain "SUBDOMAIN" -To "[email protected]" -Subject...
MAC – Time Machine Config + Enable + Backup (NEEDS YOUR SETTINGS)
Required Files: None #!/bin/sh tmutil setdestination -a afp://TimeMachineUser:[email protected]/TMBackup tmutil enable tmutil startbackup -a #!/bin/sh tmutil setdestination -a afp://TimeMachineUser:[email protected]/TMBackup tmutil enable tmutil startbackup...
MAC – Flush DNS
Required Files: None #!/bin/sh killall -HUP mDNSResponder && dscacheutil -flushcache #!/bin/sh killall -HUP mDNSResponder && dscacheutil -flushcache