Set-ADTShortcut not playing ball

Hi,

I’m trying to run the following:

Set-ADTShortcut -Path "C:\ProgramData\Microsoft\Windows\Start Menu\TEST.lnk" -TargetPath "C:\Windows\CCM\CMTrace.exe"

Set-ADTShortcut: The specified path does not exist or does not have the correct extension. (Parameter 'Path')

Recommendation: Review the supplied Path parameter value and try again.

I don’t think I’m doing anything wild here, so I’m not sure what’s going on. Any thoughts?

Thanks!

The Set-ADTShortcut modifies an existing shortcut. If it does not exist, you would use New-ADTShortcut.

It’s in the name, isn’t it :man_facepalming: - I’ll get my coat… i knew it was time for a break!

Thank you!