This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # The following parameters are pulled directly from the "Parameter Values" section of your Backblaze deployment policy. | |
| # Please make sure they are filled out respectively prior to your push | |
| computername="$2" | |
| username="$3" | |
| groupid="$4" | |
| grouptoken="$5" | |
| email="$6" #If email is entered in parameters, script will skip over using JAMF API, make sure related password is entered as well | |
| region="$7" #Specify if account is to be deployed in specific region [us-west or eu-central] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| param( | |
| [string] $groupID = "", | |
| [string] $groupToken = "", | |
| [string] $userEmail = "", | |
| [string] $workingDirectory, | |
| [string] $uninstall = "false" | |
| ) | |
| #Create log if it doesnt already exist | |
| $LOGNAME = "Backblaze Powershell Deployment" |