ysleong Posted November 3, 2011 Report post Posted November 3, 2011 Hi, Does anyone have any idea to pin the run advertised program (sccm agent) into start menu after Window 7 OSD. Many thanks. Quote Share this post Link to post Share on other sites More sharing options...
0 Jorgen Nilsson Posted November 3, 2011 Report post Posted November 3, 2011 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 1 Quote Share this post Link to post Share on other sites More sharing options...
0 ysleong Posted November 3, 2011 Report post Posted November 3, 2011 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 Quote Share this post Link to post Share on other sites More sharing options...
0 Peter33 Posted November 7, 2011 Report post Posted November 7, 2011 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" Quote Share this post Link to post Share on other sites More sharing options...
Hi,
Does anyone have any idea to pin the run advertised program (sccm agent) into start menu after Window 7 OSD.
Many thanks.
Share this post
Link to post
Share on other sites