Jump to content

Search the Community

Showing results for tags 'scripts'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


  • MSPGeek
    • The Geek Cast
    • Code of Conduct
  • ConnectWise Automate / Labtech
    • ConnectWise Automate / LabTech
    • ConnectWise Automate / LabTech - Development


  • ConnectWise Automate
    • Scripts
    • Plugins
    • SQL Snippets
    • Role Definitions
    • Automate PowerShell Code
    • Reports
    • Internal Monitors
    • Remote Monitors
  • ConnectWise Manage
    • API Interacting Code


There are no results to display.

Find results in...

Find results that contain...

Date Created

  • Start


Last Updated

  • Start


Filter by number of...


  • Start



About Me


Agent Count













Found 23 results

  1. So I have a VBS script that I want to store on all devices I manage. Download the VBS script store it on the comptuer then Create a new file on C:\MSPFOLDER then store VBS script in the C:\MSPfolder then Create a ShortCut on Desktop for all users with the custom icon. Anybody seen anything like this already in the automate/Labtech. Im not a programmer by day, I know this is going to take a while for me to piece together, just looking for something I can build out in Automate/labtech and just Deploy this.
  2. Hello, I created a script to deploy Sentinel One AV and in the script i have to call the site token so that it verifies the product. I set it in the Client Info and added the site token. I also set the Global Parameter in the script it self as: @SentinelOne_Site_Token@ with the value blank. Ran it and got a error. Added the value as the actual site token that i got from the Sentinel One website just to test it. The first line in my script reads: GET: @SentinelOne_Site_Token@ = [EXTRAFIELD SentinelOne_Site_Token] Further down in the script where the scri
  3. I am working to create this type of workflow and wondered if anyone has come across this or would know the best way to set it up. Thanks in advance! I am wanting to create a script in Automate that would essentially e-mail the customer with the computers that are needing to be upgraded to the latest version of Windows 10. Then, once that e-mail is sent, the script then schedules the upgrade script to run on the weekend for those computers listed in the e-mail.
  4. Hi guys, First time poster and hit a bit of a snag, Automate support haven't been very helpful so I'm hoping you will come though. Our clients require their workstations to be patched every 2nd tuesday or 3rd wednesday of the month. Set days like the 1st/18th don't work for them as this could potentially land on a weekend. We have sent manual emails before now to alert them but we would like to automate this. From what I can see I can schedule scripts to send automated emails on a set date but nothing that will allow for the 2nd tuesday etc. I'm just wondering if anybody has bee
  5. Hello all, Im trying to write an automate script that will run the following power-shell script md c:\\HWID Set-Location c:\\HWID Set-ExecutionPolicy -Scope Process -ExecutionPolicy Unrestricted Install-Script -Name Get-WindowsAutoPilotInfo Get-WindowsAutoPilotInfo.ps1 -OutputFile AutoPilotHWID.csv I was wondering what the best way of going about having the Prompts that appear when going through to have [y] or [a] scripted to be input to continue the power shell process This would be running as admin on multiple machines, will i need to be adding something like /a o
  6. I need to get a report of local and network printers in our company infrastructure to our management team. I am not certain how I will get printer info we need (computer/location of printer/Printer make and model/Network or local). We have about 2700 computers on our network, I would say about 200 of them have local printers. Is there a script I can run in Automate to find this out and create a report? I have seen scripts that can do it one computer at a time....that needs to be run on each computer.....but I do not really know scripting enough to create one that can get me the inf
  7. I am looking to make a script that would allow me to create a user profile without having to log into the machine. Does anyone have experience with the power-shell command that would do this?
  8. Has anyone built a script that would disable active directory users who have not signed in for at least 90 days?
  9. Hey guys, I am working on a script that will output the top 20 folders / files in Linux volumes when a drive space alert is generated. I was looking to get some assistance with the regex to find the match the Linux volumes from the shell commands below: df -h awk '$6 -- "/db" {print $5}' tr -d '%\n' df -h awk '$6 -- "/" {print $5}' tr -d '%\n' df -h awk '$6 -- "/data" {print $5}' tr -d '%\n' /data So far i have \/[a-z]+ but it will find all volumes except "/". Any ideas?
  10. Hey Guys & Girls, After a long time away from Automate, well looks like I am coming back thank god as my new company have all but decided to move over and get me to set it all up! One thing which keeps coming up those as resistance to it, is the following... What are the most useful \ most used scripts in Automate out of the box, I find this hard to answer as I wrote all our for the old company and we used very little out of the box scripts which now looks a lot more complete than it did last time I set up a new Automate server which was back on version 9 or 10 (I realise
  11. Hi All, I'm running into a confusing problem with what I thought would be a relatively simple script. I'm trying to silently uninstall Visio 2013. The script starts with an " IF software installed" and %Visio 2013% specified as the app name. This works as expected and the Else function creates a ticket is the app isn't present. So far, so good. If the app is found, THEN : Function: Process Execute as Admin File: C:\Program Files\Common Files\Microsoft Shared\OFFICE15\Office Setup Controller\setup.exe Arguments: uninstall vispro /config \\servername\share\Scr
  12. Hi, we've 50+ users on one of our client's domain that are running webroot antivirus. It is expired and we want to uninstall it and install ESET on them remotely. I don't have webroot uninstall scripts or any kind of plugins related to webroot. any help would be appreciated. Thanks in advance.
  13. I have two variables containing text in the format of time such as timefrom = 06:00 and timeto = 10:00. I ran a shell enhanced command time /t and stored the result in a variable called currenttime. Now I require to check if current time is between the two other variables. Is there a way to do such comparison?
  14. I made this over the weekend. For a while now I have been wanting to pull true uptime statistics into Automate, IE, presented as a percentage how much uptime did the server have this month. To do this a piece of embedded Powershell is running in an Automate Script that populates EDFs with this information in. There are numerous decent data points here that can potentially have monitors running against them: https://github.com/gavsto/Connectwise-Automate-Public-Scripts Some ideas for usage: 1) Trigger when more than x crashes are detected in last 30 day period 2) Incl
  15. I have a unique situation where I an trying to modify a list to enable it to more easily work in a powershell script. The text looks like this: SprocketUsers,Domain Users,Password Sync It can vary in length so I am doing a ForEach type function with it in PS Now to use it in my PS script each CSV needs to have a single quote on it, like this: 'SprocketUsers','Domain Users','Password Sync' I can do a REGEX and split them out, but it appears that I can only work with the first match(?) SET: @Output1@ = MATCH(@sqldefaultgroups@ PATTERN (?<=^|,)(?:'{2}|(?:)|[^,'\r\n
  16. I have a mySQL database setup and I can run SQL Get Value queries against it successful. However when I try to run this query (SELECT preferredDC,preferredDCAID,Domain,defaultOU,defaultgroups,emailformat,emaildomain,logonformat FROM CustomerPortal.clientVars where AutomateID=12) as a SQL Get DataSet function it only returns "System.Data.DataSet" as the %sqldataset% I formed the query using HiediSQL and it works fine in there. SET: %sqlresult% = [SELECT preferredDC FROM CustomerPortal.clientVars WHERE AutomateID=12] using DSN-xxxxxx; WORKS Set %sqldataset% = SQL Get DataSe
  17. Hi, Has anyone managed to get automate to roll out Microsoft Teams? Thank you CLSICKLE1
  18. Hi all, New to Automate and learning to handle its vast capabilities of automation. I have a monitor that checks for devices not discovered on the network for a setting time period e.g. 7days. It works fine it sends an email to the registered email in the alert template when a new device is discovered. However I want to improve the automation with this monitor/alert/script. I would like to create a script that when the monitor is trigger the alert runs. I want this script to collate a list of the devices by "client/location" generated from the monitor and rather than send individual repe
  19. Hi Guys, I need to uninstall a piece of software form roughly 100 machines. This is part of an upgrade process where the x64 bit version will be installed and the x32 bit version needs to be removed. As this software does not change its name depending on bit version it is a little confusing as to how I can go about doing so. Does anyone know how this could be done via scripts? Any help will be much appreciated.
  20. Hello, I am trying to create a script that tells us "When ticket (x) comes in , schedule a check disk on (x) computer for a certain time (i.e. 9 PM). Is this possible? Could anyone lead me in the right direction?
  21. Has anyone had any luck writing a LT Script that will copy a URL file to a Mac OS desktop? Or create the URL shortcut some other way using Labtech?
  22. I am discovering the usefulness of EDF's can this information be included in reports. Or is there any way to get the status of a site from a consolidated view instead of navigating into each system individually? Thanks.
  23. Not sure what the problem is, but I've tried Importing two separate XML files as scripts, and despite being prompted for replacement of a pre-existing script, should it exist, there is 0 indication that I did anything at all. Tried doing a search of Scripts for the names of the 'imported' scripts, and nothing. Reloaded System Cache, refreshed Navigation Tree, and all that jazz. Imported both from LTConsole on my PC, and LT Console on the LT Server. Anyone else come across anything like this, or know where a good place to look might be?
  • Create New...