Jump to content
[[Template core/front/profile/profileHeader is throwing an error. This theme may be out of date. Run the support tool in the AdminCP to restore the default theme.]]

Everything posted by TechnicalHero

  1. @p_ern thank you much. Wish I'd though of that! $username = $env:username works a treat. Kind regards,
  2. Is there really no where in the Automate GUI that tells what mapped drives an Agent has? I thought there was. But I now can't find it.
  3. So using some powershell I can search the output for the work "error". But machines that are not syncing all files down to the computer are reporting they are in an error state. Anyone have any suggestions?
  4. Hi @p_ern I've seen that before and it has helped me out. But this time I don't think it does.
  5. Hi All, All I want to do st transfer a .dll from my LTShare to C:\Windows\LTSvc\packages\PowerShellScripts. Seemingly this is a bit tricky. I can transfer it to C:\Users\LocalUser\Downloads\PowerShellScripts using PowerShells "Copy-Item" But I am not going to know the path of "LocalUser". There doesn't seem to be a variable for "User Profile" that I can specify. If there was, then job done. Any idea how I can expose what the current logged in users profile path is and how to then cope ONE FILE to it?! Any assistance would be great appreciated 🙂 Kind regards,
  6. Hi @lgs141 I have got this working on my own laptop. In that the output of the powershell gets pushed to a variable %StatusOutput%. How do I then make the results actionable if the status contains "Error"? Kind regards,
  7. Hi @rami I know it was a while ago (!). But do you happen to still have those examples? Kind regards,
  8. I would like an internal monitor that checks for the ScriptID of my Server Reboot script once and hour and if it finds one it then calls a script which emails my team with the host name that have been scheduled to restart. Maybe even the time. Creating the Internal Monitor and Alert Template is no problem. The SQL below returns a table with all the info I need. I need to pump those results into the body of an email. SELECT pendingscripts.ScriptID, pendingscripts.ComputerID, computers.Name FROM pendingscripts INNER JOIN computers WHERE scriptID = 6003 If I use the Variable Set - SQL function, it only returns the first cell in the table rather than the whole table. How can I get the who list of host names into the body of an email? Kind regards,
  9. Hi Darren, It was me....I was calling the wrong script *slaps face*. Thank you for taking the time to have a look though 🙂 Kind regards,
  10. Hi All, I have a script that starts OneDrive. I can send the script to an agent and it works wonderfully. I then want to monitor OneDrive.exe (the process) and if it is not running, I want it to run my script to start it. I have created a Remote Monitor to look for the OneDrive process. When I kill and start the process on my laptop I can see the Monitor picking it up. All works. But I cannot get my script to run properly from the monitor. On the agent it says it has run, but OneDrive has not started. I have created an Alert Template to run the script which the Monitor is using. Any suggestions as what to check next? Kind regards,
  11. Hi JosephM Thank you for the reply! Script Step 1: Under System Dashboard - Config - Configurations - Additional Fields - I added DOMAINNAME. Field Type: Text. Is that what you mean? Then the statement is: GET: @myDomain@ = [EXTRAFIELD DOMAINNAME] Script Step 2: For testing purposes I have created JoinDomain.ps1 in the packages folder on the computer (I'll copy the file down once I have this working). I also will add renaming the PC hostname later. So my second statement is: Console Shell: C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -ExecutionPolicy Bypass -NoLogo -NonInteractive -command "C:\Windows\LTSvc\packages\JoinDomain.ps1" The script then fails with this message: The reason: ScriptFunctionExtraDataGetValue failed processing query. So I am guessing it is to do with the extra field. In the statement: Extra Field: DOMAINNAME-1 ID: @DOMAINNAME@ Variable: myDomain ....where I have written "myDomain". Any more pointers?! Kind regards,
  12. Hi All, I'm trying to understand what I need to do you get a script that will join a computer to my AD. Ideally I'd like to run the script and the PC joins the domain and is restarted. I had tested a command in PowerShell (Run as Admin) that will join a computer to the domain, however I am prompted for admin credentials. When I try and run (what I believe!) to be the same command through a script it just says the command fails. Here is what I have: Console Shell: net use on %consolenumber% SET: @OutputOfNetUse@ = %Shellresults% Console Shell: c:\windows\system32\windowspowershell\v.1.0\powershell.exe -noprofile -executionpolicy bypass -command "add-computer –domainname mydomain.org -Credential(Get-Credential)" Console Shell: c:\windows\system32\windowspowershell\v1.0\powershell.exe -noprofile -executionpolicy bypass -command "Restart-Computer" I think it would make sense if the credentials were actually the stored credentials within the location of LabTech. If anyone can point me in the right direction it would be greatly appreciated! Kind regards,
  13. Hi All, So basically the below will remove "OneNote" from Windows 10. Thought I'd share.
  14. I have also tried the bypass option. As admin and local. Sod all. I would have thought that any decent RMM solution would be able to handle this pretty easily. I have got support trying (not sure they know what they are doing) to setup access to the LTShare for me, the idea being that I create my one line powershell script, then transfer it to the agent and call it from there. Which does seem long winded when the functionality should work as it is in LabTech.
  15. Hi imurphy, thanks for having a look for me. I have swapped to "powershell command" and it takes longer to run, but the result is the same. Any other suggestions? Kind regards,
  16. Hi, I'd really like to run a simple powershell command as admin to uninstall a load of bloatware that comes with Windows 10. From an elevated PS screen, when I run Get-AppxPackage *Microsoft.Office.Desktop* | Remove-AppxPackage it is uninstalled. However, when I run the below, Automate says the script ran and completed but the app stays on the computer. I am able to run other scripts (for example, installing Chrome). Does anyone have any suggestions?
  17. Hi All, I'd like to monitor failed login attempts. I'd like to know if someone is trying a brute force at either a workstation or server. I already have an account lockout policy, but that is only triggered if an attacker is using a good username. I created a remote monitor to look for Event ID 4625 after turning on logon auditing on via GPO, but I get a million tickets. I really only want a Automate ticket after ten failures in say 5 mins. Has anyone got any better, super flash ideas on how I can do this? Kind regards
  18. Hi All, The SMART monitor is giving me a bit of a headache. I keep getting "DRV - Smart Failures detected on (ClientName/Location/AgentName) Spin up Time on E: is 0" all of these are USB external hard drives, or USB flash drives or SD cards. Is there a way that I can exclude such devices? Secondly, I have some Dell servers with a BOSS card for the OS. All them are reporting SMART errors, has any one else seen this? How did you handle it? Kind regards,
  19. Hi All, Is it possible to identify the source monitor of a ticket within the Service Desk of Automate? Kind regards,
  20. Hi Guys, This looks amazing! I have setup a test location and group. I have put two test servers in the group (manually). One has a degraded RAID the other is fine. I have created two Remote Monitor's. One with the Condition Equals 0 and 2. I added the second monitor results equal 0 for testing. The monitor is set to run hourly. The odd thing is that I am getting get two tickets generated for each server. Even though one of them has no failed disks or any issues. Any ideas where I am going wrong? Also, in the remote monitors data summary I get an error of "exe monitor missing" any help would be fab!
  21. Hi All, I just created a Monitor via the wizard over an agent. When I now click on that Agent and select Monitors - View Monitors - it is not there. Any ideas?
  22. Our LabTech was so slow for a long time. Even using ScreenConnect at times was painful. We went through a removed as many plugins as possible. Since then it has been fine.
  23. I figured this out in the end. There is a script for the job in the _Examples folder. I modified that to remove the Flash .exe after it is removed.
  24. Hi All, I am trying to uninstall Flash from my entire network. I believe there are two approaches. Either run a batch file (from a script) or an actual script and list out the steps. Flash provide a silent uninstaller (flash_uninstaller_player.exe) and if you run it from the command line with -uninstall it will do it silently. It requires admin rights to run. I created the below script which copies the uninstaller from a server share to a new folder on the client PC. It then runs the uninstall_flash_player.exe -uninstall and then deletes the folder that was created. When I run this .bat from my computer, apart from putting in the admin credentials it works perfectly. xcopy \\server\Programs\Software\Scripts C:\FlashUninstall\ TIMEOUT /t 10 "C:\FlashUninstall\uninstall_flash_player.exe" -uninstall ECHO Files Copied and uninstalling TIMEOUT /t 180 RMDIR /S /Q "C:\FlashUninstall" In Labtech I have selected the Script Type to "Batch" and but the above in "script to execute". Script Credentials is set to Run as Admin. Absolutely nothing happens when I run the scrip on a client. Another approach that I have taken is to create the script via LabTech. Target = computer 1. Create Folder as Admin: C:\FlashUninstall 2. Copy File as Admin \\server\Programs\Software\Scripts\uninstall_flash_player.exe to C:\FlashUninstall\uninstall_flash_player.exe 3.EXECUTE as Admin C:\C:\FlashUninstall\uninstall_flash_player.exe -uninstall and return immediately. in this case, the folder C:\FlashUninstall does appear on the client and Adobe Flash is still installed. Also, I cannot delete the newly created folder as "it is is use by another process" even after a reboot. So if anyone can pick the bones out of my problem I would be most grateful! I didn't think that this would be that difficult. Kind regards,
×
×
  • Create New...