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

Find results in...

Find results that contain...

Date Created

  • Start


Last Updated

  • Start


Filter by number of...


  • Start



About Me


Agent Count













Found 22 results

  1. 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 script actually executes it states: EXECUTE as Admin: %windir%\system32\msiexec.exe /i %tempdir%\SentinelInstaller-@soarchitecture@-@soversion@.msi /SITE_TOKEN=@SentinelOne_Site_Token@ /SILENT /l*v C:\windows\temp\sosinstall.log When i click on that line it is set up like so: Function: Process Execute as Admin File: %windir%\system32\msiexec.exe Arguments: /i %tempdir%\SentinelInstaller-@soarchitecture@-@soversion@.msi /SITE_TOKEN=@SentinelOne_Site_Token@ /SILENT /l*v C:\windows\temp\sosinstall.log And it is set to "Wait for Process" The exact error i get when i run it is: Script: S6366 - Starting at Server Time: Wednesday, April 22, 2020 10:03:34 AM IF F62 AppName (P1): Sentinel Jump (P2): 0 T: 0.9057142 L1 F139 Note (P1): Check that all global variables have been set T: 0.9107007 L2 F103 EdfId (P1): 542 TargetId (P2): 2529 Variable (P3): SentinelOne_Site_Token T: 0.9117026 L3 F70 Value (P1): soversion Comparer (P2): 2 To (P3): ChangeMe Jump (P4): :Update_Global T: 0.9136999 L4 F70 Value (P1): sosarchitecture Comparer (P2): 2 To (P3): ChangeMe Jump (P4): :Update_Global T: 0.9136999 L5 F200 Local (P1): Software/SentinelOne/SentinelOne.msi Destination (P2): C:\WINDOWS\Temp\SentinelInstaller-x64- T: 0.9136999 L6 F114 File (P1): 'C:\WINDOWS\Temp\SentinelInstal...' Check (P2): 1 Jump (P3): :Download_Failed T: 40.9213775 L7 F125 File (P1): %windir%\system32\msiexec.exe Wait (P3): 0 T: 66.9247203 L8 F29 Message (P1): @shellresult@ T: 681.0338181 L9 F29 Message (P1): Checking SO Agent install T: 681.0358104 L10 F139 Note (P1): :Check_Install T: 681.0358104 L11 F54 T: 681.0358104 L12 F120 App (P1): SentinelOne Jump (P2): :Successful_Install T: 697.0415205 L13 F29 Message (P1): SentinelAgent Agent install failed. Please check logs T: 697.0455042 L14 F215 T: 697.0475083 Please Help!!
  2. 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.
  3. 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 been in a similar position and how they've tackled it? Do you use a third party email application to send recurring emails? Or am I missing something here? Thanks Stephen
  4. 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 or -Force to my scripts in Automate. Any help would be appreciated as im fairly new to power shell 🙂
  5. 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 info for all systems in Automate we need. I had previously posted a similar request and did get the Printer Status plugin as a response. Does anyone have experience with that?
  6. 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?
  7. Has anyone built a script that would disable active directory users who have not signed in for at least 90 days?
  8. 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?
  9. 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 everyone's list maybe different but any good examples would be appreciated). At the moment the company is doing a very manual backup check process, this needs to stop, I get there is quite good Shadow Protect integration through the plugin but other programs are a bit more hit and miss, we have all sorts from Asigra to Windows Backups but mostly StorageCraft. I am wondering if there is any wonderful does all plugins or script for checking backups from any application (or at least most)?! I think I know the answer but after some time away would like to know if it's changed... Agent Deployment, the probe is OK and useful in some cases, but we found Group Policy Run Once was the best deployment option for Domain based PC's? We have 300+ Agents on LogMeIn, I know we could deploy it to these machines fairly easily but would be in root group unless we wrote a number of versions (1 per location), has anyone got a clever way to do this better? What have I missed since LT10? I have had a few demo's etc. and I can see that much is improved and added since I last used it, Updates, Layout \ Design etc. but much also looks very much as was it the backend, particularly the script editor which I am pleased to see if as comprehensive as it's always been, is there anything less obvious which has changed improved over the last few years? (Probably many points, I am looking for things I can use as selling points to directors if that helps). Anything else I should raise? Something coming soon? In development? etc.? I realise many of those questions are quite open which I apologies for, I don't expect any real detail in your responses I don't mind doing the leg work in researching the details, one liners will do if you prefer. I also realise I can get much of this information from the sales guys and believe me I have tried, but I get indifferent responses to some questions, for example most useful scripts, they say to don't know, don't have this info which is fair enough in my view but some of our Regional Managers want more, some of the other questions we have got answers from but I think I may get a whole different and more compelling set of responses from you guys who actually use it day to day! So all responses appreciated! Thanks Hoe.
  10. 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
  11. 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.
  12. 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?
  13. 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.
  14. 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
  15. 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?
  16. Hi, Has anyone managed to get automate to roll out Microsoft Teams? Thank you CLSICKLE1
  17. 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.
  18. 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.
  19. 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?
  20. 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?
  21. 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.
  22. 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...