Jump to content


  • 0
ysleong

Create a shortcut Run advertised Program

Question

3 answers to this question

Recommended Posts

  • 0

Hi,

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.

http://gallery.technet.microsoft.com/scriptcenter/b66434f1-4b3f-4a94-8dc3-e406eb30b750

 

Regards,

Jörgen

  • Like 1

Share this post


Link to post
Share on other sites

  • 0

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

rtModuleMemberCommand

<<<<<<<<<<<<<<<<

 

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

 

Thanks

Share this post


Link to post
Share on other sites

  • 0

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.

Guest
Answer this question...

×   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.

Loading...


×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.