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,
- VinodS2020Dec 29, 2023Brass Contributor
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
}
}
- Feb 08, 2023after thew new-item... add:
.\setup.exe /sAll
If you add that powershell script to the same folder as that exe file and convert it to an intunewinfile, you could also call up on this powershell script as install command
so instead of that install command in intune, change it to execute the powershell script- admin-CPHFeb 09, 2023Brass Contributor
Rudy_Ooms_MVP
The install command is : msiexec /i AcroPro.msi /qDo you mean to add the script as a file to the folder before I convert it to exe?
If yes, How to call the script in the install command?
Thanks
- Feb 09, 2023Yep.... thats what I was trying to explain
the install command should look something like this
powershell.exe -executionpolicy Bypass -file .\add-reg-key-adobe.ps1