Dear Team,
You can trigger a RemoteApp and Desktop Connections update via PowerShell by calling the built-in COM API, because there’s no native PowerShell cmdlet for it.
Example:
Co
$wsMan = New-Object -ComObject "TSWorkspace.Workspace"
$wsMan.Refresh()
Or, if you have multiple feeds and want to refresh them all:
$feeds = New-Object -ComObject "Microsoft.ManagementConsole.Advanced.TSWorkspace"
$feeds.RefreshWorkspaces()
If COM isn’t available, you can also invoke the update task directly:
schtasks /run /tn "\Microsoft\Windows\Workplace Join\Automatic-Device-Join"
schtasks /run /tn "\Microsoft\Windows\RemoteApp and Desktop Connections Update\WorkSpaceUpdateTask"
That WorkSpaceUpdateTask
is what tsworkspace.dll
ultimately calls, and it works for existing WorkResources without re-adding them.
Best Regards,