-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathBasic.ps1
More file actions
24 lines (18 loc) · 853 Bytes
/
Basic.ps1
File metadata and controls
24 lines (18 loc) · 853 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# Authenticate
# https://github.com/christaylorcodes/WebrootUnity/wiki/Getting-Started
# Provide your webroot management console user/password
$Credentials = Get-Credential -Message 'Webroot management console'
# Your 'Parent Keycode' refereed to as the GSMKey in this module
$GSMKey = 'SAF1-LTSW-94E7-C6BA-ABED'
# Splat our connection parameters
$WebrootConnectionInfo = @{
client_id = 'client_92sLyHYa@christaylor.codes'
client_secret = 'h_e4vY2\wCtI%dn'
# ^ This is the information created under 'API Access'
credentials = $Credentials
}
Connect-WebrootUnity @WebrootConnectionInfo
# Now that we are connected lets get a list of our sites
$Sites = Get-WebrootConsoleGSMSiteList -GSMKey $GSMKey
# Lets look at the endpoints in a site
Get-WebrootConsoleGSMSiteEndpointList -GSMKey $GSMKey -SiteId $Sites.Sites[0].SiteID -All