Set-ActiveSetup

Hi,
I’m trying to use active setup to disable SSMS automatic updates but it is not working. trying this
Set-ActiveSetup -StubExePath ‘C:\Program Files (x86)\Common Files\SomeFolder\SSMS\SSMS19156\DisableUpdates.ps1’ -Description ‘Disable SSMS Autoupdate’ -Key ‘DisableUpdateSSMS’ -ExecuteForCurrentUser $true
but when I open SSMS the update is still active.


I put my ps file in files folder.

The key is created but not ran for user
Can someone tell me how to use Set-ActiveSetup
and tell me how to delete with -PurgeActiveSetupKey

You need to look at that script to see what it does. If it requires privileges, unless all your users are admins, ActiveSetup isn’t the right approach here.

The package is deployed via Intune so Yes it has rights. I finally figured it out, thanks all
Copy-File -Path “$dirSupportFiles*.*” -Destination "C:\Program Files (x86)\Common Files\BDC\SSMS\SSMS19156"
Set-ActiveSetup -StubExePath ‘C:\Program Files (x86)\Common Files\SomeFolder\SSMS\SSMS19156\DisableUpdates.ps1’ -Description ‘Disable SSMS Autoupdate’ -Key ‘DisableUpdateSSMS’ -ExecuteForCurrentUser $true
and to remove Set-ActiveSetup -Key ‘DisableUpdateSSMS’ -PurgeActiveSetupKey