forked from DeploymentResearch/DRFiles
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added script for Intune Client Software
- Loading branch information
Showing
1 changed file
with
22 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#---------------------------------------------------------------------------- | ||
# Purpose: Used to install the Microsoft Intune Client Software in a reference image | ||
# | ||
# Version: 1.0 - March 21, 2017 - Johan Arwidmark | ||
# | ||
# Twitter: @jarwidmark | ||
# Blog : http://deploymentresearch.com | ||
# | ||
# Disclaimer: | ||
# This script is provided "AS IS" with no warranties, confers no rights and | ||
# is not supported by the authors or Deployment Artist. | ||
#---------------------------------------------------------------------------- | ||
|
||
# Copy the Microsoft Intune Setup files locally | ||
Copy-Item .\Microsoft_Intune_Setup.exe "C:\Windows\Temp" | ||
Copy-Item .\MicrosoftIntune.accountcert "C:\Windows\Temp" | ||
|
||
# Create a registry key to specify that the Intune client installation is pending registration in the cloud | ||
Reg.exe add HKEY_LOCAL_MACHINE\Software\Microsoft\Onlinemanagement\Deployment /v WindowsIntuneEnrollPending /t REG_DWORD /d 1 | ||
|
||
# Run the Installer locally with the argument /PrepareEnroll | ||
& C:\Windows\Temp\Windows_Intune_Setup.exe /PrepareEnroll |