Jump to content

TechnicalHero

Members
  • Content Count

    32
  • Joined

  • Last visited

Everything posted by TechnicalHero

  1. I have a program that has to be run as a logged in user. I have a script that will run the app when they are logged in, but is there a way that I can create a script that will log a "user" into a computer? This would also be useful for setting up computers. Kind regards,
  2. Afternoon MSPGeeks, I have a system that is split accross 4 Virtual Servers. Each VM has about 4 services that are required for my app to run. Once in a while I need to restart it, but I dont want to restart the VMs, the services have to be started in a partiuclar order. If I create a script to do that for Server1, is it possible to call another script which will do the same thing but on server2, then server3 etc. Or, should I really be looking at running the script on Server1 which runs a bunch of powershell scripts remotely on server2, server3 then server4? Kind regards,
  3. @Joe.McCall thank you very, very much. Changing to Shell did the trick.
  4. Hi All, Has anyone had any luck with getting a script to initiate a driver check for Dell Command Update 3.0.1? It looks like all the CLI commands from version 2 have been removed. Kind regards,
  5. Hi All, I am trying to install office via the Office Deployment Tool. From a Console Shell, when I run "C:\ODT\ODT\setup.exe /configure C:\ODT\ODT\Configuration.xml" the test computers UAC prompts yes/no. Does anyone know how I can get it to select YES or for UAC not to prompt? Kind regards,
  6. @Dave M Absoutely. I can't think why MS wouldn't have some kind of tool or feature built in to the client out the box for this. If you ever come up with something please do share!
  7. @Dave M I did get this going. I had two monitors. One that checked that OneDrive.Exe is actually running as a process. As on W7 it will just randomly stop. I then had another script that twice daily would import the above OneDrive.dll and check the result. If the result was "failed" it would then send an email and create a ticket so then my helpdesk crew could ring the user and be a hero. However, we then started deploying W10. The OneDrive client is WAY more reliable in W10. Massive improvement. So all we were getting was false positives. I don't think the OneDrive.dll was written for W10 and as such I wouldn't say it worked properly (I guess hence all the false positives). Since we are now 80% W10 I have turned it all off. So my advice would be to get all your machines onto W10! I would still love to have something that monitored the status of SharePoint Online folders but I cannot find anthing that will do it with W10 accurately.
  8. @p_ern thank you much. Wish I'd though of that! $username = $env:username works a treat. Kind regards,
  9. 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.
  10. 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?
  11. Hi @p_ern I've seen that before and it has helped me out. But this time I don't think it does.
  12. 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,
  13. 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,
  14. Hi @rami I know it was a while ago (!). But do you happen to still have those examples? Kind regards,
  15. 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,
  16. 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,
  17. 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,
  18. 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,
  19. 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,
  20. Hi All, So basically the below will remove "OneNote" from Windows 10. Thought I'd share.
  21. 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.
  22. 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,
  23. 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?
  24. 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
  25. 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,
×
×
  • Create New...