Initial commit for powershell scripts.

This commit is contained in:
mattspeer committed 2026-10-04 10:22:22 -05:00
1 parent f4e5d9dcbd
commit 4fd95b76d6
18 files changed
+1803

No files matched your search

+23
View File
@@ -0,0 +1,23 @@
#!powershell
'''
Created: 2025-01-13
Modified: 2025-01-15
Description: This script will enroll the device into MDM.
'''
Write-Host -ForegroundColor Red "WARNING: This script will enroll the current device into MDM. This is meant for Add Source Group owned devices only. Do you want to continue? (Y/N)"
$answer = Read-Host
if ($answer -ne "Y") {
Write-Output "Exiting script - Device will not be enrolled into MDM"
exit
}
Write-Output "Enrolling device into MDM"
Start-Process -FilePath 'C:\Windows\system32\deviceenroller.exe' -ArgumentList '/c /AutoEnrollMDM'
Write-Host -ForegroundColor Green "Device enrolled script has completed. You can now close this window."