Skip to content

Create a shortcut Run advertised Program

Featured Replies

Hi,

 

Does anyone have any idea to pin the run advertised program (sccm agent) into start menu after Window 7 OSD.

 

Many thanks.

  • Author

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

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"

Join the conversation

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

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.