Upload files to "policies"
This commit is contained in:
Binary file not shown.
23
policies/EnableEdgeDirective.ps1
Normal file
23
policies/EnableEdgeDirective.ps1
Normal file
@@ -0,0 +1,23 @@
|
||||
# Define el path del registro para las Políticas de Grupo Locales
|
||||
$RegistryPath = "HKLM:\Software\Policies\Microsoft\Edge"
|
||||
|
||||
# Nombre y valor de la clave para habilitar la página de nueva pestaña
|
||||
$KeyName1 = "NewTabPageLocation"
|
||||
$KeyValue1 = "https://google.com/"
|
||||
|
||||
# Habilitar la directiva para la ubicación de la página de nueva pestaña
|
||||
$KeyName2 = "NewTabPageLocationEnabled"
|
||||
$KeyValue2 = 1
|
||||
|
||||
# Verificar si la ruta del registro existe, si no, crearla
|
||||
if (-not (Test-Path $RegistryPath)) {
|
||||
New-Item -Path $RegistryPath -Force
|
||||
}
|
||||
|
||||
# Establecer la ubicación de la página de nueva pestaña
|
||||
Set-ItemProperty -Path $RegistryPath -Name $KeyName1 -Value $KeyValue1
|
||||
|
||||
# Habilitar la directiva
|
||||
Set-ItemProperty -Path $RegistryPath -Name $KeyName2 -Value $KeyValue2
|
||||
|
||||
Write-Host "Directiva habilitada correctamente. Reinicia Microsoft Edge para aplicar los cambios."
|
||||
15
policies/MDM-FakeEnrollment-Win10.reg
Normal file
15
policies/MDM-FakeEnrollment-Win10.reg
Normal file
@@ -0,0 +1,15 @@
|
||||
Windows Registry Editor Version 5.00
|
||||
|
||||
; # Fake MDM-Enrollment - Key 1 of 2 - let a Win10 Machine "feel" MDM-Managed
|
||||
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Enrollments\FFFFFFFF-FFFF-FFFF-FFFF-FFFFFFFFFFFF]
|
||||
"EnrollmentState"=dword:00000001
|
||||
"EnrollmentType"=dword:00000000
|
||||
"IsFederated"=dword:00000000
|
||||
|
||||
; # Fake MDM-Enrollment - Key 2 of 2 - let a Win10 Machine "feel" MDM-Managed
|
||||
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Provisioning\OMADM\Accounts\FFFFFFFF-FFFF-FFFF-FFFF-FFFFFFFFFFFF]
|
||||
"Flags"=dword:00d6fb7f
|
||||
"AcctUId"="0x000000000000000000000000000000000000000000000000000000000000000000000000"
|
||||
"RoamingCount"=dword:00000000
|
||||
"SslClientCertReference"="MY;User;0000000000000000000000000000000000000000"
|
||||
"ProtoVer"="1.2"
|
||||
23
policies/NewTabPageLocation.ps1
Normal file
23
policies/NewTabPageLocation.ps1
Normal file
@@ -0,0 +1,23 @@
|
||||
# Define the registry path
|
||||
$RegistryPath = "HKCU:\Software\Policies\Microsoft\Edge"
|
||||
|
||||
# Define the name and value of the registry key
|
||||
$KeyName = "NewTabPageLocation"
|
||||
$KeyValue = "https://google.com/"
|
||||
|
||||
# Check if the registry path exists, if not, create it
|
||||
if (-not (Test-Path $RegistryPath)) {
|
||||
New-Item -Path $RegistryPath -Force
|
||||
}
|
||||
|
||||
# Set the registry key value
|
||||
Set-ItemProperty -Path $RegistryPath -Name $KeyName -Value $KeyValue
|
||||
|
||||
# Define another key to enforce the policy
|
||||
$KeyName2 = "NewTabPageLocationEnabled"
|
||||
$KeyValue2 = 1
|
||||
|
||||
# Set the registry key for enforcing the policy
|
||||
Set-ItemProperty -Path $RegistryPath -Name $KeyName2 -Value $KeyValue2
|
||||
|
||||
Write-Host "Registry key created successfully. Please restart Microsoft Edge for changes to take effect."
|
||||
Reference in New Issue
Block a user