-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSettings.ps1
28 lines (22 loc) · 1.14 KB
/
Settings.ps1
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
# To connect to Intune, you need an App Registration with a secret for third party to identify. Then add the IDs and Secret below.
# Needs the following permissions:
# Microsoft Graph -> Application Permissions ->
# DeviceManagementConfiguration.ReadWrite.All
# DeviceManagementManagedDevices.ReadWrite.All
# DeviceManagementServiceConfig.ReadWrite.All
[string]$TenantId = "XXXXXXXX"
[string]$AppId = "XXXXXXX"
[string]$AppSecret = "XXXXXXXXXXXXXXXXXP"
# Assign the Group Tag to device.
[String]$GroupTag = "YOUR GroupTag"
# Wait for the Group Tag to be assigned before continuing, default is $true. ($true|$false)
[String]$Assign = $true
# Assign a User to a device. Type the full UPN.
[String]$AssignedUser = ""
# To connect to Wifi, you need to export a profile and save it on the USB.
# Run this command to export the profile: netsh wlan export profile name="YourWiFi" folder="C:\path\to\save\profile"
# Make sure this profile xml file has the same name as your SSID.
# Then just type the SSID here.
[string]$Wifi = "Your Wifi SSID"
# If you want to output the hardware hash somewhere, put a path here.
[String]$OutputFile = ""