Jump to content

Search the Community

Showing results for tags 'scripts'.

More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


  • MSPGeek
    • Announcements
    • The Geek Cast
  • 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

Find results in...

Find results that contain...

Date Created

  • Start


Last Updated

  • Start


Filter by number of...


  • Start



About Me


Agent Count













Found 13 results

  1. 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\Scripts\Visio\2013\MSVisio-silentUninstallConfig.xml The script will run and return a result but the Visio remains installed. As a test I ran the above in cmd on local machines and found it would not uninstall Visio unless the cmd prompt had been opened with elevated privileges so I wonder if this might the case here, but I would have though that select to process the execute as admin would take care of that? If not, is there a way to force the command to run in elevated mode? Or am I barking up the wrong tree and the issue lies elsewhere? Any thought/help appreciated. Thanks
  2. 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.
  3. 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?
  4. 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) Include up-time percentage in your reports 3) Trigger when more than x reboots are detected in last 30 day period 4) Show value to customers who have required SLAs for server uptime Hope you all find it useful.
  5. 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]+|'(?:'{2}|[^']+)+')(?=,|$)) Does anyone know any way to do this reformatting? Either via Automate scripting or PS
  6. 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 DataSet: SELECT preferredDC,preferredDCAID,Domain,defaultOU,defaultgroups,emailformat,emaildomain,logonformat FROM CustomerPortal.clientVars where AutomateID=12 using DSN=xxxxxx; DOES NOT WORK Any ideas?
  7. Hi, Has anyone managed to get automate to roll out Microsoft Teams? Thank you CLSICKLE1
  8. 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 repeated emails to same client(email field) I would like it to input all the devices not seen for more than eg 7days into the automate email and email the client(selected email field). I had a look at running a search and creating search groups but it seems like this would lead to various obstacles. I believe their should be a way to script what I want automate to do so It looks up the list of devices, looks up the client name, groups it and emails it to the contact for that client. Not sure if that make sense. Thanks in advance.
  9. 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.
  10. 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?
  11. 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?
  12. 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.
  13. 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...