rzander / sccmclictr

Client Center for Configuration Manager
Microsoft Public License
319 stars 59 forks source link

Import App from Catalog #106

Open dkjones9602 opened 5 years ago

dkjones9602 commented 5 years ago

Will the Import App from Catalog stop working in the next SCCM upgrade when they deprecate the catalog?

rzander commented 5 years ago

Good question, I've never tried it without the App Catalog Role... Will check it...

rzander commented 5 years ago

I can confirm that it will NOT work...

dkjones9602 commented 5 years ago

Can i assume that feature will of client center will go away? Unfortunately that is highly used here.

On Thu, Aug 8, 2019, 07:08 Roger Zander notifications@github.com wrote:

I can confirm that it will NOT work...

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/rzander/sccmclictr/issues/106?email_source=notifications&email_token=ALCVWWDBL6ZDT5NEAHUPDI3QDP5BFA5CNFSM4IJLAUY2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD33IV6A#issuecomment-519473912, or mute the thread https://github.com/notifications/unsubscribe-auth/ALCVWWE64SONYPQJXVBE3JTQDP5BFANCNFSM4IJLAUYQ .

rzander commented 5 years ago

I have not found any documentations how this AppCatalog API looks like over the MP... If someone has some more details please let me know... otherwise this feature will go away....

Xento commented 5 years ago

Maybe this isn't needed anymore with SCCM 1906: https://docs.microsoft.com/en-us/sccm/apps/deploy-use/install-app-for-device

Am Do., 8. Aug. 2019 um 13:32 Uhr schrieb dkjones9602 < notifications@github.com>:

Can i assume that feature will of client center will go away? Unfortunately that is highly used here.

On Thu, Aug 8, 2019, 07:08 Roger Zander notifications@github.com wrote:

I can confirm that it will NOT work...

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub < https://github.com/rzander/sccmclictr/issues/106?email_source=notifications&email_token=ALCVWWDBL6ZDT5NEAHUPDI3QDP5BFA5CNFSM4IJLAUY2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD33IV6A#issuecomment-519473912 , or mute the thread < https://github.com/notifications/unsubscribe-auth/ALCVWWE64SONYPQJXVBE3JTQDP5BFANCNFSM4IJLAUYQ

.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/rzander/sccmclictr/issues/106?email_source=notifications&email_token=AAJ5HRKNF5SD3L3IM35Z3WTQDP74LA5CNFSM4IJLAUY2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD33KK4I#issuecomment-519480689, or mute the thread https://github.com/notifications/unsubscribe-auth/AAJ5HRNZPYYFKFTG3C5F5W3QDP74LANCNFSM4IJLAUYQ .

dkjones9602 commented 5 years ago

That feature in the console doesn't help the tech in the field. Roger has built an amazing all in one tool that doesn't crash frequently like the console and can be put on a thumb drive.

On Thu, Aug 8, 2019 at 7:51 AM Roger Zander notifications@github.com wrote:

I have not found any documentations how this AppCatalog API looks like over the MP... If someone has some more details please let me know... otherwise this feature will go away....

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/rzander/sccmclictr/issues/106?email_source=notifications&email_token=ALCVWWGLALXBKE2IOR3AMR3QDQCCPA5CNFSM4IJLAUY2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD33LT2Q#issuecomment-519485930, or mute the thread https://github.com/notifications/unsubscribe-auth/ALCVWWBKM4ATD5PHXJNBN33QDQCCPANCNFSM4IJLAUYQ .

Xento commented 5 years ago

The console is very stable for us. Sometimes I have it open for many days.

Maybe something can be implemented that calls this function from this tool via WMI?

Am Do., 8. Aug. 2019 um 14:20 Uhr schrieb dkjones9602 < notifications@github.com>:

That feature in the console doesn't help the tech in the field. Roger has built an amazing all in one tool that doesn't crash frequently like the console and can be put on a thumb drive.

On Thu, Aug 8, 2019 at 7:51 AM Roger Zander notifications@github.com wrote:

I have not found any documentations how this AppCatalog API looks like over the MP... If someone has some more details please let me know... otherwise this feature will go away....

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub < https://github.com/rzander/sccmclictr/issues/106?email_source=notifications&email_token=ALCVWWGLALXBKE2IOR3AMR3QDQCCPA5CNFSM4IJLAUY2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD33LT2Q#issuecomment-519485930 , or mute the thread < https://github.com/notifications/unsubscribe-auth/ALCVWWBKM4ATD5PHXJNBN33QDQCCPANCNFSM4IJLAUYQ

.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/rzander/sccmclictr/issues/106?email_source=notifications&email_token=AAJ5HRNBKCVH463KANU2573QDQFQ3A5CNFSM4IJLAUY2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD33NYQQ#issuecomment-519494722, or mute the thread https://github.com/notifications/unsubscribe-auth/AAJ5HRPZVC5N52ATQZXLATDQDQFQ3ANCNFSM4IJLAUYQ .

dkjones9602 commented 5 years ago

We upgraded to 1906 and the Import App feature is still working. I wonder if the components would be there on fresh install instead of an upgrade? I don't get a complete list. It always truncates at the apps starting with 'U'. Do you have cap on the number of returns? If so, can it be overridden?

On Thu, Aug 8, 2019 at 9:39 AM Markus M. notifications@github.com wrote:

The console is very stable for us. Sometimes I have it open for many days.

Maybe something can be implemented that calls this function from this tool via WMI?

Am Do., 8. Aug. 2019 um 14:20 Uhr schrieb dkjones9602 < notifications@github.com>:

That feature in the console doesn't help the tech in the field. Roger has built an amazing all in one tool that doesn't crash frequently like the console and can be put on a thumb drive.

On Thu, Aug 8, 2019 at 7:51 AM Roger Zander notifications@github.com wrote:

I have not found any documentations how this AppCatalog API looks like over the MP... If someone has some more details please let me know... otherwise this feature will go away....

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub <

https://github.com/rzander/sccmclictr/issues/106?email_source=notifications&email_token=ALCVWWGLALXBKE2IOR3AMR3QDQCCPA5CNFSM4IJLAUY2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD33LT2Q#issuecomment-519485930

, or mute the thread <

https://github.com/notifications/unsubscribe-auth/ALCVWWBKM4ATD5PHXJNBN33QDQCCPANCNFSM4IJLAUYQ

.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub < https://github.com/rzander/sccmclictr/issues/106?email_source=notifications&email_token=AAJ5HRNBKCVH463KANU2573QDQFQ3A5CNFSM4IJLAUY2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD33NYQQ#issuecomment-519494722 , or mute the thread < https://github.com/notifications/unsubscribe-auth/AAJ5HRPZVC5N52ATQZXLATDQDQFQ3ANCNFSM4IJLAUYQ

.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/rzander/sccmclictr/issues/106?email_source=notifications&email_token=ALCVWWD5QZWW6TYHC7MI2Q3QDQOYFA5CNFSM4IJLAUY2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD33UONI#issuecomment-519522101, or mute the thread https://github.com/notifications/unsubscribe-auth/ALCVWWCMB6QN23JLUWWLYHDQDQOYFANCNFSM4IJLAUYQ .

theaquamarine commented 5 years ago

No, the app catalog role can't be added on 1906, but if you've already got one it won't be removed. It's not been required since 1806 but was supported, so if you already had one it'd work but not be used by clients.

1902 is the most recent baseline release, so a new install would have chance to install it before upgrading, if you really wanted to...

https://docs.microsoft.com/en-us/sccm/apps/plan-design/plan-for-and-configure-application-management#bkmk_remove-appcat

NathanHopkins6283 commented 4 years ago

Hi Roger. I just upgrade our infrastructure to 1906 and we miss this functionality. From what I've been able to piece together after the catalog roles are removed, this info is available via WMI by querying the Primary.

Get all apps that require approval: $primarySCCMServer = '' $namespace = "ROOT\SMS\site_" $classname = "SMS_ApplicationAssignment"

$apps = Get-WmiObject -Class $classname -ComputerName $primarySCCMServer -Namespace $namespace | Where-Object {$_.RequireApproval -eq 'True'} | Select ApplicationName, AssignedCI_UniqueID

$masterArray = @() ForEach ($item in $apps){ $array = new-object PSObject $array | add-member -type NoteProperty -Name ApplicationName -Value $item.ApplicationName $array | add-member -type NoteProperty -Name AssignedCI_UniqueID -Value ($item.AssignedCI_UniqueID).Substring(0, $item.AssignedCI_UniqueID.LastIndexOf('/')) $masterArray += $array }

Next you'll need to select the application and corresponding AssignedCI_UniqueID and invoke a WMI method against the Primary: $primarySCCMServer = '' $sccmClient = '' $AutoInstall = $true $comments = "Test Comment" $namespace = "ROOT\SMS\site_" $machine = Get-WmiObject -ComputerName $primarySCCMServer -Namespace $namespace -Query "SELECT * FROM SMS_R_SYSTEM WHERE Name = $sccmClient" $clientGuid = $machine.SMSUniqueIdentifier Invoke-WmiMethod -ComputerName $primarySCCMServer -Path "SMS_ApplicationRequest" -Namespace $NameSpace -Name CreateApprovedRequest -ArgumentList @($AppID, $AutoInstall, $clientGuid, $comments)

Note: $AppID in this example is the AssignedCI_UniqueID from the $masterArray

I hope this helps and gets into the next revision.

This assumes this guide has been followed: https://www.petervanderwoude.nl/post/real-time-application-installation-for-devices/

rzander commented 4 years ago

Application (pre) Approval is a cool thing if you have a user loggedon on the target device. But Client Center seems to be the wrong tool for that, as all to logic has to run on the Site Server... using the AdminService (REST API) could be an option, have to check that....

NathanHopkins6283 commented 4 years ago

The WMI query to get the pre-approval apps takes a while to complete. I have a feeling that the AdminService will be a lot faster. I've been having trouble getting the service working in my environment. I have a feeling it's a certificate configuration issue. I didn't know you needed a user logged on to the target device. I'll have to test this out - our deployments are set to run even without a user logged on.

Thanks for getting back to me by the way.

Nate

On Fri, Jun 12, 2020 at 8:39 AM Roger Zander notifications@github.com wrote:

Application (pre) Approval is a cool thing if you have a user loggedon on the target device. But Client Center seems to be the wrong tool for that, as all to logic has to run on the Site Server... using the AdminService (REAT API) could be an option, have to check that....

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/rzander/sccmclictr/issues/106#issuecomment-643340498, or unsubscribe https://github.com/notifications/unsubscribe-auth/AP42OCSSBCOF5JB7IV6Y5G3RWJDZ3ANCNFSM4IJLAUYQ .

NathanHopkins6283 commented 4 years ago

I just tested this out on a device where no user was logged on and it installed the app. If the app deployment is configured whether or not a user is logged on seems to be the key.

On Fri, Jun 12, 2020 at 2:48 PM Nathan Hopkins < nathan.david.hopkins@gmail.com> wrote:

The WMI query to get the pre-approval apps takes a while to complete. I have a feeling that the AdminService will be a lot faster. I've been having trouble getting the service working in my environment. I have a feeling it's a certificate configuration issue. I didn't know you needed a user logged on to the target device. I'll have to test this out - our deployments are set to run even without a user logged on.

Thanks for getting back to me by the way.

Nate

On Fri, Jun 12, 2020 at 8:39 AM Roger Zander notifications@github.com wrote:

Application (pre) Approval is a cool thing if you have a user loggedon on the target device. But Client Center seems to be the wrong tool for that, as all to logic has to run on the Site Server... using the AdminService (REAT API) could be an option, have to check that....

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/rzander/sccmclictr/issues/106#issuecomment-643340498, or unsubscribe https://github.com/notifications/unsubscribe-auth/AP42OCSSBCOF5JB7IV6Y5G3RWJDZ3ANCNFSM4IJLAUYQ .