Jump to content

Brandonn

Members
  • Posts

    2
  • Joined

  • Last visited

Posts posted by Brandonn

  1. On 4/25/2023 at 11:12 AM, Richard Davis said:

    Hi.

    Can you repost your images I can not see them. 

    Thanks,

    Richard

    They should be there now.

    Maybe wrap the huntress install script in a function that passes all the relevant information?

    I did some more testing, and you can include the arguments if you are just running the script normally, but since you cannot include additional arguments when running the script through Pulseway, they will have to be manually added to the script.

    I believe this would work.

    function Install-Huntress {
    
    	param (
    		[string]$acctkey,
    		[string]$orgkey,
    		[string]$tags,
    		[switch]$reregister,
    		[switch]$reinstall,
    		[switch]$uninstall,
    		[switch]$repair
    	)
    
    
    # Rest of the code
    return "$acctkey - $orgkey - $tags - $reregister - $reinstall - $uninstall - $repair"
    }
    
    Install-Huntress -acctkey 1234 -orgkey 5678 -tags "tag1" -reregister $true -uninstall $false -repair $false

     

×
×
  • Create New...