Kaseya Community

Agent procedure

  • Hi-

    I have a basic agent procedure but for some reason not able to get the right result.

    I am looking to crate a directory/folder under this path: c:\Windows\system32\config\systemprofile\AppData\Local.

    Here is my procedure:

     useCredential('All Operating Systems","Halt on Fail")

    New-Item -ItemType Directory -Path "c:\Windows\system32\config\systemprofile\AppData\Local\TileDataLayer\"

    Procedure is reported as successful but the folder/directory is not created.

    Any feedback on this will be greatly appreciated.

  • Could you export and post the actual Agent procedure as we can look at the actual makeup/syntax etc  of the script

  • Two suggestions, use Powershell as System and remove the trailing '\'.  You can also send the results of the command to #global:psresult# and then look at the contents in the documents tab to determine what really happened. :)