Query for users without a primary device assigned (through automatic affinity or manually assigned)

I'm looking for either a way to query or a view of a collection that will show me a list of users who do not have a primary device affinity established.  Vise versa might work as well- query for devices that don't have primary users assigned. 
Any ideas?
Thank you,
DLovitt

Using SCCM's PowerShell cmdlets, you can run something like this:
$Devices = Get-CMDevice
$FinalOutput = @()
$Devices | % {
$OutputObject = New-Object PSObject -Property @{
Device = $_.Name
LastUser = $_.UserName
LastClientCheckTime = $_.LastClientCheckTime
PrimaryUser = (Get-CMUserDeviceAffinity -DeviceName $_.Name).UniqueUserName
$FinalOutput += $OutputObject
$FinalOutput | export-csv $env:USERPROFILE\Desktop\ConfigMgrAffinityReport.csv -NoTypeInformation
#End
Which creates an output like the below.  
Once you have these items joined, its easy to filter out those without a Primary User.
e.g.
$FinalOutput | ? {$_.PrimaryUser -ne $null}
NOTE: This may be necessary: http://blogs.technet.com/b/askperf/archive/2008/09/16/memory-and-handle-quotas-in-the-wmi-provider-service.aspx
Mike Crowley | MVP
My Blog --
Planet Technologies

Similar Messages

  • Dissociate an end user with the primary device

    I need to "Enable Mobily" for a new hire and I need to select his phone as the primary device. However, I run into this error: "Update failed. Device is already associated with another End User as Primary device"
    Is there a way to dissociate the old end user with the primary device? As a last report solution, do you think that by deleting the phone off the CUCM, it will fix the issue when I add the phone back to CUCM?
    Many thanks!
    -Calin

    Thank you George for your prompt response. :) 
    How would you "hunt down the other user" in order to make sure the phone is not associated with that particular user. We have about 3000 phones.
    I checked the phone settings under "Device" - "Phone" and there is no user under "Owner User ID". Although, I think that this field "Owner User ID" is not connected in any way  to Extension Mobility.
    Thanks!
    -Calin

  • Alternative for HLS HTML streaming trough JW player for users without Flash?

    Hello!
    I am using HLS TS Streaming trough JW player for the largest group of users that have flash for streaming video's.
    Is there an alternative for users without flash?
    Best regards

    I will just summarize myself...
    Adobe media server supports rtmp and HTTP(HLS and HDS)..
    for rtmp streaming the swf running in a Flash player is the standard interface...that flash player may be an activeX control/plugin in your browser or may be a standalone player downloaded from adobe website...Chrome web browser however users a slightly different( PPAPI based) flash player(which is different from Adobe flash player) and is developed and maintained by google.
    For HLS and HDS, you can either use special players(i.e swfs)(Flash based) developed Adobe by Adobe e.g Strobe meida player(Open Source Media Framework Blog | Adobe’s free and open source media playback system) or you can use players like jwplayer(Video Player Download | JW Player Online Video Player)... Incidentally jwplayer has added simultaneous support for playing rtmp streams too(which is reallly good), but i do not have much insight into workings of jwplayer...

  • Designing Java Apps for Users Without a JRE Installed Yet

    Hi, sorry if this post is in the wrong place, but here goes:
    I'm designing a Swing Java application for a client. My client intends to distribute/sell this application.
    I'm concerned because, chances are that at least one of the people he distributes this application to will not have the JRE installed and will thus be unable to run the application.
    Can anyone give me some suggestions on ways I can make my application more convenient for users without the JRE currently installed? Even some kind of error message that would direct the user to the JRE download site would be okay.
    kwikness
    Edited by: kwikness on Dec 2, 2009 5:56 PM

    Use NSIS and package your application with JRE.
    Add your jar files to lib/ext of the JRE package.
    NSIS can create a short cut (desktop/start menu) to launch java class/jar file
    I would not use webstart unless you are sure that clients will have access to the internet, the bandwidth is not an issue and installing the new JRE is allowed (permissions, SLA, etc.)
    Best regards.

  • Query for user group

    Dear Team,
    When I am creating  Query for user group via T-code  SQ01.
    Query     ZDEMO1    then Create
    This messege is comming .
    System setting does not allow changes to be made to
    object AQQU /ISDFPS/OM  ZDEMO1
    Why this messege is comming .
    Thanks
    manu

    Dear Manu,
    Please check in SE06 >> change system options >> if the system and the relevant object is in modifiable status.
    Cheers,
    Jazz

  • Do open fonts work in Word for users without the font on their machine?

    Our team creates documents in Word and we would like to use an Open Font (Adobe Jenson Pro)--there is quite a bit of internal file-sharing and I don't want the font to switch to something ugly when it is reviewed in Word (because Word users do not have this font installed by default). I know that there is some cross-compatibility. We would like to apply this font to the template and don't want to introduce a font issue. anyone with experience know how if this works with the Open Font in word documents for users without it installed? 
    thanks!!
    Anne

    annecroft wrote:
    Thanks for your expertise. You are a little snarky, aren't you?
    The coffee hasn't kicked in yet.
    Open TYPE fonts are Adobe fonts
    Nope. OTF's are made by many different companies. Adobe DOES have many of them yes but they don't rule the market on them.

  • Query listing primary user and the primary device

    Is there a query to list the primary device and the primary user associated with that device. Coming from a LANDesk environment I was able to create reports and queries that would list this information pretty easily. I can't seem to link the two in
    SCCM for reporting. Thanks 

    That's a SQL query that should be executed in SQL management studio. It can also be used to create a SRS report.
    Torsten Meringer | http://www.mssccmfaq.de
    Any hints, what it the query itself? And how it should be imported, that it will be created in SRS? Is there any instructions for this? Thanks.

  • MDX Query much slower for users without administrativ rights

    We have a SQL 2012 SP1 with CU9 installed and run a MDX query against a Cube. The Problem is that the query runs very slow for a user without administrativ persmission on the cube. With admin rights it takes 3 seconds and without 30 seconds. I can't find
    any error in the query so maybe someone can pin point me in the right direction.The Role has all reading information it needs.
    This is the Query:
    SELECT NON EMPTY { [Measures].[Blocked Consignment], [Measures].[Consignment in Inspection],
    [Measures].[Restricted Consignment], [Measures].[Unrestricted Consignment] } ON COLUMNS, NON EMPTY
    { ([Date].[Date].[Date].ALLMEMBERS * [Materials].[Part Number].[Part Number].ALLMEMBERS *
    [Materials].[Key].[Key].ALLMEMBERS * [Sold To].[Name].[Name].ALLMEMBERS *
    [Stock Information].[Plant - Storage Location].[Storage Location].ALLMEMBERS * [Non Zero].[Zero Stock Status].[Zero Stock Status].ALLMEMBERS ) }
    ON ROWS
    FROM ( SELECT ( STRTOSET("[Non Zero].[Zero Stock Status].&[No]", CONSTRAINED) )
    ON COLUMNS FROM ( SELECT ( STRTOSET("[Stock Information].[Storage Location].&[1090]", CONSTRAINED) )
    ON COLUMNS FROM ( SELECT ( STRTOSET("[Stock Information].[Plant].&[1090]", CONSTRAINED) )
    ON COLUMNS FROM ( SELECT ( STRTOSET("[Sold To].[Name].[All]", CONSTRAINED) )
    ON COLUMNS FROM [Stock Snapshot]))))
    WHERE ( IIF( STRTOSET("[Stock Information].[Plant].&[1090]", CONSTRAINED).Count = 1, STRTOSET("[Stock Information].[Plant].&[1090]", CONSTRAINED), [Stock Information].[Plant].currentmember ),
    IIF( STRTOSET("[Stock Information].[Storage Location].&[1090]", CONSTRAINED).Count = 1, STRTOSET("[Stock Information].[Storage Location].&[1090]", CONSTRAINED), [Stock Information].[Storage Location].currentmember ) )
    Any one came across this is or is it a bug?

    Can you check which build of SSAS you've got installed? It looks similar to this bug:
    http://support.microsoft.com/kb/2905298/en-us
    Apart from that, if you have used cell security in your role, it would be expected that query performance would be slower for users of that role.
    Chris
    Check out my MS BI blog I also do
    SSAS, PowerPivot, MDX and DAX consultancy
    and run public SQL Server and BI training courses in the UK

  • Adding Adobe Content Viewer to Desktop for users without InDesign 5, 5.5, 6

    We are starting to sell digital advertising and it would be nice if Adobe Content Viewer could be downloaded to the desktop for these advertisers who do not have tablet devices nor have InDesign 5, 5.5 and 6 on their machine. They are wanting to proof their ads in an interactive format on their desktop.

    I also would like to see a Content Viewer for people without InDesign.
    Better yet would be the ability to embed a viewer into a Folio, like a flash with a projector.

  • Application set as 'Install for User' but deployed to device collection - what happens ?

    Hi All,
    If i package an application and set it to 'install for User' - if i then deploy that application to a device collection as required will it install for every user each time they log onto the computer.. ???
    Cheers.

    Install for User determines the security context in which it will install.  If the logged on user is not an admin, the install will likely fail.  And yes, technically the app will be available for all users who log in (to be installed) however
    if you have your detection method configured properly the app will be installed only once as the detection will determine its already there.
    Someone please correct me if I am wrong.  ;-)

  • Better SQL Query for clients without boundaries?

    I've been using and modifying/experimenting with Chris Nackers' SQL query for missing boundaries (http://myitforum.com/myitforumwp/2011/12/07/sql-query-to-identify-missing-smsconfigmgr-boundaries/)
    below (changed to add aliases)--but this seems to mainly be showing us non-clients, as several computers that were indeed missing boundaries (using SCCM 2007 SP2 R3, and all our boundaries are protected, most are IP Range, a few IP Subnet, none AD Site) are
    not being listed, and everything in the listing has NULL SYS.Client0.
    Is there a better query to pinpoint this issue, or maybe using something (error code or log?) that would show computers that can't find a distribution point or some other evidence of not having a boundary?
    Thanks!
    SELECT DISTINCT SYS.Name0, SYS.Client0, IPA.IP_Addresses0, IPS.IP_Subnets0, SMSAS.SMS_Assigned_Sites0
    FROM dbo.v_R_System SYS
    LEFT OUTER JOIN dbo.v_RA_System_IPSubnets IPS ON SYS.ResourceID = IPS.ResourceID
    LEFT OUTER JOIN dbo.v_RA_System_IPAddresses IPA ON SYS.ResourceID = IPA.ResourceID
    LEFT OUTER JOIN dbo.v_RA_System_SMSAssignedSites SMSAS ON SYS.ResourceID = SMSAS.ResourceID
    LEFT OUTER JOIN dbo.v_RA_System_SystemOUName SOU ON SYS.ResourceID = SOU.ResourceID
    WHERE (SMSAS.SMS_Assigned_Sites0 IS NULL)
    AND (NOT (IPA.IP_Addresses0 IS NULL))
    AND (NOT (IPS.IP_Subnets0 IS NULL))
    AND SYS.Operating_System_Name_and0 LIKE 'microsoft%server%'
    ORDER BY IPS.IP_Subnets0, SYS.Name0

    I gotcha now... I think most people, myself included, rely on finding clients that are not assigned to determine if a boundary is missing. If you expect clients to not be assigned that's not going to work for you.
    WHERE (SMSAS.SMS_Assigned_Sites0
    IS NULL) 
    AND (NOT (IPA.IP_Addresses0
    IS NULL))
    AND (NOT
    (IPS.IP_Subnets0 IS
    NULL))
    = This is saying show me all clients not assigned but they do have an IP address and they do have a subnet discovered.
    In the case of CM12 it is actually possible for that not to work anyway because you can have separate boundaries for client assignment and content lookup.
    I am not aware of any query that can compare the IP address, AD Site and IP subnet from each client to what's configured in boundaries and find machines that do not fall into any boundary.
    John Marcum | http://myitforum.com/myitforumwp/author/johnmarcum/

  • Automatic Adobe Update for users without admin privileges

    Hi there,
    I have a PC with Windows 7 Professional (32bits) and Adobe Reader (9.4.6)
    I have selected "Automatically install updates" in Preferences --> Updater:
    The problem is: when a normal user (without admin privileges) is using the system, it turns up an Adobe Box which asks the user to install the Update:
    But when the user tries to update, it asks to insert the admin password.
    How can I solve this? I would like Adobe Reader updates to be downloaded and automatically installed for users in my PC without admin privileges. Is this possible?
    Thanks in advance.
    Best regards,
    Pablo

    Anyone have any further insight into this?  Is there a way to simply give the user admin creds but only for Adobe Reader that would permit users to do thier own updates?
    I don't want to have to constantly update the MSI I am deploying with GP/LUP if possible.
    I am, however simply looking to update 11.0.0 to 11.0.1 ,11.0.2....etc without having to touch GP/LUP/each end user machine

  • How to Prompt for User/Pass Running Shell Script Remotely through ARD

    So I finally got my Active Directory Script working! However, I realized that I'm not the only one going to be running this script and to have my user name and password in the script itself is beyond foolish. While I know it's possible just to have whoever's running the script to manually add their username and password, I'd prefer to have prompts to make things easier for the rest of my team.
    Here's my current script. I've tested it on the machine I'm connecting to Active Directory and it works fine if you run it on the machine itself in terminal. However, I'm going to be doing this on about 150 machines and the whole point of the script is to do it remotely.
    #! /bin/bash
    MACNAME=$(scutil --get ComputerName)
    read -p "User Name: " USER
    read -p "Password for $USER: " PASS
    dsconfigad -add "CORP.DOMAIN.NET" \
    -username $USER \
    -password $PASS \
    -computer $MACNAME \
    -mobile disable \
    -mobileconfirm disable \
    -localhome enable \
    -useuncpath enable \
    -shell /bin/bash \
    -ou OU=Macs,CN=Computers,DC=corp,DC=DOMAIN,DC=net \
    -force \
    -localpassword "PASSWORD" \
    -groups "GROUPS"
    When I run the UNIX script through ARD to a machine, I get no prompts for USER or PASS. In fact, it gives me the following error "dsconfigad: Authentication server encountered an error while attempting the requested operation. (5202)" So it's not asking for a user name and password.
    Is there any way to make a shell script prompt you for a User Name and Password when you're sending commands remotely through ARD? Or is there another way to do this?
    Any suggestions would be greatly appreciated.
    -rks

    Best solution is to create an account that is exclusive to binding machines.  By doing this, you can embed the user name and password in the script.  Heck, you can post it on your website.  If the account is configured properly, it will only be able to create machine records in a defined container.  If you are mixing Macs and PCs in your AD domain, I also recommend creating an isolated container for your Mac records.  Now, the account has even less access rights as you can make it so it only has rights to the Mac container.
    Otherwise, ARD does not prompt.  You can play around with an expect script but the reality is that you are still embedding the credentials in the script so it really does not achieve what you want.  ARD is not an interactive shell scripting tool.  It is more a fire and forget.
    Reid
    Apple Consultants Network
    Apple Professional Services
    Author "Mavericks Server – Foundation Services" :: Exclusively available in Apple's iBooks Store

  • ActiveSync Device Statistics report for users does not show Device Phone number

    HI ,
    I have trying to run a Active-sync Device Statistics report to get all the details for active Sync users, but report show only last four digit of  device phone number for few users and for most of the users its blank.
    Is there way if we can get Device Phone number for active sync users.
    Thanks,
    Pradeep Kumar

    Hi,
    Yes i have tried all of these transactions, these all relate to individual sales orders or production order costs.
    Im looking for a report showing the costs for a range of sales order line items, exaclty like KOB1 but for sales orders.  KVBI does exactly what I want but the material filed is not populated.
    Is there a way to populate this field as part of the settlement?
    Cheers
    Phil.

  • Query for 'User Activity' Webi Line Chart using BO4.0 Auditor

    Need to create a webi line chart to measure  ‘user activity’ per month, year or day using BO4.0 Auditor on Oracle.    
    This question raises two sub-questions:
    What actions constitute user activity?  Is it concurrent logins by users?   I am confused if that would really give a true picture of user activity as users can log in and do nothing on the BO system.  
    If concurrent logins do in fact give a true picture of user activity then how do I go about creating a chart? What objects do I need to include in query?
    Please provide feedback?
    Thank u.

    Hi Ramil,
    Follow below steps to create a webi report for your requirement, launch Webi rich client and create a new webi report by selecting "BOEXI40-Audit-Oracle" (Audit universe)
    1) Select below objects in 'Result Objects' pane
    [Event Year], [Event MonthName],[Event DayofMonth], [Event Type], [User Name], [Total Event Count]
    2) Define below conditions in "Query Filter" pane
    [Event Type Id] In list 1015 AND [Event Year] In list "Select Year" (Prompt)
    3) Run query
    4) At report level create a new variable of type measure with the name "User Activity" with below formula
    =Count([Total Event Count]In([User Name];[Event MonthName];[Event DayOfMonth]) )
    (This formula will track  logout event of a each user in a day as well as in a month, it will take/count only one log out event of the user in a day as you desire)
    5) Create a table block as well as graphs as you desire
    i) For day wise user activity create a table/graph using: [Event DayofMonth], [User Activity]
    ii) For month wise user activity create a table/graph using: [Event MonthName], [User Activity]
    Let me know if you have any questions
    ~Manoj

Maybe you are looking for

  • T500 BIOS upgrade v3.00-1.03 bootable CDROM won't flash

    Model is a 2081 CTO running Windows Vista x64 SP1. Downloaded and burned to a CDROM the image 6fuj30uc.iso. As per the instructions, I tried installing the hotfix as required by MS KB 937500 but it does not install saying the update does not apply to

  • Manage flat files before/after load them

    Hi all, I am a beginner on OWB. I have to migrate a DW environment that all scripts are implemented manually (PL/SQL) and running over UNIX OS to a OWB. Currently the data is loaded from flat files on a temp (stg) tables (first phase). There is an ex

  • SRP547W dropping ADSL every minute

    We installed one of these devices as our gateway a couple of weeks ago, flashed the firmware to 1.2.4(003) and it worked perfectly until this morning where it keeps resetting the ADSL every minute and losing the web interface to the unit. The log end

  • What Adobe flash player version do I need for os x 10.3.9?

    I tried to install the new flash player 10 but they don't tell you you need os x 10.4 or better. So I deleted it. But then both Safari and Firefox started rainbow wheeling and freezing up every time it started to load a flash app from a web-site. So

  • Person responsible wise maintenance order

    Hi, In the maintenance order header screen,we maintain the person responsible (HR employee). I need a report to find number of orders per person responsible. I thought it would be available in IW38 but strange could not find. Kindly help. Regards, Sm