This file contains 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
<characteristic type="com.airwatch.android.androidwork.app:com.vmw.appconfig" uuid="2bac235c-03b6-4ea7-a94c-079f5a8bc343"> | |
<parm name="VALUE1" value="ExampleValue" /> | |
<parm name="URL" value="https://www.vmware.com" /> | |
<parm name="ENVIRONMENT" value="PROD" /> | |
<parm name="SERIALNUM" value="{{DeviceSerialNumber}}" /> | |
<parm name="USERNAME" value="{{EnrollmentUser}}" /> | |
</characteristic> |
This file contains 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
package com.vmware; | |
import okhttp3.OkHttpClient; | |
import okhttp3.Request; | |
import okhttp3.Response; | |
import java.io.IOException; | |
public class restexample { | |
public static void main(String[] args) { |
This file contains 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
package com.vmware; | |
public class restexample { | |
public static void main(String[] args) { | |
} | |
} |
This file contains 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
public static void main(String[] args) { | |
} |
This file contains 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
curl -X POST | |
--header 'Content-Type: application/json' \ | |
--header 'Accept: application/json;version=2' \ | |
--header 'Authorization: Basic SGF3YWlpNG1l' \ | |
--header 'aw-tenant-code: a/D3ariE08ltuYjgecv2jnW/mi41in3lYUd9vHlK0hk=' \ | |
-d '{ \ | |
"AndroidForWorkWifiList": [ \ | |
{ \ | |
"ServiceSetIdentifier": "devtest", \ | |
"SecurityType": "WPA", \ |
This file contains 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
{ | |
"AndroidForWorkWifiList": [ | |
{ | |
"ServiceSetIdentifier": "devtest", | |
"SecurityType": "WPA", | |
"Password": "12345678", | |
"SetAsActiveNetwork": true, | |
"HiddenNetwork": false, | |
"EnterprisePassword": "12345678" | |
} |
This file contains 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
{ | |
"AndroidForWorkWifiList": [ | |
{ | |
"ServiceSetIdentifier": "devtest", | |
"SecurityType": "WPA", | |
"Password": "*****", | |
"SetAsActiveNetwork": true, | |
"HiddenNetwork": false, | |
"EnterprisePassword": "*****" | |
} |
This file contains 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
curl --location --request GET 'https://ws1.ryanpringnitz.com/API/mdm/profiles/86' \ | |
--header 'Accept: application/json;version=2' \ | |
--header 'Authorization: Basic SGF3YWlpNG1l' \ | |
--header 'aw-tenant-code: a/D3ariE08ltuYjgecv2jnW/mi41in3lYUd9vHlK0hk=' \ |
This file contains 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
$VerbosePreference = "Continue" | |
$script:Credentials = Get-Credential | |
Try { | |
$script:Username = $credentials.username | |
$script:Password = $credentials.GetNetworkCredential().password | |
} | |
Catch { | |
$_.Exception.Message | |
Continue | |
} |
This file contains 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
$VerbosePreference = "Continue" | |
$script:config = "config.ini" | |
Write-Verbose -Message "The username is in the format domain\samAccountName" | |
function Test-APICred { | |
[CmdletBinding()] | |
[OutputType([String])] | |
Param ( | |
[Parameter( | |
Mandatory = $true, | |
ValueFromPipeLine = $true, |
NewerOlder