Jump to content


Established Members
  • Posts

  • Joined

  • Last visited

Spinner's Achievements


Newbie (1/14)



  1. Hi All, I'm wondering if anyone would be able to help i previously had a shortcut to the web based software center (App Store) with a custom icon and now would like a shortcut to the new software center using a similar desktop shortcut (with custom icon). I find this is a good way to get users using the App Store to install their own software. Hopefully others have done the same so its a easy fix Thanks, Spinner
  2. Hi All, I'm currently running SCCM 1602 with the new software centre enabled. I'm having a bit of trouble trying to simply deploy a shortcut to all users desktop that points to the new software center to help promote it as our "App Store" I've managed to copy the shortcut and change the icon to our logo but not having any luck with the deployment of the shortcut. I've tried via GPO but its not working just wondering if others have done anything similar with success or can recommend a different method with the same result. I didn't think it would be such a difficult task putting a shortcut to the new software center on all users desktops so any help would be much appreciated Regards, Spinner
  3. Hi All, So i've setup the software metering to find licensed apps (EG Visio) and populate a collection with the data if its been used in the last 90 days. Below is the query for the collection select SMS_R_SYSTEM.ResourceID,SMS_R_SYSTEM.ResourceType,SMS_R_SYSTEM.Name,SMS_R_SYSTEM.SMSUniqueIdentifier,SMS_R_SYSTEM.ResourceDomainORWorkgroup,SMS_R_SYSTEM.Client from SMS_R_SYSTEM WHERE SMS_R_SYSTEM.ResourceID NOT IN (SELECT SMS_R_SYSTEM.ResourceID FROM SMS_R_SYSTEM INNER JOIN SMS_MonthlyUsageSummary ON SMS_R_SYSTEM.ResourceID = SMS_MonthlyUsageSummary.ResourceID INNER JOIN SMS_MeteredFiles ON SMS_MonthlyUsageSummary.FileID = SMS_MeteredFile.MeteredFileID WHERE DATEDIFF(DAY, SMS_MonthlyUsageSummary.LastUsage, GetDate()) < 90 AND SMS_MeteredFiles.FileName = "visio.exe") My question is if i advertise the uninstall to this collection of pc's that haven't run it in the last 90 days is there a powershell script or something to also remove them from the original collection that has the installation advertisement? Because i can see that if it uninstalls, it detects the pc object is still in the installation collection and then installs the software again. So my goal is to have an install and uninstall collection (done) Have software metering check for unused licenses and populate a collection (done) Uninstall from the pc and also remove from the original installation collection (require assistance) Thanks, Spinner
  4. Great guide just a question regarding post upgrade Does the console need to be updated if its installed locally on workstations or published in citrix? If so where would the new installation file be located after the upgrade has completed?
  5. Thanks Pete i'll give it a go, so far i only had this: $Server = "SERVER" $site = "HQ2" Function Get-Collections { <# .SYNOPSIS Determine the SCCM collection membership .DESCRIPTION This function allows you to determine the SCCM collection membership of a given user/computer .PARAMETER Type Specify the type of member you are querying. Possible values : 'User' or 'Computer' .PARAMETER ResourceName Specify the name of your member : username or computername .EXAMPLE Get-Collections -Type computer -ResourceName PC001 Get-Collections -Type user -ResourceName User01 .Notes Author : Antoine DELRUE WebSite: http://obilan.be #> param( [Parameter(Mandatory=$true,Position=1)] [ValidateSet("User", "Computer")] [string]$type, [Parameter(Mandatory=$true,Position=2)] [string]$resourceName ) #end param Switch ($type) { User { Try { $ErrorActionPreference = 'Stop' $resource = Get-WmiObject -ComputerName $server -Namespace "root\sms\site_$site" -Class "SMS_R_User" | ? {$_.Name -ilike "*$resourceName*"} } catch { Write-Warning ('Failed to access "{0}" : {1}' -f $server, $_.Exception.Message) } } Computer { Try { $ErrorActionPreference = 'Stop' $resource = Get-WmiObject -ComputerName $server -Namespace "root\sms\site_$site" -Class "SMS_R_System" | ? {$_.Name -ilike "$resourceName"} } catch { Write-Warning ('Failed to access "{0}" : {1}' -f $server, $_.Exception.Message) } } } $ids = (Get-WmiObject -ComputerName $server -Namespace "root\sms\site_$site" -Class SMS_CollectionMember_a -filter "ResourceID=`"$($Resource.ResourceId)`"").collectionID # A little trick to make the function work with SCCM 2012 if ($ids -eq $null) { $ids = (Get-WmiObject -ComputerName $server -Namespace "root\sms\site_$site" -Class SMS_FullCollectionMembership -filter "ResourceID=`"$($Resource.ResourceId)`"").collectionID } $array = @() foreach ($id in $ids) { $Collection = get-WMIObject -ComputerName $server -namespace "root\sms\site_$site" -class sms_collection -Filter "collectionid=`"$($id)`"" $Object = New-Object PSObject $Object | Add-Member -MemberType NoteProperty -Name "Collection Name" -Value $Collection.Name $Object | Add-Member -MemberType NoteProperty -Name "Collection ID" -Value $id $Object | Add-Member -MemberType NoteProperty -Name "Comment" -Value $Collection.Comment $array += $Object } $array } Get-Collections -Type computer -ResourceName PC007
  6. Still haven't been able to figure this one out, still no one found a way to copy collection membership from 1 PC to another?
  7. Awesome thanks Pete. The other thing i was hoping to get out of the console builder was to have a deployment status (success/in progress/failed) column next to the PC in a collection (Device Deployment to the Collection) I doubt it will be able to be done but was hoping someone else may of come up with it or something similar that i could work from to get the view i'm after
  8. I guess no one had success getting the primary user to show up using this tool?
  9. So far i can't seem to get anything working that i've found, only thing i've got so far is the right click tools and copy pasting that into excel
  10. Hi All, I've been googling and can find the opposite of what i'm looking for so was wondering if i could get some help. Basically what i'm after is a Powershell script that will get the collections that 1 pc is a member off and then add another pc to those same collections (preferably via a prompt) We have some PC's at the moment that will be out of lease and replaced and they have computer deployed applications so i was hoping to mirror the same collection membership for the new PC they get to make it easier. Also we get requests that 1 user needs the same apps as another where this would also come in handy. Hopefully a powershell guru would be able to assist me Thanks, Spinner
  • Create New...