Jump to content


Create a shortcut Run advertised Program

Recommended Posts


Have a look at this powershell script, I use it to PIN other shortcuts, haven't tried with the RAP but it should work just fine.





  • Like 1

Share this post

Link to post
Share on other sites

Hi Jorgen,


Thanks for your help. But when i try to run this powershell script keep prompt with the error as below :-


PS C:\Users\ysleong> Export-ModuleMember Set-PinnedApplication

Export-ModuleMember : The Export-ModuleMember cmdlet can only be called from inside a module.

At line:1 char:20

+ Export-ModuleMember <<<< Set-PinnedApplication

+ CategoryInfo : PermissionDenied: (:) [Export-ModuleMember], InvalidOperationException

+ FullyQualifiedErrorId : Modules_CanOnlyExecuteExportModuleMemberInsideAModule,Microsoft.PowerShell.Commands.Expo




Do you have any idea coz i'm not really familiar with the powershell script. :(



Share this post

Link to post
Share on other sites

comment or delete the following line

#Export-ModuleMember Set-on

At the end of the script add a line like this and replace the exe with your application.

Set-PinnedApplication -Action PinToStartMenu -FilePath "C:\WINDOWS\system32\notepad.exe"

Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...