Jump to content

Search the Community

Showing results for tags 'access denied'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • MSPGeek
    • Announcements
    • The Geek Cast
  • 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 2 results

  1. I am having issues with a File Download operation in a script. I've pulled out the 4 lines that copy the file for testing purposes. LabTech server shell execute cmd.exe /c dir / b "%lltshare%\Transfer\Software\ESET\FileSecurity" | find "File_Security_Installer" SET: @FileName@ = %shellresult% Create Folder as Admin: C:\Windows\LTSvc\packages\eset\FileSecurity DOWNLOAD: /Labtech/Transfer/Software/ESET/FileSecurity/@FileName@ saved to C:\Windows\LTSvc\packages\eset\filesecurity\@FileName@ All works, except for the last line. Below is the script output: IF F1 T: 1.3674454 L2 F181 Command (P1): cmd.exe T: 1.3674454 L3 F20 SetType(P1):1 Parameter(P2):'AiO_File_Security_Installer.ex...' VariableName(P3):FileName T: 2.0798917 L4 F155 Folder (P1): C:\Windows\LTSvc\packages\eset\FileSecurity T: 2.0798917 L5 F28 Local (P1): Software\ESET\FileSecurity\AiO_File_Security_Installer.exe Destination (P2): 'C:\Windows\LTSvc\packages\eset\filesecurity\AiO_File_Securit...' T: 167.3284872 L6 F29 Message (P1): 'ERR Access Denied writing to Local File C:\Windows\LTSvc\packages\eset\filesecurity\AiO_Fi...' T: 185.380119 The script finds the file named 'AiO_File_Security_Installer.exe' and sets the variable @fileName@ successfully, but the actual file download operation fails with Access Denied. The interesting part is that if I change the last line of the script to a non-variable file name then the file download works fine. Example: from: DOWNLOAD: /Labtech/Transfer/Software/ESET/FileSecurity/@FileName@ saved to C:\Windows\LTSvc\packages\eset\filesecurity\@FileName@ -to- DOWNLOAD: /Labtech/Transfer/Software/ESET/FileSecurity/@FileName@ saved to C:\Windows\LTSvc\packages\eset\filesecurity\MyFileName.exe The Deployments & Defaults tab has an Administrator account entered. Any guidance would be helpful. Thanks - Steve
  2. Hello, I'm having a lot of issues around security access denied messages lately. I've beaten myself up every which way with UAC, and enabling the local token filter policy in the registry. Attempting to use wmic commands, powershell (ver 2 and ver3) and keep getting hit with the access denied, return code 5, etc. When you run a command from the Tools - CMD prompt, I need to know - does this actually run from the local agent, and therefore as a 'local' command, or does it actually run from another machine, and therefore is 'remote'?? I have been trying to use this method to test out the commands lately, since they also fail from the script. Running them from the cmd tools menu is faster that re-editing the script each failure. What am I actually trying to run? A simple rename computer command. I've tried several variants of it. The only one I have NOT tried yet, is to use one that allows me to also submit the domain credentials for an account authorized to change the PC's hostname on a domain. On this note, is there a way to pass the domain credentials into the powershell script using the labtech script parameters? So that a tech can be required to enter in the needed credentials each time the script is run? (I was trying to turn the PS commands I found for this into a single line. Could be that is where I'm going wrong here.) I tried using -DomainCredential, followed by manually entering in domain\user, password, but this failed as well. I have seen some 3 line code examples that break down the -DomainCredential into pieces, and then concatenates them together - the only direction I haven't tried, that I have seen. This was my last attempt, from the tools cmd: %windir%\system32> ~RENAME-COMPUTER admin10 -force -PassThru RENAME-COMPUTER : Fail to rename computer 'admbx10' to 'admin10' due to the following exception: Access is denied. At line:1 char:1 + RENAME-COMPUTER admin10 -force -PassThru + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : OperationStopped: (admbx10:String) [Rename-Compu ter], InvalidOperationException + FullyQualifiedErrorId : FailToRenameComputer,Microsoft.PowerShell.Comman ds.RenameComputerCommand HasSucceeded OldComputerName NewComputerName ------------ --------------- --------------- False admbx10 admin10 Any tips? Thanks in advance.
×
×
  • Create New...