Ger-AD user properties and present them in different titled headers

I want to present the AD-user properties as headers under different titles, how do i change that as in my codefor the properties highlighted in bold.Get-ADGroup -Filter * -Properties * | ForEach-Object {
$Group = $_
Get-ADGroupMember $Group |
Where-Object { $_.objectClass -eq 'user'} |
Get-ADUser -Properties * | Select-Object FullName, SamAccountName, Disp*, DistinguishedName, @{
Name = 'Group Name'
Expression = { $Group.Name }
Name = 'Type'
Expression = { $Group.GroupCategory }
Name = 'Managed By'
Expression = { $Group.ManagedBy }

I have just tried that but it throws an error: "Missing expression after ','."
Get-ADGroup -Filter * -Properties * | ForEach-Object {
$Group = $_
Get-ADGroupMember $Group |
Where-Object { $_.objectClass -eq 'user'} |
Get-ADUser -Properties * | Select-Object @{Name = 'Name' , Expression = $_.FullName}|, @{Name = 'Username' ; Expression = $_.SamAccountName}, Disp*, DistinguishedName, @{
Name = 'Group Name'
Expression = { $Group.Name }
Name = 'Type'
Expression = { $Group.GroupCategory }
Name = 'Managed By'
Expression = { $Group.ManagedBy }

Similar Messages

  • Retrieving data from an ArrayList and presenting them in a JSP

    Dear Fellow Java Developers:
    I am developing a catalogue site that would give the user the option of viewing items on a JSP page. The thing is, a user may request to view a certain item of which there are several varieties, for example "shirts". There may be 20 different varieties, and the catalogue page would present the 20 different shirts on the page. However, I want to give the user the option of either viewing all the shirts on a single page, or view a certain number at a time, and view the other shirts on a second or third JSP page.
    See the following link as an example:
    http://www.eddiebauer.com/eb/cat_default.asp?nv=2|21472|9&tid=&c=&sc=&cm_cg=&lp=n2f
    I am able to retrieve the data from the database, and present all of them on a JSP, however I am not sure how to implement the functionality so that they can be viewed a certain number at a time. So if I want to present say 12 items on a page and the database resultset brings back 30 items, I should be able to present the first 12 items on page1, the next 12 items on page2, and the remaining 6 items on page3. How would I do this? Below is my scriplet code that I use to retrieve information from the ArrayList that I retrieve from my database and present them in their entirety on a single JSP page:
    <table>
    <tr>
    <%String product=request.getParameter("item");
    ArrayList list=aBean.getCatalogueData(product);
    int j=0, n=2;
    for(Iterator i=list.iterator(); i.hasNext(); j++){
    if(j>n){
    out.print("</tr><tr>");
    j=0;
    Integer id=(Integer)i.next();
    String name=(String)i.next();
    String productURL=(String)i.next();
    out.print("a bunch of html with the above variables embedded inside")
    %>
    </tr>
    </table>
    where aBean is an instace of a JavaBean that retrieves the data from the Database.
    I have two ideas, because each iteration of the for loop represents one row from the database, I was thinking of introducing another int variable k that would be used to count all the iterations in the for loop, thus knowing the exact number. Once we had that value, we would then be able to determine if it was greater than or less than or equal to the maximum number of items we wanted to present on the JSP page( in this case 12). Once we had that value would then pass that value along to the next page and the for loop in each subsequent JSP page would continue from where the previous JSP page left off. The other option, would be to create a new ArrayList for each JSP page, where each JSP page would have an ArrayList that held all the items that it would present and that was it. Which approach is best? And more importantly, how would I implement it?
    Just wondering.
    Thanks in advance to all that reply.
    Sincerely;
    Fayyaz

    -You said to pass two parameters in the request,
    "start", and "count". The initial values for "start"
    would be zero, and the inital value for "count" would
    be the number of rows in the resultSet from the
    database, correct?Correct.
    -I am a little fuzzy about the following block of code
    you gave:
    //Set start and count for next page
    start += count; // If less than count left in array, send the number left to next next page
    count = ((start*3)+(count*3) < list.size()) ? (count) : ((list.size() - (start*3))/3)
    Could you explain the above block of code a little
    further please?Okay, first, I was using the ternary operators (boolean) ? val_if_true : val_if_false;
    This works like an if() else ; statement, where the expression before the ? represents the condition of the if statement, the result of the expression directly after the ? is returned if the condition is true, and the expression after the : is returned if the condition is false. These two statments below, one using the ternary ? : operators, and the other an if/else, do the same thing:
    count = ((start*3)+(count*3) < list.size()) ? (count) : ((list.size() - (start*3))/3);
    if ((start*3)+(count*3) < list.size()) count = count;
    else count = ((list.size() - (start*3))/3);Now, why all the multiplying by 3s? Because you store three values in your list for each product, 1) the product ID, 2) the product Name, and 3) the product URL. So to look at the third item, we need to be looking at the 9th,10th, and 11th values in the list.
    So I want to avoid an ArrayIndexOutOfBounds error from occuring if I try to access the List by an index greater than the size of the list. Since I am working with product numbers, and not the number of items stored in the list, I need to multiply by three, both the start and count, to make sure their sum does not exceed the value stored in the list. I test this with ((start*3)+(count*3) < list.size()) ?. It could have been done like: ((start + count) * 3 < list.size()) ?.
    So if this is true, the next page can begin looking through the list at the correct start position and find the number of items we want to display without overstepping the end of the list. So we can leave count the way it is.
    If this is false, then we want to change count so we will only traverse the number of products that are left in the list. To do this, we subtract where the next page is going to start looking in the list (start*3) from the total size of the list, and devide that by 3, to get the number of products left (which will be less then count. To do this, I used: ((list.size() - (start*3))/3), but I could have used: ((list.size()/3) - start).
    Does this explain it enough? I don't think I used the best math in the original post, and the line might be better written as:
    count = ((size + count)*3 < list.size()) ? (count) : ((list.size()/3) - start);All this math would be unnecessary if you made a ProductBean that stored the three values in it.
    >
    - You have the following code snippet:
    //Get the string to display this same JSP, but with new start and count
    String nextDisplayURL = encodeRedirectURL("thispage.jsp?start=" + start + "&count=" + count + "&item=" + product);
    %>
    <a href="<%=nextDisplayURL%>">Next Page</a>
    How would you do a previous page URL? Also, I need to
    place the "previous", "next" and the different page
    number values at the top of the JSP page, as in the
    following url:
    http://www.eddiebauer.com/eb/cat_default.asp?nv=2|21472
    9&tid=&c=&sc=&cm_cg=&lp=n2f
    How do I do this? I figure this might be a problem
    since I am processing the code in the middle of the
    page, and then I need to have these variables right at
    the top. Any suggestions?One way is to make new variable names, 'nextStart', 'previousStart', 'nextCount', 'previousCount'.
    Calculate these at the top, based on start and count, but leave the ints you use for start and count unchanged. You may want to store the count in the session rather than pass it along, if this is the case. Then you just worry about the start, or page number (start would be (page number - 1) * count. This would be better because the count for the last page will be less than the count on other pages, If we put the count in session we will remember that for previous pages...
    I think with the details I provided in this and previous post, you should be able to write the necessary code.
    >
    Thanks once again for all of your help, I really do
    appreciate the time and effort.
    Take care.
    Sincerely;
    Fayyaz

  • How to pull data from EJB and present them using Swing ?

    Hi all,
    I've written stateful session bean which connect to Oracle database, and now I must write stand alone client application using Swing.
    The client app must present the data and then let users add,delete and edit data and it must be flexible enough to iterate through the records.
    The swing components can be JTextField,JTable etc.
    How to pull the data from EJB and present them to users with the most efficient network trip ?
    Thanks in advance
    Setya

    Thanks,
    Since the whole app originally was client-server app and I want to make it more scalable, so I decide to separate business logic in the EJB but I also want to keep the performance and the userfriendliness of the original user interface, and I want to continue using Swing as the original user interface does.
    I've read about using Rowset and I need some opinions about this from you guys who already have some experience with it.
    Any suggestions would be greatly appreciated.
    Thanks
    Setya

  • Order of execution of named method user properties and server script

    Dear All,
    If for a Custom method on an applet, we have scripts in WebApplet_preinvokemethod and WebApplet_invokemethod and also for the same Custom method we have applet Named Method user properties and BC Named Method user properties, what will be the order of execution of these scripts and Named Method user properties??

    The Private Event Submission sample portlet shows how to achieve this. It is part of the PDK download.
    Peter

  • Taking existing Plumtree user accounts and migrating them to existing group

    Does anyone know if it is possible through the Local Portal API or the EDK/IDK to take existing Plumtree user accounts and migrate them to existing groups? Any risks in doing this programmatically? Is it best done through the ui manually to maintain referential and database integrity? Just trying to assess risk here and decide if we should build this kind of tool for our customer which they are requesting. Does the Local Portal API or the EDK/IDK provide capability of "adding" a group affiliation to existing Plumtree users or would this be a bad idea?

    A network account is really existing only on the server but if you use "portable homefolders" (Tiger client and server) you could "migrate" the local account to a "server" one by:
    Login locally as another user with administrative rights.
    Change the name of the old account folder in /Users.
    Remove the "old" account locally (woun't remove the "old" folder as you changed the name) only Netinfo data.
    Login using the serveraccount login/password thus creating a homefolder on the server.
    Logout and back in, enable portable homefolder.
    Logout and then in as a local admin and remove the new user folder.
    Change the name on the old userfolder to what the new one had.
    I'm not a 100% sure Netinfo has the server account UID now (added by logging in and creating the portable account?) but if it does:
    (http://forums.macosxhints.com/archive/index.php/t-12077.html)
    "Finding and changing UIDs across the filesystem is a one-liner command:
    sudo find / -user UID -exec chown userName {} \;
    (replace UID with the old UID number and userName with the new user name to associate file ownership.)"
    (A portable account must have got some "kind" of UID?)
    Let the machine "sync" with the server account.
    If you want an "on network only" account I don't know what you need to remove locally afterwards.
    HTH

  • Powershell export User properties and policy settings

    is there a Powershell script "out-there" that export and import all the user properties from the User Profile service Application - including their individual placement on the various sections (contact, basic, details etc), and also including their
    policy settings (only me /everyone/replicate settings) - basic all the settings - and if the AD mapping is there as weel it would be nice...
    So I can export from environment A and then import them to environment B... ?

    Did you try this blog:
    POWERSHELL TO EXPORT / QUERY ALL USER PROFILE PROPERTIES AND AD MAPPINGS
    http://www.sharepointfix.com/2012/01/powershell-script-to-print-user-profile.html
    also
    SharePoint 2010: Updating User Profile Properties with PowerShell
    Please remember to mark your question as answered &Vote helpful,if this solves/helps your problem. ****************************************************************************************** Thanks -WS MCITP(SharePoint 2010, 2013) Blog: http://wscheema.com/blog

  • Backup few partitions from a database and restore them on different server

    I have a Database called Datamart. Datamart database has multiple partitioned tables and the database has different filegroups and partitions. I would split the database on to three servers with one-third of the database on each.
    If the database has 1500 partitions, then 0-499 on server1 Datamart database, 500-999 on server2 Datamart database and 1000-500 on server3 Datamart database.
     

    See
    http://aboutsqlserver.com/2014/06/24/partial-database-backup-and-piecemeal-restore-in-microsoft-sql-server/
    http://msdn.microsoft.com/en-us/library/ms177425.aspx
    http://msdn.microsoft.com/en-us/library/ms190984.aspx
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • Programatically creating users, roles and insert them into Jazn xml

    Hi All,
    I am using ADF 11G and ADF BC to develop my application. Whenever a user is created an entry will go into OID and into DB. Admin will apply the roles and users for that roles through application. Once the administrator assigns the roles, the user need to see the appropriate menus based on the roles assigned.
    If I use ADFSecurity, then I need to redeploy the application each and everytime an user is created and a role assigned to it. But I have to avoid the redeployment step. When ever admin assigns a role while approving the user, the same should be reflected in Jazn, so that I can use the securityContext to generate menus dynamcally.
    Is there a way to do programatically the below:
    1. Creating roles
    2. Assigining Users
    I want to use the functionality of ADFSecurity but programatically.
    Any information/links/guidance is much appreciated.
    Thanks,
    Morgan.

    Morgan,
    You can configure WLS to use OID instead of jaxn.xml file.
    [url http://download.oracle.com/docs/cd/E14571_01/core.1111/e10043/toc.htm]The security guide should be good reading for you.
    Best,
    John

  • User Properties and registration

    Hi
    1) Is possible add properties to the user details directly with a wizard or i must write pl/sql code to make the form to do this ??
    2) Exits in the Standard portal a registration Form or i must write pl/sql code to make the form to do this ??
    thks in advance
    Carlo Mossa

    1. You can do this declaratively from the administration screens.
    2. I believe a registration portlet is in the works. There is a discussion about building your own on this board as well.

  • Can you access files and edit them from different computers in Creative Cloud?

    I want to understand the workflow we can have. We have three computers and would like to access and edit the same files in Creative Cloud. Can you do this? I understand I may have to purchase two licenses but will this give everyone access to the same files and able to edit and upload files.
    We do this in Dropbox now but with Creative Cloud is sounds like all I can do is share a file for them to comment on, not edit?

    Hi Olivia,
    With Creative Cloud, file editing comes in via downloading Adobe applications with a Creative Cloud membership. While you cannot edit within Creative Cloud, you can share files with your coworkers which can then be downloaded, edited in an Adobe application, and reuploaded to the Cloud.
    Be aware that although you can have two computers activated on the same Creative Cloud membership, you cannot use the same application on two computers simultaneously. A Creative Cloud membership is for one user that can be used on one or more computers.
    You may want to look into the Creative Cloud Team Ready, that targets work environments like yours. You can read more about Team Ready here.
    Hope this helped clarify your questions!

  • I have 1 iMac, two users (myself and my wife), 2 different Apple ID's, and I want to buy Pages from the App Store so we both can use. Is this possible without having to buy it twice?

    I am wanting to purchase the Pages app from the App Store. I do not want to purchase it 2 times, once for me, and again for my wife. We both share the same iMac, and we both use seperate Apple ID's. Is there a way to purchase it under my user, and have it download to her user as well? I have searched all over the forums for a cut and dry answer to this, to no avail. Any help in the matter would be appreciated, as I am a newbie on the Mac.

    No. You need to buy it for your Apple ID and for the other. You will have problems with updates

  • I used to have link to my Norton Identity Safe on my Fire Fox toolbar which filled in the user name and password for various different sites. Now it is gone and I can't seem to bring it back. Can anyone help me with this?

    I can access the feature from the Norton interface, but that doesn't make the passwords and user names fill in.

    Maybe extension are broken? Norton community can assist you further.:)
    * community.norton.com

  • How do I split text files and save them as different records

    Hi,
    I am trying to load files now from INBOX of a mail system
    directly into the database.
    We are collecting the news stories which get emailed to us.
    The Inbox file is a huge file with some kind of delimiter.
    How can I break at the delimiter and make the messages
    seperate using any of ORACLE tools.
    we have
    orcl 805
    forms/reports 5.0
    orcl express
    discoverer
    Please let me know if we have to use PEARL/C to accomplish this.
    or the UTL_FILE package in PL/SQL CAN HELP .
    thank you very much for your attention
    Arvin
    null

    hi arvin,
    i hope u would have tried out with sql * loader. If not, just try
    it out, i feel ur motive could be achieved with the loader .
    U need to prepare a control file with the loader options like
    insert, or replace, or append ... and the delimiter ur using and
    the table specs. u can find the syntax of loader statement by
    typing sqlldr from ur unix prompt.
    Arvin (guest) wrote:
    : Hi,
    : I am trying to load files now from INBOX of a mail system
    : directly into the database.
    : We are collecting the news stories which get emailed to us.
    : The Inbox file is a huge file with some kind of delimiter.
    : How can I break at the delimiter and make the messages
    : seperate using any of ORACLE tools.
    : we have
    : orcl 805
    : forms/reports 5.0
    : orcl express
    : discoverer
    : Please let me know if we have to use PEARL/C to accomplish
    this.
    : or the UTL_FILE package in PL/SQL CAN HELP .
    : thank you very much for your attention
    : Arvin
    null

  • MySites User Profiles and User Hidden List

    I would like to automatically activate all user profiles so I can assign an administrator to update all user information. The environment does have MySites setup but no one has permissions to create their own MySite site. Therefore,
    when a user navigates to their profile page to edit their profile information they visit the URL http://server/MySiteSiteCollection/_layouts/15/start.aspx#/Person.aspx?accountname=domain\user
    Right now, the administrator can only edit user profiles where the user had previously visited their user profile page, thus activating their user profile, which I assume adds an item to the hidden user list. However, the administrator cannot edit
    any user profiles where the user had not yet visited their user profile site, thus generating an error. I would like to enable/activate all user profiles automatically without having to contact each user separately and asking them to visit their
    profile page just to get it enabled for editing.
    Does anyone know if there is a way via PowerShell to activate all user profiles?
    Environment: SharePoint 2013

    That is probably the best, most consistent way. It would be isolated to that particular SA, so there shouldn't be security concerns. Otherwise you'll constantly run into this issue.
    This should work with SharePoint 2013:
    http://blog.bugrapostaci.com/2011/10/03/create-all-users-personal-site-via-powershell-script-sharepoint-2010/
    But you'd need to continually run it to capture new users.
    Another one specifically for 2013 if the above doesn't work:
    http://www.getinthesky.com/2014/04/powershell-create-mysites-users/
    Trevor Seward
    Follow or contact me at...
    This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

  • BPC Properties and Use

    I'm currently at a client and the situation they have is that for the ENTITY dimension, they have various numerical fees .  There are close to 10-15 fees and thus I've created 10-15 Properties for each fee.  The fee's will be standard across all categories and time, hence no need to store it as an account as that would be would require maintenance as I assume I would have to copy it across Time and Categories, whereas through properties, once its added there is no need to change it.    
    The goal is through Script logic to use the Property/Fee attributed to the Entity and perform calculations.  In BPC is it possible to write Script Logic that could call the property and then perform a calculation?  I assume I would have to create each of the fees as properties and make them "InAPP" in order to perform calcs?
    Thanks,
    Pras

    I may not be following your question so pardon if I don't actually fully answer.  When you maintain a dimension member sheet, with members and properties in the microsoft version, you may leave more data in the sheet than is stored in the dimnesion.  But only the PROPERTIES that are defined in the Manitain dimension properties will be stored in the application, with the exception of FORMULAH# entries.  In addition, in the SQL table there are other properties that are stored as part of the processing that may referenced using EVPRO, such as LEVEL. 
    Some of the unlisted properties are part of the code for the product and will be part of the table in the background, but ONLY the properties that generally are added may be used by logic or the cube based on the INAPP setting.
    Hope this helps.

Maybe you are looking for