Forum Discussion
Add registry keys
Rudy_Ooms_MVP
Thanks for the comment.
Here is the PowerShell script to add the registry keys:
New-Item -Path 'Registry::HKLM\SOFTWARE\Policies\Adobe\Adobe Acrobat\DC\FeatureLockDown\cIPM'
New-ItemProperty -LiteralPath 'HKLM:\SOFTWARE\Policies\Adobe\Adobe Acrobat\DC\FeatureLockDown\cIPM' -Name 'bDontShowMsgWhenViewingDoc' -Value 00000000 -PropertyType DWord -Force -ea SilentlyContinue;
New-ItemProperty -LiteralPath 'HKLM:\SOFTWARE\Policies\Adobe\Adobe Acrobat\DC\FeatureLockDown' -Name 'bIsSCReducedModeEnforcedEx' -Value 00000001 -PropertyType DWord -Force -ea SilentlyContinue;
And here is how I deployed Adobe pro on Intune:
https://tdannecy.me/deploy-adobe-acrobat-pro-dc-with-intune
So how to merge the PowerShell script with win32app?
Is that what your suggestion?
Thanks a lot,
Hi,
I wanted to change the registry key from DWARD=000001 to DWARD=000000 for below registry in Windows OS via Intune so how I can do this via PowerShell?
Can anyone share the script which does this tasks for us?
"PromptOnSecureDesktop"=dword:00000000
- Dec 30, 2023$PromptOnSecureDesktop = (Get-ItemProperty HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\System).PromptOnSecureDesktop
if ($PromptOnSecureDesktop -ne 0) {
$registryPath = "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System\"
$registryKey = "PromptOnSecureDesktop"
$registryValue = 0
try
{
Set-ItemProperty -Path $registryPath -Name $registryKey -Value $registryValue -ErrorAction Stop
$exitCode = 0
}
catch
{
Write-Error -Message "Could not write regsitry value" -Category OperationStopped
$exitCode = -1
}
}