Jump to content

Search the Community

Showing results for tags 'script'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

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

Categories

  • 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

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


About Me


Location


Agent Count


INTERESTS


OCCUPATION


ICQ


WEBSITE


WLM


YAHOO


AOL


FACEBOOK


GOOGLEPLUS


SKYPE


TWITTER


YOUTUBE

Found 53 results

  1. I am working on a script to add a user and make it admin .. this is done.. but is there a way to add the password to the password list for the customer location in labtech with the script? It would help on so many levels.. Anyone have a pointer on this? I want to run it once a month to update the passwords and for each customer group.. ltadmin create and hide.xml
  2. Hi all, I have been working with Automate Scripts for quite some time now and I have one issue which support cannot seem to understand. Everytime I use a Shell Function (Shell as Admin, Shell, Shell Enhanced), the variable %shellresult% always return OK, whether I am running an actual shell command (Like ping google.com) or if I am executing a powershell script. Do you have any idea on what could cause the issue. See one script result and content in attachement.
  3. we are looking to make a simple script to install Windows 10 2004 to some older Windows 7 machines. We have a client that is way behind and their onsite IT staff has just now decided to tackle this issue. does anyone have anything simple that will do this. Basically i would like to supply an iso and have it install without requiring user action at all.
  4. 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.
  5. View File Windows 7,8,10 Upgrade Script This script will upgrade copies of Windows to whatever Windows 10 ISO you give it. You will need to upload the Windows 10 ISO to your LTShare/Transfer/ folder(by default in the /ISO/ sub folder). For Windows 7 installs, you must put a copy of 7z.dll and 7z.exe in your LTShare/Transfer/ folder(by default in the \Software\7ZipCLI\ sub folder). This is because it extracts the ISO since Windows 7 can't mount it. I recommend a 32bit copy because they work for both 32 and 64bit. You can download the 7-Zip installer and open it with 7-Zip like a zip file to extract just those files without bothering to install it. You can now also use an EDF to specify a UNC path to get the ISO from instead of downloading from the CWA server. The EDF is located under the TNE - Setup tab called TNE - Windows 10 ISO Location under the location screen. Double click on a location to find it. This should be in the format of \\server\iso, no trailing slash. If you put domain computer permissions on the share and the folder the CWA agent shouldn't have a problem copying it. Also just added, the script will now check to see if the ISO is in place before running, so you can create a script to preload the ISO. Now supports Windows 10, 8, and 7. Sorry, no Windows 9 support at this time. Thanks to @Slartibartfast, @johnduprey, and the rest of the community for contributions and bug reports. More details and discussion can be found on the forum post: If you are downloading the ISO directly from your CWA server, I might recommend the below to rate limit it. It is a script that will rate limit how many computers are running it at once. Of course, that will slow deploy, so you have to be careful not to accidentally run it on to many and cause it to run outside of maintenance hours. Submitter danialbulloch Submitted 11/20/19 Category Scripts  
  6. Hey all, Attached are two scripts. "EXAMPLE - IT Glue Credentials" - This could easily be a scriptlet as well, but you could pretend this would be any other script where you would want to have credentials from IT Glue to do something with them. This script then calls... "FUNCTION - Retrieve IT Glue Credentials" - This is the script that does the work to go off and pull the credentials from IT Glue Assumptions You're syncing Automate and IT Glue, or at least have the names of your clients in IT Glue exactly match those in Automate. You have an Enterprise IT Glue plan Things you need to do before using Step 4 in "EXAMPLE - IT Glue Credentials" - This variable needs to be set to the exact name of the password you want to pull from IT Glue. Limitation here is that you need consistency in your password naming - we use a PowerShell script to pre-populate various password records for ones we'd want to pull into Automate Step 4 in "FUNCTION - Retreive ITGlue Credentials" - This query needs to be updated with a 'centralised' Server that you want to run the PowerShell from that goes off to do the IT Glue query. This was so I knew PowerShell versions wouldn't get in the way of the script and that my IT Glue API key wasn't being exposed to hundreds of servers. Step 6 in "FUNCTION - Retreive ITGlue Credentials" - This PowerShell script needs to be updated with your IT Glue URI and your API Key. This API Key obviously needs the Password Access box ticked... What you should then have at the end of it are two variables, @username@ and @password@ - You can then use these in your Automate script. There is some basic error checking built in - one for if it simply can't find the credentials, and one for if the PowerShell command fails for some reason. These are then tied to Script GoTo's in the EXAMPLE script that you can then log off of if you wish. FUNCTION - Retreive ITGlue Credentials.xml EXAMPLE - IT Glue Credentials.xml
  7. I created a script to test the hard drives on a machine and alert based on the log it generates. Below I have outlined how you can install it: Download Crystal Disk Info 8.2.0 (It may work with a newer one, just have not tested it) Place the zip file in L:\Transfer\Software\Disk Check (I believe everyone should have a L drive for the LabTech share) Extract the zip file attached and Import the XML file attached. Copy the diskinfo.ini file into L:\Transfer\Software\Disk Check Open the script and starting at line 91, you will need to modify the ticket creation settings to your liking. The category number will need to get changed to the category you would like to use Notes about the script: The default threshold on the alerting is 50 (Reallocated sectors, events, or errors) If you would like to change the Threshold, it can be changed from the top variable named @Threshold@ If you get the script failing with it unable to find the threshold.txt file, then CrystalDiskInfo is unable to detect any hard drive and you may need to update the exe used and try to see if the newer update is able to detect the hard drive. Lines 64 through 79 parses through the log to get information if you would like to put it into the ticket. You will need to add some lines to get rid of the extra spaces that are in the variables if you go that route though. The script is supposed to attach the log to the ticket but for some reason it does not attach it in ConnectWise. If you figure out how to get it working, let me know You can manually modify the ini file on specific machines to change the threshold on individual machines and it will keep the threshold in-tact every time the script runs. Crystal Disk Info HDD Test - With Ticket Creation.zip
  8. Version 2.5.0

    454 downloads

    This script will upgrade copies of Windows to whatever Windows 10 ISO you give it. You will need to upload the Windows 10 ISO to your LTShare/Transfer/ folder(by default in the /ISO/ sub folder). For Windows 7 installs, you must put a copy of 7z.dll and 7z.exe in your LTShare/Transfer/ folder(by default in the \Software\7ZipCLI\ sub folder). This is because it extracts the ISO since Windows 7 can't mount it. I recommend a 32bit copy because they work for both 32 and 64bit. You can download the 7-Zip installer and open it with 7-Zip like a zip file to extract just those files without bothering to install it. You can now also use an EDF to specify a UNC path to get the ISO from instead of downloading from the CWA server. The EDF is located under the TNE - Setup tab called TNE - Windows 10 ISO Location under the location screen. Double click on a location to find it. This should be in the format of \\server\iso, no trailing slash. If you put domain computer permissions on the share and the folder the CWA agent shouldn't have a problem copying it. Also just added, the script will now check to see if the ISO is in place before running, so you can create a script to preload the ISO. Now supports Windows 10, 8, and 7. Sorry, no Windows 9 support at this time. Thanks to @Slartibartfast, @johnduprey, and the rest of the community for contributions and bug reports. More details and discussion can be found on the forum post: If you are downloading the ISO directly from your CWA server, I might recommend the below to rate limit it. It is a script that will rate limit how many computers are running it at once. Of course, that will slow deploy, so you have to be careful not to accidentally run it on to many and cause it to run outside of maintenance hours.
  9. So, I have a really cool and useful script I found posted here and it works fantastically for a majority of sites. Unfortunately it doesn't yet work at all sites because at some places there is more than one domain controller. At those sites, only one of the multi-DC's has the AD Domain Naming Master role, but also only one has the NTDS role - so I am confused as to why the script cannot correctly identity this and select just 1 DC from 2 or 3 when c.RoleName = "AD Domain Naming Master" Is there an easier way to single out systems based on roles installed? OG post for more info
  10. Version 1.0.4

    673 downloads

    The Internal Monitor "Notify When Agent is Online" watches machines with the "Notify When Online" computer EDF configured. It will send an alert as soon as it finds that the agent is offline. (The offline notice is skipped if the agent was already offline when notifications were first enabled.) When the agent comes online again another alert email will be sent and the EDF will be reset. This monitor can be used to notify when a lost computer comes online, or when that machine that is only online in the office every few weeks is back. To enable notifications for an agent, you simply put your email address into the "Notify When Online" EDF. You can enter multiple addresses separated by ";". The contents of the agent's "Comments" will be included in the email also. (Helpful to remember why you wanted to be alerted, or what instructions should be followed after receiving the alert.) When the agent returns online, the Network Inventory and System Info are refreshed. The recovery email will include the following details: The last check in was at @AgentCheckIn@. Public IP Detected: %RouterAddress% Internal IP: %LocalAddress% System Uptime: %uptime% Last Logged in User: %lastuser% This bundle includes a Script+EDF XML, and a SQL file with the Internal Monitor. To import the Script and EDF, select Tools -> Import -> XML Expansion. After import the script should appear in the "\Autofix Actions" folder. To import the Internal Monitor, select Tools -> Import -> SQL File. The monitor should be imported AFTER the script bundle has already been added. After importing, verify that a valid Alert Template is selected for the monitor. The Alert Template MUST have the "Run Script" action enabled without any script specified in the template. (The script is set on the monitor) Read the Script Notes for advanced control over the number of times a notification will be triggered.
  11. Would anyone be willing to share their Dropbox installation script? Thanks in advance.
  12. Alert When Agent Is Online View File The Internal Monitor "Notify When Agent is Online" watches machines with the "Notify When Online" computer EDF configured. It will send an alert as soon as it finds that the agent is offline. (The offline notice is skipped if the agent was already offline when notifications were first enabled.) When the agent comes online again another alert email will be sent and the EDF will be reset. This monitor can be used to notify when a lost computer comes online, or when that machine that is only online in the office every few weeks is back. To enable notifications for an agent, you simply put your email address into the "Notify When Online" EDF. You can enter multiple addresses separated by ";". The contents of the agent's "Comments" will be included in the email also. (Helpful to remember why you wanted to be alerted, or what instructions should be followed after receiving the alert.) When the agent returns online, the Network Inventory and System Info are refreshed. The recovery email will include the following details: The last check in was at @AgentCheckIn@. Public IP Detected: %RouterAddress% Internal IP: %LocalAddress% System Uptime: %uptime% Last Logged in User: %lastuser% This bundle includes a Script+EDF XML, and a SQL file with the Internal Monitor. To import the Script and EDF, select Tools -> Import -> XML Expansion. After import the script should appear in the "\Autofix Actions" folder. To import the Internal Monitor, select Tools -> Import -> SQL File. The monitor should be imported AFTER the script bundle has already been added. After importing, verify that a valid Alert Template is selected for the monitor. The Alert Template MUST have the "Run Script" action enabled without any script specified in the template. (The script is set on the monitor) Read the Script Notes for advanced control over the number of times a notification will be triggered. Submitter DarrenWhite99 Submitted 12/21/17 Category Internal Monitors  
  13. Hi everyone, I may need a lesson on how to search- but honestly, couldn't find anything on this. How do I pull in the manufacturer of the computer from a script? i.e. I need to know if it's a Dell box. I'm assuming I have to run a SQL Query or something, but maybe it's simpler than that? Thanks in advance.
  14. I'm very new to the scripting in Automate. I have only done a few scripts and have been watching and reading all the documentation I can find with Automate - but I either find its really basic or really advanced. I have a script built and working. It just downloads an exe and runs it (Function:Execute Script:Batch). It then opens a ticket. This exe can either return 2 lines of text to the command window or it can be written to a text file. The output is just a successful, partial or failure. I'm trying to find the easiest way to get that information into the subject of the ticket. That way I can scan down the ticket list and confirm the successes and resolve the failures. I have looked over the built in scripts and it helped me get this far - but I'm not sure where to go from here. Any input would be greatly appreciated.
  15. Hi! Have enabled the monitor Updates - Failed and choose Autofix Action failed patch install. I though it will try to install the patch again. But I get a ticket saying: Failed Patch Installs for [COMPUTER NAME] and then it says: The following Patch(es) failed to install for [COMPUTER NAME]: But its empty. 1. Why dose it create a ticket on this? 2. Why dosent it displays the patch it could not install? Thanks!
  16. Hey Guys, So for the last 2 years, we've had to put up with SEPC (Symantec Endpoint Protection Cloud - not to be mixed with SEP, SEP SBE or Symantec Cloud) and their BS. I now can finally move away from their product after being given the green light by the directors.. Except heres the catch. All my research shows that everyone is having the same drama.. that SEPC will NOT allow you to do any un-attended or silent removal away from their rubbish product. You can see everyone else who has this product taking their disapproval out on reddit here and here. It's been the worst product since deployment, but has now been announced that they will no longer sell (even exsisting licences/tenants) and are being forced to migrate to SES, shown in this article from Boardcom. Making matters worse, Broadcom don't respond to support emails, their portal is trash and it's the absolute worst timing because of COVID-19. Over the last 6 months, I have searched for scripts, programs, 3rd party tools and nothing has worked to remove SEPC un-attended.. these scripts have worked on other Symantec products but we've been un-successful in modifying it to suit SEPC. So if anyone has an answer where it be script/program/anything to help me out, that would be awesome.. otherwise i'll be needing to manually uninstall SEPC on around 5, 000 devices.. and don't even get me started on what that'll look like. Cheers Guys.
  17. Hi, Just want to check here before we invent the wheel all over again Dose anyone has a script currently been used in CW Automate to compleately uninstall and scrub all Office insallations from a PC? What we want this script to do is: 1. Scrub preinstalled office installation on brand new computers. 2. Scrub old Office installations when we move customers from old OEM office installations to Office365. When we help our customers buying new computers they are often prepered with different Office installations from factory. When we install them for the customer we want a quick and easy way to scrub all the office installations from the PC. Also when we take on a new customer that have used old Office installations we want the transistion to Office 365 to be quick and as much as possible been done "behind the scenes". Anyone have a soultion for this and feel to share? Thanks!
  18. Has anyone been able to give clients access to their own scripts. This is so they can create their own and run there own but not see ones we have been creating/using
  19. I am looking for tweak of some sort for the disable USB port from Automate to allow certain devices. Client has a few users that use Magic Jack and when they tried connecting it to USB, it didn't work since it's USB was disabled. It seems they might be using the older version and doesn't want to pay to upgrade them if possible. I believe it's an all or nothing scenario but thought I'd ask.
  20. We have a monitor that checks if a device has had contact with Automate. If it doesn't have contact after 24 hours it will trigger a script. This script will update an extra data field on the player to 'Offline' and then send us an e-mail. Because this monitor runs every hour and some players are offline for longer we came up with a way to eliminate double e-mails from the same player by getting the value from the extra data field. I'm stuck now at the part where I need to check if the agent status is offline or online. I can't seem to find a variable for it or some other way to get the information I want. I'm no SQL hero but could I perhaps use this: 'Computer.LabTech.IsOnline' with some sort of SQL statement to get the value of offline or online and if so, can someone show me how?
  21. Hello I would like know the easiest way to use Automate to move 50 computer to a new domain and migrate the local user profile to the domain user profile. Maybe there is a script already for this or a series of scripts. If you have done this what advice can you give? Really appreciate your help, thank you!
  22. So I am implementing both Automate and Trend Micro Corp II AV (wfbs) and just thought I would see if anyone has an install script for the Trend Micro Corp II AV. If not I'm sure I can figure it out. Thanks
  23. I am trying to automatically uninstall utorrent, however it's own uninstaller is leaving registry stuff behind, one of them being its entry in the add/remove list in Windows. Automate will still detect it as being installed even though it is not there anymore. My script does the following: Shell Enhanced: taskkill /IM utorrent.exe /F Shell Enahnced: "c:\users\%ComputerUsername%\appdata\roaming\utorrent\utorrent.exe" /UNINSTALL /S The registry key I need to remove is under HKCU: HKCU\Software\Microsoft\Windows\CurrentVersion\Uninstall\uTorrent On the physical machine running cmd as admin I tested successfully reg delete and Powershell, however the same commands in a labtech script will not delete the key and its sub-keys. The Powershell as admin script command I tried: Remove-Item -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\Uninstall\uTorrent -Recurse The Registry Delete Key command I tried: reg delete HKCU\Software\Microsoft\Windows\CurrentVersion\Uninstall\uTorrent /F Any ideas of how I can remove the registry key? Attached the current status of the script in case you need to test. Uninstall uTorrent.xml
  24. Per Title, our ESET Endpoint Antivirus is detecting and quarantining the ProduKey utility used in our Get Product Keys Script. What are some ways you guys have dealt with this?
  25. We are new to automate and are looking for a way to script the installer in solarwind to push out to all of our current clients. i have not been successful at this thus far. any help or guidance is appropriated. Thanks in advance, Frustrated tech
×
×
  • Create New...