PowerShell for User Information

Hello,
Is there a PowerShell Script available that will export to a cvs to display user information like the users name into two different  columns example: Firstname in one column and last name in next column and show email address, and office location
from Active Directory?
Thanks

Hi,
Prewritten scripts can be found in the repository here:
http://gallery.technet.microsoft.com/scriptcenter
If you'd like to try this yourself, you can use Get-ADUser to get your information and Export-Csv to create an output file:
http://ss64.com/ps/get-aduser.html
http://ss64.com/ps/export-csv.html
Let us know if you have any specific questions.
EDIT: You'll also need Select-Object:
http://ss64.com/ps/select-object.html
Don't retire TechNet! -
(Don't give up yet - 13,225+ strong and growing)

Similar Messages

  • Need Help to query Lync Database for User Information

    Need Help to Query the lync database to retrieve below user information.
    1. SIP Address of the registered user
            2. Phone Number configured to the particular account.
            3. IP Address
           4. Last Logged in time.
    I am trying to pull the above information from rtc database for all the registered users. Please let me know if this is possible and it would be great if you can throw some light on what tables to look for the data. Thank You.

    Hi,
    For SIP address and Phone number you can check RTC database.
    IP Address:
    You can refer to the link below to query IP address: 
    http://h30499.www3.hp.com/t5/Business-Service-Management-BAC/Monitoring-Lync-with-the-User-Registrations-Viewer-Free-NMC-tool/ba-p/5961497#.UtOU43mIrwo
    Note: Microsoft is providing this information as a convenience to you. The sites are not controlled by Microsoft. Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there.
    Please make sure that you completely understand the risk before retrieving any suggestions from the above link.
    Last Logged in time:
    You can refer to the link below:
    http://blogs.technet.com/b/dodeitte/archive/2011/05/11/how-to-get-the-last-time-a-user-registered-with-a-front-end.aspx
    Best Regards,
    Eason Huang
    Eason Huang
    TechNet Community Support

  • Creating multiple mailboxes using Powershell for users who already exist in AD

    Hi there,
    Wondering if anyone can help, I am wanting to use Powershell to run a command which references a CSV file to create a mailbox for a user who already exists in AD.
    It needs to reference the username, to ensure the correct user has a mailbox created (as mentioned they exist already in the domain), place them on a specific database (e.g DB1) and assign them an email address as well as possibly an alias email address
    too.
    Can anyone provide me the headings of the CSV file which would be needed as well as the powershell command to run. It would be great too if I could also set the quota sizes for the user at the same time of creating the mailbox, but if not possible or complicated
    I can run a script afterwards to do this. I would only want to warn them when their mailbox is 1.5GB in size and stop them sending when it reaches 2GB. 
    Thanks

    So create a csv file with the following headers and data
    UserID, Alias
    UserID should be the user SamAccountName, and the Alias is the Mailbox Alias that you want to set. Supposing that the csv file is named users.csv and located under C:\ , open the Exchange Management Console and run:
    $users = Import-Csv c:\users.csv
    Foreach ($user in $users) {
    Enable-Mailbox -Identity $user.UserID -alias $user.alias -database 'DB1'
    Set-Mailbox -Identity $user.UserID -IssueWarningQuota 1.5gb -ProhibitSendQuota 2gb 
    Please Mark As Answer if this helps
    ammarhasayen

  • Separate LDAPs for Users information and Authentication

    Does anyone know how to point the Directory Provider and Authentication provider to different LDAPs? This is very easy to do with Policy Server by configuring the login-config.xml file to use the com.adobe.edc.server.provider.authentication.login.LDAPLoginModule class and specifying the LDAP connection properties. However, I have yet to find a way to do it with Workflow. I tried doing it exactly the same way as policy server, but that does not work.
    Has anyone done this before, or know how to do it without writing code? I don't want to have to write my own LDAP authentication provider if one already exists (which it does for Policy Server).

    Hello Linda,
    This is possible. You can have project online and Project Pro for office 365 on two different tenant. Once you install Project Professional, you need to configure the account in project professional to connect to your project online tenant. Below article
    contains the steps connect to project server from Project Professional. In step 4 user have to enter the URL of Project online tenant and when they try to connect they need enter their Project Online credentials. Everything should work as expected.
    http://office.microsoft.com/en-in/project-help/connect-log-on-to-project-server-HA010373238.aspx
    In fact once you install the Project professional for office 365, you can connect to any PWA instance to which you have access to (on-premise and online).
    Hope this helps!
    Kiran K.

  • Creating a New Email address policy for users in another Domain with Exchange 2013 powershell?

    Hi
    Everyone
    Is it possible to create a new-emailaddress policy with Exchange
    2013 Powershell, for users within OU´s located on another different
    domain/forest than where Exchange 2013 is installed?
    There
    is a Transitive, two way trust between the domain/forest where the users are
    located - and the Exchange 2013, multi tenant domain.
    Further
    more, and if possible, I need to create linked mailboxes to all these users as
    well.
    Í have been struckling with this issue for weeks, so please anyone -
    advice - and comment.
    Best
    Regards
    Peter
    A-ONE Solutions

    Hi Siddharth
    I want to create a new e-mailaaddress policy - and after that create linked mailboxes/users in my account domain with powershell.
    Can you help me achieve that ?
    I have a powershell CMDlet, but i doesn´t work. (Cannot fint user OU in my account domain)
    CMDlet is as follows:
    New-EmailAddressPolicy -Name $CustomerName   -RecipientContainer "OU=$CustomerName, OU=kunder, DC=Domain, DC=local" -IncludedRecipients 'AllRecipients' -ConditionalCustomAttribute1 $CustomerName -Priority '1' -EnabledEmailAddressTemplates SMTP:%2g%1s@$AcceptedEmailDomain
    Where $Customername = test.dk
    and Account domain is = OU=kunder, DC=Domain, DC=local
    But the command fails with:
    New-EmailAddressPolicy : Couldn't find organizational unit "OU=Test.dk, OU=kunder, DC=Domain, DC=local". Make sure you have typed the name correctly.
    At line:52 char:1
    + New-EmailAddressPolicy -Name $CustomerName   -RecipientContainer "OU=$CustomerNa
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : NotSpecified: (:) [New-EmailAddressPolicy], ManagementObjectNotFoundException
        + FullyQualifiedErrorId : [Server=HE-MBX03,RequestId=2cbe1b51-4af2-4c04-9f7e-e440000975e6,TimeStamp=24-03-2014 12:58:19] 2D00FD2A,Mi 
       crosoft.Exchange.Management.SystemConfigurationTasks.NewEmailAddressPolicy
    So, I cannot find the OU on the Account forest/Domain, even though the OU do exists in the Account domain. 
    Verifying with this: 
    Get-ADOrganizationalUnit -Identity "OU=$CustomerName,OU=kunder,DC=Domain,DC=local" –Server ‘DC01.domain.local’| FL
    This works fine, Can you please help/assist?
    Peter

  • Aski user information while trying to print a report from a web application

    Hi,
            I am trying to print a report from web application. When I click on the print button then the page is redirected to the below link and asking for user information. See the below given link for more help.
    _http://<server><port>PlatformServices/service/app/logon.do?appKind=InfoView&service=%2FOpenDocument%2FappService.do&backContext=%2FOpenDocument&backUrl=%2Fopendoc%2FopenDocument.jsp%3FSERVICE%3D%252FOpenDocument%252FappService.do%26OBJIDS%3D20016421%26backUrl%3D%252Fcontent%252Fview.do%26PREF%3DmaxOpageUt%253D200%253BmaxOpageC%253D10%253Btz%253DUS%252FPacific%253BmUnit%253Dinch%253BshowFilters%253Dtrue%253BsmtpFrom%253Dtrue%253BpromptForUnsavedData%253Dtrue%253B%26CONTAINERID%3D6424083%26backContext%3D%252FPlatformServices%26LOC%3Den%26APPKIND%3DInfoView%26PVL%3Den%26ACTID%3D280%26service%3Dtimeout&backUrlParents=1&appName=OpenDocument&prodName=BusinessObjects+Enterprise&cmsVisible=false&cms=<servername>%3A6600&authenticationVisible=false&authType=secEnterprise&sso=false&sm=true&smAuth=secLDAP&persistCookies=true&sessionCookie=true&useLogonToken=true
    The instance Id for the report is generated successfully and the staus of the report is showing as success on Business Objects server side ie. crystal server side.
    And we are using OpneDocumentURL for generating the report. And the in the URL we are passing the "Instatce ID" and the "Token" which Both are generated successfully.

    Hi,
    This is a crystal report link which i am trying to print.
    The actual URL to generate a report is,
    http://servername:port/OpenDocument/opendoc/openDocument.jsp?&iDocID=22874532&token=systemname%4022874531JOLS2B40fr7cuAE522874529JVB36Yr3PswjM7IP
    but it is redirected to below URL,
    http://servername:port/PlatformServices/service/app/logon.do?appKind=InfoView&service=%2FOpenDocument%2FappService.do&backContext=%2FOpenDocument&backUrl=%2Fopendoc%2FopenDocument.jsp%3FPREF%3DmaxOpageUt%253D200%253BmaxOpageC%253D10%253Btz%253DUS%252FPacific%253BmUnit%253Dinch%253BshowFilters%253Dtrue%253BsmtpFrom%253Dtrue%253BpromptForUnsavedData%253Dtrue%253B%26service%3Dtimeout%26CONTAINERID%3D21700595%26backContext%3D%252FPlatformServices%26ACTID%3D279%26OBJIDS%3D22874532%26SERVICE%3D%252FOpenDocument%252FappService.do%26APPKIND%3DInfoView%26LOC%3Den%26PVL%3Den%26backUrl%3D%252Fcontent%252Fview.do&backUrlParents=1&appName=OpenDocument&prodName=BusinessObjects+Enterprise&cmsVisible=false&cms=systemname&authenticationVisible=false&authType=secEnterprise&sso=false&sm=true&smAuth=secLDAP&persistCookies=true&sessionCookie=true&useLogonToken=true
    -VinodC

  • Attribute for user contains errors. Inform system admin

    Hello,
    We've got an issue with shopping carts created by a user that was deleted from system. When trying to see in Monitoring Shopping Carts header or item details of a given sc. A web error occurs:
    The URL http://srp.srm.gruposalinas.com.mx:8000/sap/bc/gui/sap/its/bbpsc11/! was not called due to an error.
    Note
    The following error text was processed in the system SRP : Attribute for user contains errors. Inform system admin.
    The error occurred on the application server srm-pro_SRP_00 and in the work process 2 .
    The termination type was: TH_RES_FREE
    The ABAP call stack was:
    Form: OUTPUT_EXPRESS_MESSAGES of program SAPLBBP_SC_UI_ITS
    Form: EXTERNAL_SCREEN_DETERMINE of program SAPLBBP_SC_UI_ITS
    Module: EXTERNAL_SCREEN_DETERMINE of program SAPLBBP_SC_UI_ITS
    We've cheked SAP NOTE 312058-BBPPU99: Error: Attribute for ... is missing. Inform ...
    But it seems that none of the information applies to us, since this issue is only present for Shopping carts that were created by this deleted user.
    So we tried to re-assing one of this sc, chaning PARTNER_NO,ADDR_NR    
    ADDR NP data in table CRMD_PARTNER according to a new given user, but it didn't work. So we need to know how to re-assing this sc or perhaps how to find what specific attribute is missing.
    Any advice is welcome.
    Thanks in advance.

    Hi
    <b>Which SRM version are you using ? This is an SRM error message.</b>
    The manager role should be enough to change user attribute. The transaction is BBPATTRMAINT. Employee role should have BBPUM02 or BBPAT05 to change their own attribute.
    <u>Please check whether the User ID you are using to Log into BBP_PD (and seems to be assigned in the org structure also)is consistent and has no errors in tcode USERS_GEN.  You should check the user, it's not set up properly in USERS_GEN Transaction, Else repair the user.
    To maintain the user attributes you must have the Administrator role.. Your user should have role SAP_BBP-STAL_ADMINISTRATOR and be integrated in the org structure. your user must be integrated in SRM organizational structure. To see which attributes are missing, you can click on the user in PPOMA_BBP to see details, and go to last tab "Check". This will list all required attributes depending on used scenarios (so you may not require all of them). You can also use transaction BBP_ATTR_CHECK to check user's attributes for a particular scenario.</u>
    <b>Please go through the following links as well -></b>
    bbp_mon_sc attributes
    Re: FM for attribute's value assignation in PPOMA ?
    Note 751022 - Monitor Shopping Cart: Item deletion causes termination
    Re: User Settings are not saved
    Re: Not able to generate user users_gen
    Re: SRM organization plan...
    Re: User creation error
    <u>Hope this will definitely help. Do let me know.</u>
    Regards
    - Atul

  • How to use Powershell to set delegate for user mailbox in Exchange 2010 and Office 365

    Hello,
    Can you please tell me if I can set delegate for user mailbox in Exchange 2010 or Office 365 using Powershell?
    If I can, then how can I do that? (which Powershell commands for setting the delegate?)
    Many thanks, and have a good day!

    Hi,
    If you wanted to add a delegate to possiblly a large number of users or you do this during mailbox provisioning. So the following script will use
    impersonation to access another users mailbox and add a delegate.
    $mbtoDelegate = "[email protected]"
    $delegatetoAdd = "[email protected]"
    $dllpath = "C:\Program Files\Microsoft\Exchange\Web Services\1.0\Microsoft.Exchange.WebServices.dll"
    [void][Reflection.Assembly]::LoadFile($dllpath)
    $service = new-object Microsoft.Exchange.WebServices.Data.ExchangeService([Microsoft.Exchange.WebServices.Data.ExchangeVersion]::Exchange2007_SP1)
    $windowsIdentity = [System.Security.Principal.WindowsIdentity]::GetCurrent()
    $sidbind = "LDAP://<SID=" + $windowsIdentity.user.Value.ToString() + ">"
    $aceuser = [ADSI]$sidbind
    $service.AutodiscoverUrl($aceuser.mail.ToString())
    $service.ImpersonatedUserId = new-object Microsoft.Exchange.WebServices.Data.ImpersonatedUserId([Microsoft.Exchange.WebServices.Data.ConnectingIdType]::SmtpAddress,
    $mbtoDelegate);
    $mbMailbox = new-object Microsoft.Exchange.WebServices.Data.Mailbox($mbtoDelegate)
    $dgUser = new-object Microsoft.Exchange.WebServices.Data.DelegateUser($delegatetoAdd)
    $dgUser.ViewPrivateItems = $false
    $dgUser.ReceiveCopiesOfMeetingMessages = $false
    $dgUser.Permissions.CalendarFolderPermissionLevel = [Microsoft.Exchange.WebServices.Data.DelegateFolderPermissionLevel]::Editor
    $dgUser.Permissions.InboxFolderPermissionLevel = [Microsoft.Exchange.WebServices.Data.DelegateFolderPermissionLevel]::Reviewer
    $dgArray = new-object Microsoft.Exchange.WebServices.Data.DelegateUser[] 1
    $dgArray[0] = $dgUser
    $service.AddDelegates($mbMailbox, [Microsoft.Exchange.WebServices.Data.MeetingRequestsDeliveryScope]::DelegatesAndMe, $dgArray);
    Hope this helps.

  • Event 3351, SQL database login for 'DB_Config' on instance failed. Additional error information from SQL server is mentioned below. Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'.

    category-database
    event id-3351
    source-sharepoint foundation
    SQL database login for 'DB_Config' on instance 'DB\instance' failed. Additional error information from SQL Server is included below:
    Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'.
    I have been getting this error every hour on only 1 application server of the 2.
    My farm consists of 2 app servers, 2 wfes & 2 sql nodes.
    My public site is working fine. Authentication is NTLM.
    SharePoint VSS Writer is disabled.None of my appPool accounts are running under local system.
    I have read many forums/blogs, but couldnt find a solution for this.
    Any help would be appreciated!

    Hi,
    As I understand, you found event id 3351 in event log. Please collect more information as below:
    Check if the error also occurs on other servers in your farm.
    Check if backup job is scheduled at the time when the event id occurs.
    Please run Config Wizard or psconfig.exe -cmd secureresources on all servers and test the issue again.
    Regards,
    Rebecca Tu
    TechNet Community Support

  • BizTalk Powershell Provider Mount remote BizTalk drive: Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'

    I've been dabbling in the Powershell BizTalk Provider Extensions for some automation of deployment and such. So far it's pretty cool on a local machine, but the real benefits to me would be to do it remotely. Does anyone have any experience in the with the
    following issue?
    My BizTalk Server and SQL Servers are on separate machines which I think is the issue, but I don't know how to resolve. I've tried to provided credentials to the New-PSDrive command, but get the following errors:
    The provider does not support the use of credentials. Perform the operation again without specifying credentials.
    I'm trying to manage a remote BizTalk instance. The machine running the script has biztalk fully configured and can connect
    to the Target Server just fine. The issue comes when I try to mount the "BizTalk:" drive
    Enter-pssession -computername myServer -configurationname microsoft.powershell32
    $InitializeDefaultBTSDrive = $false;
    Remove-PSSnapin -Name BizTalkfactory.PowerShell.Extensions;
    Add-PSSnapin -Name BizTalkfactory.PowerShell.Extensions;
    New-PSDrive -Name BizTalk -PSProvider BizTalk -Root "BizTalk:\" -Instance mySqlServer -Database BizTalkMgmtDb -Scope Global
    When it get to the New-PSDrive I get the following error:
    New-PSDrive : Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'.
    + CategoryInfo : InvalidArgument: (BizTalk:PSDriveInfo) [New-PSDrive], BtsException
    + FullyQualifiedErrorId : 0,Microsoft.PowerShell.Commands.NewPSDriveCommand
    Has anyone experienced this and solved? The same error occurs when use Invoke-Command as well.

    It seems that the PowerShell provider is not Microsoft Support, it is community supported through the CodePlex site -
    http://psbiztalk.codeplex.com
    Right, I posted there as well, but there is not much movement on the site. I was hoping to find if this larger community may have had some experience with the provider.

  • Backing up user information (passkeys etc...) for erase and install.

    I know this a question that is probably better suited for the mac os x section, but I like the advice everyone gives in this forum and you are all fellow macbook users. Okay to my question the 60gig is just a little too small for my needs and there is a lot of pre-bundled progs on the macbook i dont use. I want to do an erase and install but I would like to be able to back up my user information (bookmarks, passkeys etc.).
    Help will be greatly appreciated thanks,
    EAH22

    Assuming you have enough space on the drive (6-8 GBs free) and assuming the hard drive has been repaired and is verified OK, you can do an Archive and Install and select the option to preserve the user files and network settings. This way you do not have to erase the disk and all your user files will be moved to the new system installation.
    Or you can simply delete the pre-bundled applications you don't want. This is a lot less extreme than erasing the hard drive and starting from scratch.

  • How to change the font style for user profile information in My Profile page?

    Hello,
    In my profile page, user information is getting display as below:
    Name
    Title
    Department --> Would you please let me know how can I change style for Department ( Information Technologies) Attribute in this section ?
    Thanks and Regards,
    Dipti Chhatrapati

    Hi Romeo,
    I got your point and class I require to apply is as below:
    .ms-contactcardtext3 {
        font-family:
    Arial !important;
        font-style: italic !important;
    Thank you for your trick :) 
    But its getting apply to title as well as to Department - as above class is same for both fields , while I require to change the style only for the department.
    Any suggestions ? I have changed the same using Designer which works as per the need , however - I dont want to use SPD Tool !!!
    Bottom line : I Require different font style in Title and Department without use of SPD.
    Any suggestions/idea ?
    Thanks and Regards,
    Dipti Chhatrapati

  • Reversi Sample - "The project requires user input. Reload the project for more information."

    A week ago, I downloaded the sample code examples.  Then I extracted the reverse sample code, loaded it and ran it.  All was well.
    I was just using it as a resource for example code, so no code changes.  Now, when I open the project, I get nothing loaded.
    Solution explorer displays       Solution 'Reversi' (0 Projects).    Below that
    "The project requires user input.  Reload the project for more information."
    This message shows for all three sections  Reversi, ReversiGameComponet, and ReversiComponentTests.
    Ok, so I figure I must have accidently changed something.  So, I re-extract.  Same message. 
    The only thing I can think of is that in the options, I changed the startup location for my projects.  I like to keep my code projects on the d: drive, so I changed that to D:\!!!W8.  I've always done this so that when I create a new project,
    it does it in my project directory by default.  Didn't change anything else such as the templates dir.
    I did set this back to the c:....projects, as where templates are, but that didn't help.  So, I reset to my projects directory.
    My project that I created loads ok.
    Suggestions?

    A week ago, I downloaded the sample code examples.  Then I extracted the reverse sample code, loaded it and ran it.  All was well.
    I was just using it as a resource for example code, so no code changes.  Now, when I open the project, I get nothing loaded.
    Solution explorer displays       Solution 'Reversi' (0 Projects).    Below that
    "The project requires user input.  Reload the project for more information."
    This message shows for all three sections  Reversi, ReversiGameComponet, and ReversiComponentTests.
    Ok, so I figure I must have accidently changed something.  So, I re-extract.  Same message. 
    The only thing I can think of is that in the options, I changed the startup location for my projects.  I like to keep my code projects on the d: drive, so I changed that to D:\!!!W8.  I've always done this so that when I create a new project,
    it does it in my project directory by default.  Didn't change anything else such as the templates dir.
    I did set this back to the c:....projects, as where templates are, but that didn't help.  So, I reset to my projects directory.
    My project that I created loads ok.
    Suggestions?
    Hi there,
    Can you provide the link for the sample code example so I can download and try on my machine?
    Regards,

  • Always prompting of log in information for users

     I have a requirement to always prompting of log in information for users in SharePoint site rather than taking their logged in credentials.
    Any idea??

    To deactivating Windows-Integrated authentication and use basic authentication. Refer to the following post for more information
    http://sharepoint.stackexchange.com/questions/61652/force-users-to-log-in-to-our-sharepoint-intranetsite
    http://sharepoint.stackexchange.com/questions/68784/how-to-set-default-login-with-windows-prompt-for-all-intranet-users
    --Cheers

  • Obtaining remote user information for Medrec in Wls 10.3

    I am trying to get the remote user information by invoking the getRemoteUser() method on the following request object
    faces.context.MyHttpServletRequestWrapper
    from within the MedRec application. This has always worked in the past on previous versions of Weblogic and Medrec.
    Does anybody know what has changed in 10.3?
    I can fetch the ip and url from the same object successfully.
    thanks
    Mike

    I think error message tells everything you need to know.
    Please set in weblogic-ejb-jar.xml deployment descriptor because parameter object is not serializable.
    <enable-call-by-reference>True</enable-call-by-reference>
    With this it will allow to invoke EJB locally.
    jayesh@yagna

Maybe you are looking for

  • How to add a new field in the cube and load data

    Hi, The requirement is We have  ZLOGISTICS cube , the data souce of this filed has REFDCONR-reference dcument number filed . We have to create a new field in cube load data and get this new filed into the report also. Please any one can help me with

  • Validation of Tax Codes in Purchase Order

    Dear All, We have different tax codes like v0, v1, v2 maintained in system and we have projects(WBS) like Project1, Project2 etc.  The scenario is such that if i am trying to create an account assigned purchase order for a project with account assign

  • Two step confirmation with RF device (Mobile Data Entry) - 1st step only

    Hello I want to implement the following scenario: - WM transfer orders are created, relevant for two step confirmation; - a user working with RF device confirms the 1st step - picking; - then the materials are transported physically to another buildi

  • Migration SQL Server 7.0 to Oracle 8i

    Hi, I am trying to migrate a SQL Server 7.0 database to Oracle 8i using the latest version of the Migration Workbench tool. The source model is normally generated (I see my tables and other objects) but nothing is generated in the Oracle Model... Wha

  • IS Adobe Output Designer 5.6 Compatible with Windows 7 on a 64 bit machine?

    Hi, AFter Step 4 Output Designer just crashes on me? has anyone seen this before? Open Output Designer Select the menu option File|Presentment Targets- Select the option 'Use Print Agent presentment target' Select the driver oce_vhi and click 'Font S