Jump to content

Jitesh Modashia

Members
  • Posts

    1
  • Joined

  • Last visited

Reputation Activity

  1. Like
    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 endpoint   
    HI 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
     
     
×
×
  • Create New...