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
    • Announcements
    • 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 44 results

  1. 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!
  2. 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.
  3. 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!
  4. Version 1.0.4

    587 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.
  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. 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
  7. Version 2.5.0

    334 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.
  8. 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  
  9. 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.
  10. 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?
  11. 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!
  12. 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
  13. 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
  14. 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?
  15. 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
  16. I needed a way to pull the list of "failed" files from the gigantic CrashPlan client logs, and to do so without downloading several gigs of logs locally and eyeballing it myself. So, coupled with the "opportunity" to learn more about how to wrangle things in PowerShell, I have created the attached TESTING script. In a nutshell, it performs the following steps: Checks if the backup_files.log.0 exists in the CP log directory under ProgramData and emails the tech who ran the script a DIR of the directory if it's missing (then bails). Makes a "today's date" variable in a format matching what's in the log. Parses log looking for lines with today's date, twice. Once to pull the timestamp of the latest job run, once to pull the number of failed files in that job. Generates a "working" (just the desired date/time lines) copy of the log file in %tempdir% and parses that for the lines with the actual failed files. (Upon later runs, the working file is checked for and deleted first.) Emails the resulting info to the tech who ran the script. Note that if you do play with this, you should obviously season it to taste. I merely figured somebody somewhere might get some value out of the day I have just spent chasing down syntax errors... CrashPlan Job Log Reporter (TESTING).xml
  17. I am trying to write a script to install Skype for business on various computers. I have manually ran the install files and commands on a test computer and Skype installs just fine. However when I try to run a labtech script it will download the necessary files just fine but the script will freeze when it needs to run the powershell commands.I have attached a screenshot of what I have right now. Please note that I am fairly new to scripting in labtech.
  18. Hello all, I fairly new to labtech/automate, so forgive me if this question has been asked many times over. There is a service for our softphone system that randomly stops on some workstations. The service then need to be started via cmd or manually for the program to then work. I would like to set up a script and alert that would start this service if found to be stopped. Is there a simple way to set this up? Thanks for your help.
  19. I have created a PS script that I want to run daily on X number of servers spread across X number of companies/clients Is there a way to mass-target these servers? I would like to avoid running the script globally as I don't want it to be run on all servers, only the ones I select
  20. So I am new to scripting in Automate. I have ran into the issue of not being able to get a simple VBScript messagebox to open using the scripting interface in Automate. I have discovered the issue to be related to the "logged in user". I have been unable however to figure out how to determine the current user in a way that I can actually apply it to getting the script to run properly. I found this blog post https://gavsto.com/running-programs-scripts-as-a-logged-in-user-in-a-labtech-automate-script/, but I am still not able to figure out how to apply this to running a VBScript as there is no where to say run on %consolenumber% under the vbscript options. All I see are the Function: Execute Script, Script Type: VBScript, the Script to Execute (copied and pasted from my visual studio code editor), Script Parameters, credentials, and its output Variable name. Can someone please point me in the correct direction?
  21. So we need to set a custom maintenance window for one of the locations for one of our clients. We need a window from 5pm to 12am every first and third Sunday. I have never written a script for Automate before so I am not even sure where to start. Has anyone done anything like this before? Is this even possible? Thanks!
  22. My Script that i wrote for Automate deploys a ps1 file and runs it as admin. But the script appears to run under Local admin credentials because "$env:LogonServer" doesn't expand to the actual logon server for the site. It expands to "C:\" The reason im using this approach is that i want the script to be compatible for all our client sites. The domain admin credentials are in the sites "Passwords" section and all the defaults are set to run things under those credentials but i still cant get that variable to expand properly
  23. Hey Guys! Has anyone had any luck creating an agent uninstaller script for Mac endpoints?
  24. I have been trying to figure out how to run a script that will append an entry to the existing hosts file I created a .bat file that does it perfectly, but am not sure how to get it to pull from LT and run on the agent. The issue we are having is several Windows 7 machines at a client keep getting the "Yellow Triangle" because of OpenDNS. Mostly doesnt cause a problem, except for Microsoft products stop working properly (https://support.umbrella.com/hc/en-us/articles/230900948-Umbrella-Roaming-Client-Microsoft-Windows-Limited-Network-Connectivity-Warning-Yellow-Triangle-)
  25. This would be our "perfect" RDS script anyway. AT least a start... Anyone have a great reboot script for RDS servers? Looking to have a scheduled reboot once a week, during this reboot we'd like to notify/remind the users of the reboot before it occurs. If possible, also reload applications/documents that they were working on before the reboot (if they do not save and close beforehand). Any help would be great, thanks in advance!
×
×
  • Create New...