Jitesh Modashia
Members
-
Joined
-
Last visited
Reputation Activity
-
Jitesh Modashia got a reaction from Jamie Taylor in HELP - Successfully runs the Enable SSO PowerShell script via Pulseway RMM, but does not execute on the endpointHI All,
I am trying to enable SSO on my endpoint running Windows 10 x64 by running the below PowerShell Script through Pulseway RMM, however the Task runs successfully, but does not execute on the computer and doesn't give me any errors. I have however ran the script on Windows PowerShell ISE locally on the computer and it executes without any problems. Please can someone help me understand why this script will not execute on the endpoint via Pulseway RMM. i have however ran other scripts on my test machine and they work, but for some reason this one doesn't seem to want to execute.
PowerShell Script:
# Set variables to indicate value and key to set
$RegistryPath = 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMap\Domains\microsoftazuread-sso.com\autologon'
$Name     = 'https'
$Value     = '1'
$Path     = 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMap\Domains\microsoftazuread-sso.com\autologon'
# Create the keys if it does not exist
If (-NOT (Test-Path $RegistryPath)) {
 New-Item -Path "$Path" -Force | Out-Null
}
# Now set the value
New-ItemProperty -Path $RegistryPath -Name $Name -Value $Value -PropertyType DWORD -Force
Â
Â