How do you make the Filter so we can use the FIM cmdlets to list Users who have no Manager attribute

I can easily create a Set of Users who are "unusual"
The SET criteria is
EmployeeID starts with %
and Any of
    EmployeeStatus not starts with %
    EmployeeType not starts with %
    Manager not in All FIM users
This criteria works and gives me all the users when I push the View Members button.
But when I look at the Set's Filter it seems to refer to a uuid of that All FIM users Set. To be honest I dont fully understand the set's XPATH filter.
What I hope to do is to some how build a filter so that the FIM cmdlets can be used to identify and fix up these users, especially those who do not have a valid Manager. There are hundreds of these non-standard users and although possible, its not practical
to do this by hand via the "All Non Standard Users" set.
Any hints welcomed.

All users without a manager: Xpath Filters
/Person[not(Manager=/Person)]
or,
/Person[Manager!=/Set[DisplayName='All People']/ComputedMember]
<# Please do not anything in the production environment unless and until you are very much sure #>
# Powershell Cmdlet to find all users in portal not having manager
# Load FIMAutomation module
 if(@(Get-PSSnapin | ? { $_.Name -eq "FIMAutomation" } ).Count -eq 0)
     Add-PSSnapin FIMAutomation;
$users = Export-FIMConfig -customConfig "/Person[not(Manager=/Person)]" -Uri "http://localhost:5725"  -OnlyBaseResources
foreach ($user in $users)
$x = (($user.ResourceManagementObject.ResourceManagementAttributes | Where-Object {$_.AttributeName -eq "DisplayName"}).Value) 
Write-Host "$x"
Thanks and regards,
Anirban Singha(Bangalore)

Similar Messages

  • When Firefox loads, a second window opens that is just a counter. How do I make this stop? I can send the page info if it would help.

    When Firefox loads for the first time, a second window opens that is just a counter. I've downloaded a lot of add-ons. I thought it might be the piano add-on so I removed it but that didn't stop it. How do I make this stop? I can send the page info if it would help.

    Sounds like malware on your PC.
    Install, update, and run these programs in this order. They are listed in order of efficacy.<br />'''''(Not all programs detect the same Malware, so you may need to run them all to solve your problem.)''''' <br />These programs are all free for personal use, but some have limited functionality in the "free mode" - but those are features you really don't need to find and remove the problem that you have.<br />
    ''Note: If your Malware infection is bad enough and you are mis-directed to URL's other than what is posted, you may have to use a different PC to download these programs and use a USB stick to transfer them to the afflicted PC.''
    Malwarebytes' Anti-Malware - [http://www.malwarebytes.org/mbam.php] <br />
    SuperAntispyware - [http://www.superantispyware.com/] <br />
    AdAware - [http://www.lavasoftusa.com/software/adaware/] <br />
    Spybot Search & Destroy - [http://www.safer-networking.org/en/index.html] <br />
    Windows Defender: Home Page - [http://www.microsoft.com/windows/products/winfamily/defender/default.mspx]<br />
    Also, if you have a search engine re-direct problem, see this:<br />
    http://deletemalware.blogspot.com/2010/02/remove-google-redirect-virus.html
    If these don't find it or can't clear it, post in one of these forums for specialized malware removal help: <br />
    [http://www.spywarewarrior.com/index.php] <br />
    [http://forum.aumha.org/] <br />
    [http://www.spywareinfoforum.com/] <br />
    [http://bleepingcomputer.com]

  • How do you insert new records into multiple tables using the same unique primary key?

    I’ve created a PHP site and MySQL server using a free app called XAMPP.  I have successfully created a form in Dreamweaver that will write data to a (name) table in the SQL database.  Here’s my question: How do you write to two (or more) tables in the same database and pass the same primary key to both tables?  In the SQL database, I defined the first field as ID and set it as the primary key with auto update.  So, when you insert a new record, it creates a unique primary key for that record.  In my form, I’m capturing info that needs to be stored to two tables at the same time; a Name table and Address table. Since the Name and Address tables use the ID field as the primary key, I believe I will need to pass the ID value from the Name table to the insert of the Address table to insure they both have the same primary key, right?

    No. You probably need the primary key from one table to be a foreign key in the other tables. In any case, I believe you can use two methods to obtain the auto generated key. First with SQL:
    http://dev.mysql.com/doc/refman/5.0/en/getting-unique-id.html
    And the other using a PHP function:
    http://us3.php.net/mysql_insert_id

  • I've been using older printers (including an imagesetter) connected to10.5.8  With a new 10.6 machine I'm looking to still use the printers. I can use the olderG5 as a sever if need be. What would be the best way to do this?   ine

    I've replaced my 10.5.8 with another machine 10.6.8 which as we know doesn't support Apple Talk which has been used to print to 2 bulletproof older printers and an imagesetter. I wan't to keep using the printers and can use the 10.5.8 as a server. What is the best way to do this?

    Hi
    You could do this a number of ways. Using the LPD Daemon might work best for your location?
    First: assign the machine you're going to use as the 10.5.8 'server' a fixed IP address.
    Second: add desired printers to that machine using the usual methods.
    Once added share them using the Print Sharing option in the Sharing Preferences Pane. On the 10.6.8 machine add the printer using the IP address of the 10.5.8 'server'.
    System Preferences > Print & Fax and click the '+' icon. Click on the IP Icon and key in the IP address you previously assigned. Leave the Queue field alone and select the relevant PPD from the Print Using field (see below). You'll have to search for these yourself.
    You don't have to 'install' the PPDs on the 10.6.8 machine as such. Simply copying them over from their location on the 10.5.8 machine (use a memory stick to do the transfer) to the same location on the 10.6.8 machine will be enough.
    There should be no need to restart.
    HTH?
    Tony

  • How do you make seperate photo albums/camera rolls for the ipad and iphone

    I am trying to make photo albums and different camera rolls for the ipad and iphone.  can anyone tell me how to do that?

    I don't think you can in the native iPad Photos app. It's just where all photos save in camera roll. If I sync folders with pic from my MacBook, it syncs as a separate album in Photos, but I can't move pics between them. I've actually just downloaded an app that allows for sorting photos by creating links to the photos to place them in the folders you create--it does not make duplicates of the photos to do this, so no worries of using up space.
    Anyway, the app is Best Album +transfer. Right now on sale for 99€ which was why I decided to get it.

  • How do you make sure internet is switched off with the new iso7. In iso6 you pressed the centre button twice and it allowed you to close down open tabs I want to do the same....or go back to is06

    How do you close down the internet in ISO7

    You do the same thing, but now your open apps are displayed in a window view. Swipe left/right to find the app you want to stop, then swipe the app up to remove it. By the way, this doesn't turn off the internet. It only removes the app from memory that may be accessing the internet.

  • How do you make an image a background image if the menu option is dimmed?

    I'm using the Cork Board template in a Pages layout document. I wanted to use the cork background in another page. Option dragging the cork image creates a copy in the new page. I can "Send it to back" but the Arrange->Send Object to Background command is dimmed. The problem is that "Send it to back" does not put it behind the header or footer so my page numbers are not visible.
    Oddly, if I just drag the cork image from one page to another, it remains a background object in the new page. Copying it causes it to come out of the background.
    Anybody have an idea why the Send Object to Background command is dimmed?

    In fact, my guess is that the cork.pdf object is a background object because it is a template transferred from Pages '06 to Pages '08.
    During the conversion, some properties are passed even if they aren't treated by the new version.
    If some one wish to let some of these items in the true background, as far as I know, the only available soluce is:
    create a new object from the delivered template
    unlock some items if necessary
    remove useless items
    lock back the kept item
    save the document as a template.
    Never change the background property of the kept items.
    As far as an item is a "true background" one,
    trying to move an other item to the background will leave it above the "true background object".
    Yvan KOENIG (from FRANCE mardi 9 septembre 2008 15:49:21)

  • How do you make third party application window backmost using labview

    Hi Guys
    I know i can do whatever i want on labview windows.i can make third party application window frontmost.
    But How to make third party applicaiton window backmost using labview.
    Thanks

    Hi wenjie1wang,
    I have attached an example that uses the "Call Library Function Node" that accesses the "user32.dll" file that is responsible for manipulating with the windows such as minimising it. 
    After opening the VI you have to enter the name of the window you want to minimise, you can hard code that as a constant. Also on the front panel the control "nCmdShow" can be changed to dictate the action you want to do with the window. 
    Furthermore, please look at the Microsoft Developers Network to find more useful ways to use the property node in your project.
    http://msdn.microsoft.com/en-US/
    Let me know if this works.
    Regards
    Art
    Applications Engineer
    National Instruments
    Attachments:
    Minimise Window in Win7.vi ‏14 KB

  • How do you force a client to refresh and use the latest application revision?

    I've tried the action 'Application deployment evaluation cycle' but this doesn't seem to do the job in a timely manner.
     The AppEnforce.log still references a revision that has been deleted on the server...
    Thanks
    David

    If it's a machine targeted deployment you should use the Machine Policy Retrieval & Evaluation Cycle
    and if it is a user targeted deployment you should use the User Policy Retrieval & Evaluation Cycle.
    My Blog: http://www.petervanderwoude.nl/
    Follow me on twitter: pvanderwoude

  • HT1848 How do you transfer purchases from an iOS device using the new iTunes (11?)?

    I've just updated iTunes to ver. 11 on my mothers new PC and I'm connecting her iPad up for the first time.  I can't see anything like the transfer purchases option that exsisted in the previous versions.  I've tried to eject and start again, but it's still not giving me the option like it used to when you connected a device for the first time.
    Any help would be greatly appreciated!

    okay, should have serched a little more..  all I had to do was CTRL + b in my library to view the file menu, and under File -> Devices -> transfer purchases
    Please ignore this question!

  • I am running Mac 10.4.11 and Safari 4.1.3 - how do I update my browser so I can use the latest yahoo mail

    I am running Mac 10.4.11 and Safari 4.1.3. When using yahoo mail, a message appears that I need to update my browser to enable me to use the latest yahoo, and that the browser I'm using is unsupported.
    I've tried downloading the new version from Yahoo but I can't complete the download. Not very good at this sort of thing so any help would be most useful.
    Thanks

    You need to upgrade the computer’s OS to get a newer Safari version. Choose About this Mac from the Apple menu and check the processor.
    If it's a G3, no further upgrades are available.
    If it's a G4 or G5, buy a retail Mac OS X 10.5 DVD from a source such as Amazon or eBay; Apple still might have copies in stock if you phone them.
    If it's an Intel Mac, buy a Mac OS X 10.6 DVD from the online Apple Store.
    Back up your data before upgrading.
    (109057)

  • Some bookmarks did not show up so I asked to restore (from the bookmark menu) - now all have disappeared. What files are the bookmarks stored in (in the system) So I can use the time machine to restore them from a previous date?

    I do a lot of work on the web and I have a ton of bookmarks that I use to maintain various sites. I have lost them all!
    I have tried to install a clean copy of the programme and restore the Mozilla file from the User Library (in time machine) but all I have is a white space where the bookmark toolbar was! I also have a problem in trying to enter all the bookmarks manually again. I can open the bookmark drop down but I cannot save any bookmarks. Firefox will not let me bookmark any new pages. I still have all the passwords in the preferences so I do not want to install a completely new copy of the programme and loose these.
    Are there any other system files that Firefox uses that I can restore from the backup to solve the problem?
    I have a Mac Pro and I am running OSX 10.6.4
    I have used Firefox for many years and never had a problem before.
    Can anybody help - please?

    This can be a problem with the file places.sqlite that stores the bookmarks and the history.
    * http://kb.mozillazine.org/Bookmarks_history_and_toolbar_buttons_not_working_-_Firefox

  • In flash vidioes how do you make a part of it say at the eng go onto another site

    i want to hypewrlink a button in the movie to go onto my website how do i do that?

    It depends on which version of actionscript you are using.

  • How do you change setting in firefox inorder to use the swipe feature to scroll through opened tabs in a window.? I am using synaptics touch pad that supports swipe on windows. Try my procedure in the link pasted below if you have the same problem as me.

    this is what i used but it didnt work
    http://www.mactipper.com/2009/07/switch-tabs-in-firefox-with-three.html
    I recently figured out that I can change setting on firefox so swipe (three finger movement) can be used to change tabs.
    Here is the procedure I used > http://www.mactipper.com/2009/07/switch-tabs-in-firefox-with-three.html but it did not work. Go ahead and try it and see if it works for you. Then reply to me thanks

    Your previous support postings are listed [https://support.mozilla.com/en-US/search?q=&num_voted=0&num_votes=&asked_by=larsonite&answered_by=&q_tags=&created=0&created_date=&updated=0&updated_date=&sortby=0&a=1&w=2 here].
    '''Please bookmark that page so that you don't have to ask about this repeatedly.'''

  • How to enable Services for Mac so I can use the Chinese Text Converter.

    I run Firefox on my Mac, OSX 10.5.8 and when I try to access Services, ChineseTextConverter, the two choices are shaded and unavailable.
    == This happened ==
    Every time Firefox opened
    == I think this is how it's always been

    Depends on the model of the Mini.  If it is a 2010 or
    2011, simply connect the two via an HDMI cable.
    Older models will require appropriate video cables
    and an analog or optical cable from the audio port
    from the Mini to the TV.

Maybe you are looking for

  • Internet connection problem

    i have written a program which uses ftp to transfer files to a server, this works fine. I have an upload button , which, if i already have a connection established works. But....if the connection is not established before the upload button is pressed

  • Invalid Form value passed?!

    Hi there, We recently migrated to CF MX 7 from ol' CF 5. This error started appearing, and I'm not sure but maybe it is related to text encoding on the site. This error appears (sometimes!) when certain text is entered in the textarea box for posting

  • Cloning environments for AP Imaging

    Hi, we need to create the test environment from our production for oracle AP Imaging. we have soa,ipm,ucm and capture managed servers in our weblogic.. Can anyone tell me what is the best way to cloning the application from different environmenst, th

  • SAP disp+work

    Hi Gurus I have installed mySAP ecc 5.0 with oracle 9.2 DB on solaris 10.My Central instance got installed without any error.But my Database installation i got some errors. Fist error was ERROR 2007-06-27 13:14:16 FRF-00007  Unable to open RFC connec

  • Help with order by and group by together

    Hi: I have a table with severity and devicename as two fields. I want a query which returns a list to include the records in the following order: Devicename with the highest severity at the top but all records should be grouped by devicename irrespec