Professional Documents
Culture Documents
Onedrive: Jesús Octavio Rodríguez
Onedrive: Jesús Octavio Rodríguez
Onedrive: Jesús Octavio Rodríguez
Archivos de ejercicios
Esta hoja de ejercicios pertenece al curso « Microsoft Intune y Autopilot
esencial » de https://www.linkedin.com/learning
#Guardar con extensión .PS1
#######################################################################
###########################
<#
.SYNOPSIS
Policy Definition template file for Intune to run with the Microsoft Intune Management
Extention
This policy setup OneDrive For Business with AutoConfigure and KFM
.NOTES
FileName: OneDrive for Business Configure.ps1
Author: Per Larsen
Created: 11-07-2018
Product: OneDrive for Business
Version: 1.0
#>
#######################################################################
############################
$TenantID = «cf452018-792d-4227-af1a-66f280f9c30c»
$registryPath = «HKLM:\SOFTWARE\Policies\Microsoft\OneDrive»
$Name = «SilentAccountConfig»
$value = «1»
IF(!(Test-Path $registryPath))
{
New-Item -Path $registryPath -Force | Out-Null
New-ItemProperty -Path $registryPath -Name $name -Value $value `
-PropertyType DWORD -Force | Out-Null}
ELSE {
New-ItemProperty -Path $registryPath -Name $name -Value $value `
-PropertyType DWORD -Force | Out-Null}
$registryPath = «HKLM:\SOFTWARE\Policies\Microsoft\OneDrive»
$Name = «FilesOnDemandEnabled»
$value = «1»