-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathconfig.ps1.template
More file actions
60 lines (49 loc) · 1.98 KB
/
config.ps1.template
File metadata and controls
60 lines (49 loc) · 1.98 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# JAMF Assignment Checker Configuration Template
# Copy this file to 'config.ps1' and fill in your JAMF Pro credentials
<#
AUTHENTICATION METHODS:
1. Basic Authentication (Username/Password):
- Fill in Username and Password fields
- Leave ClientId and ClientSecret empty or commented out
2. OAuth Authentication (Client Credentials):
- Leave Username and Password empty or commented out
- Fill in ClientId and ClientSecret fields
The script will automatically detect which authentication method to use based on available credentials.
#>
$script:Config = @{
# JAMF Pro Server URL (include https:// or it will be added automatically)
# Example: "https://company.jamfcloud.com" or "company.jamfcloud.com"
BaseUrl = "https://your-server.jamfcloud.com"
# Basic Authentication (Username/Password)
Username = "" # Leave empty if using OAuth credentials
Password = "" # Leave empty if using OAuth credentials
# OAuth Authentication (Client Credentials)
# Uncomment the lines below and comment out Username/Password to use OAuth
ClientId = "" # Fill if using OAuth credentials
ClientSecret = "" # Fill if using OAuth credentials
# Other Configuration
ApiVersion = "classic" # Use 'classic', 'v1', 'v2', or 'v3'
DataFolder = "C:\JamfReports" # Default output path for reports
}
# Optional: Environment-specific configurations
# Uncomment and modify as needed
# Development Environment
# $DevConfig = @{
# BaseUrl = "dev-jamf.company.com"
# Username = "dev_user"
# Password = "dev_password"
# ClientId = ""
# ClientSecret = ""
# ApiVersion = "classic"
# OutputPath = "C:\JamfReports\Dev"
# }
# Production Environment
# $ProdConfig = @{
# BaseUrl = "prod-jamf.company.com"
# Username = ""
# Password = ""
# ClientId = "prod_client_id"
# ClientSecret = "prod_client_secret"
# ApiVersion = "classic"
# OutputPath = "C:\JamfReports\Prod"
# }