tag:blogger.com,1999:blog-3900239349007510941.post7058843832734540047..comments2022-03-27T22:53:56.483-04:00Comments on Yeah, SCCM Can Do It.: Ever wish you could just link to an install in the AppCatalog?Unknownnoreply@blogger.comBlogger5125tag:blogger.com,1999:blog-3900239349007510941.post-50384829449931951812015-05-01T14:11:34.284-04:002015-05-01T14:11:34.284-04:00Nice! I've seen something like that around. I&...Nice! I've seen something like that around. I'm going to be working a few things together for a neat little tool pretty soon.JDWhttps://www.blogger.com/profile/13916249244517007644noreply@blogger.comtag:blogger.com,1999:blog-3900239349007510941.post-75727334118410524992015-04-09T08:47:18.892-04:002015-04-09T08:47:18.892-04:00Great article- thanks Jweinberg. If it's usefu...Great article- thanks Jweinberg. If it's useful to anyone, you can also grab that ScopeID.... string (the "ModelName") for a given app from SCCM using PowerShell. Something like this works for me-<br />#Load the SCCM PowerShell module<br />Import-Module 'C:\Program Files (x86)\Microsoft Configuration Manager\AdminConsole\bin\ConfigurationManager.psd1'<br />#Connect to my SCCM site (P01 is my site code)<br />cd P01:<br />#Get the ModelName for Acrobat<br />(get-cmapplication -name "Adobe Acrobat XI").ModelName<br /><br />Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-3900239349007510941.post-35572646991584319732015-04-03T13:07:04.650-04:002015-04-03T13:07:04.650-04:00First! Welcome to the world of PowerShell!
Copy t...First! Welcome to the world of PowerShell!<br /><br />Copy the code above to the clipboard, and paste it into Powershell_ISE. It should be 104 lines in length.<br /><br />Save the file as "SCCMDeepLinkConverter.ps1"<br /><br />Above I described myself as lazy, because in my file, line 105 reads:<br /><br />"encode ScopeId_092F8226-C53D-442B-BA21-C4E670C66ECF/Application_d160e6e0-7ac2-41b4-9f12-525a2ce274d2"<br /><br />So when I hit Run Script (F5), it spits out in the command window (blue with a prompt):<br /><br />"530063006F0070006500490064005F00300039003200460038003200320036002D0043003500330044002D0034003400320042002D0042004100320031002D00430034004500360037003000430036003<br />6004500430046002F004100700070006C00690063006100740069006F006E005F00640031003600300065003600650030002D0037006100630032002D0034003100620034002D0039006600310032002D<br />00350032003500610032006300650032003700340064003200"<br /><br />Then you add that to:<br /><br />https://Contoso/CMApplicationCatalog/#/SoftwareCatalog/AppDetails/<br /><br />Resulting in:<br />https://Contoso/CMApplicationCatalog/#/SoftwareCatalog/AppDetails/530063006F0070006500490064005F00300039003200460038003200320036002D0043003500330044002D0034003400320042002D0042004100320031002D004300340045003600370030004300360036004500430046002F004400650070006C006F0065006E007400700065005F00640031003600300065003600650030002D0037006100630032002D0034003100620034002D0039006600310032002D00350032003500610032006300650032003700340064003200<br /><br />Now. The nicer, cleaner way to do this, is this. Delete that line 105 starting with Encode. Save the file.<br /><br />Close Powershell_ISE.<br /><br />Open Powershell_ISE.<br /><br />In the Command Window below in PowerShell_ISE, navigate to where you saved "SCCMDeepLinkConverter.ps1" then type (no quotes):<br /><br />". .\SCCMDeepLinkConverter.ps1"<br /><br />You will get your prompt again. Then type:<br /><br />"encode ScopeId_092F8226-C53D-442B-BA21-C4E670C66ECF/Application_d160e6e0-7ac2-41b4-9f12-525a2ce274d2"<br /><br />Magically you will then get the full long string of numbers again.<br /><br />The command "encode" will be available so long as you keep the PowerShell session open. You can add that function to your installation of ISE by adding it to your Profile.<br /><br />Read this to get some information about dot sourcing: http://blogs.technet.com/b/heyscriptingguy/archive/2009/12/23/hey-scripting-guy-december-23-2009.aspxJDWhttps://www.blogger.com/profile/13916249244517007644noreply@blogger.comtag:blogger.com,1999:blog-3900239349007510941.post-84661006107440031232015-04-03T05:07:25.001-04:002015-04-03T05:07:25.001-04:00Where you did the change in script to run please ...Where you did the change in script to run please let me know as I am new to shell scripting. .Thanks you Anonymoushttps://www.blogger.com/profile/17402262795643492545noreply@blogger.comtag:blogger.com,1999:blog-3900239349007510941.post-39790710948205925962015-04-02T17:07:38.113-04:002015-04-02T17:07:38.113-04:00Made a bit of an edit to the beginning to make it ...Made a bit of an edit to the beginning to make it little clearer.JDWhttps://www.blogger.com/profile/13916249244517007644noreply@blogger.com