Get-ADUser : The server has returned the following error: invalid enumeration context.

I'm running a powershell command to add the email (AD mail) attribute to users in a specific OU.  It seems to work then will bomb out with the error in the title.
I'm using a "scripting guy" command that I've altered with my specfic OU/domain information however, I'm pasting in the more "generic" version :: Get-ADUser -LDAPFilter "(!(mail=\.name*))" -resultSetSize $null -searchbase "ou=test,dc=nwtraders,dc=com"|
% {set-aduser -identity $_.distinguishedname -email ($_.samaccountname + "@nwtraders.com")}
I work for a school district and this command is being used to add the mail attribute to the student's accounts.  I think about 2/3 of the students are completed but the script/command bombs and I'm not sure where or why.  I've resubmitted the
command several times but I'm not sure whether it's starting from where it bombed or if it's starting again at the beginning and essentially re-doing the ones already completed.
Can someone point me in the direction of a work around or a resolution to the Get-ADUser error?
Thanks!!

I don't know the error, so I can only guess there. But the LDAP syntax filter cannot be correct. Can you provide a link to the reference where "Scripting Guy" suggested this?
As written, you are retrieving all users where the mail attribute does not begin with the string ".name" (case insensitve), where "name" is not a property or attribute, but a string value. LDAP syntax clauses are in the format:
(<attributeName><operator><value>)
In your case, <operator> is "=", <attributeName> is "mail", and <value> is ".name". The "\" character is the escape character, which means to interpret the following character (the period in
this case) literally. You cannot use an attribute name on the right side of the operator (the "="), unless PowerShell has introduced some functionality I am not familiar with to expand the LDAP syntax. For example, the following does not filter
on users where the first name is the same as the last name:
(givenName=\.sn)
Instead, it filters on users where the first name is the string ".sn". Even if "\.name" was interpreted by the Get-ADUser cmdlet to be the "Name" attribute of the user, this would cause problems. "Name" is the
Relative Distinguished Name of the user (the value of the cn attribute) and it could include commas or spaces. I would expect "\.sAMAccountName" to make more sense.
Richard Mueller - MVP Directory Services

Similar Messages

  • Getting an error prompt "the facebook server has returned an unknown error and is not able to fulfill your request. (2001)"

    Hi. I need help regarding facebook for blackberry. I cannot post any status update, i keep on receiving an error prompt "the facebook server has returned an unknown error and is not able to fulfill your request. (2001)".  it has been like this for the past 3 days. I already did the hard reboot many times, re-send service book though i do'nt think it's needed, and tried uninstalling and reinstalling the facebook application too but still getting the same error everytime i try to post a status update. I can comment to messages on my wall and other profiles, the news feed is updating in time too, i can also log-in and out to facebook with no problem, as well as other applications on my phone like foursquare, BBm, ubersocial, BB protect, BB app world, etc, are all working perfectly fine. And now I don't know what seems to be the problem.
    I've already contacted my network provider and told me that the error i'm getting is beyond their scope.
    Is anybody having the same problem as mine? 
    Can someone in BB support team help me regarding this issue and tell me what should I do?
    Thank you in advance. 

    I got the same issue !! Since I've updated my Facebook app 2 or 3 week ago !
    I can not  update my status and check-in ! It gives me "the facebook server has returned an unknown error and is not able to fulfill your request. (2001) "
    I can upload photo, put comment on people, like people status/picture. The news feed update perfectly !
    I also  tryied to uninstall reinstall the app, reboot etc etc ! I still can't update my status !!!! I've installed 3.0.0.17 this morning and the issue is still there...
    I've remarked one thing... On my facebook under "privacy setting/the Apps, Games and Websites" I used to have a "blackberry app" installed. It's not there anymore and I didn't remove it.
    I don't know how to reinstall it...

  • A connection to the server has failed. (status=403) error

    Hi,
    I have created an application with ADF security. When a user is redirected to the login.jspx page, if he clicks on any tab on the menubar(each of which are different jspx pages), it throws a pop up with the following error message-
    "A connection to the server has failed. (status=403)"
    Can someone please tell me where the problem lies.
    Regards
    Apoorva

    Hi Apoorva,
    When there is no welcome page defined in the application's web.xml file you can get a 403 error.
    Also note that when an user has not been authenticated yet, should not have access to any secured pages, any navigation component on the welcome page that points to a secured page. So if that's the case, any component that points to secured pages should be hidden.
    For further information you can take a look at the document available at http://docs.oracle.com/cd/E14571_01/web.1111/b31974/adding_security.htm#BABDEICH
    Hope this helps.
    Thanks,
    Cris

  • "A Connection to the server has failed" Pop up error message.

    Hi All,
    We have build Oracle ADF application in which we are halted with pop-up error message "A connection to the server has failed" whenever we entered apostrophe (') in input text field all other special character are acceptable except ('). Please advise how we can get rid of this error.
    Thanks,
    Abhishek

    Hi,
    Not really my area but generally if you have an 'unusual' username required (like one that starts with a number etc) it's generally rejected by oracle. However if you surround it with double quotes it will work OK. Can you somehow incorporate this into how the adf app is connecting (wrap the username in double quotes)?
    Another approach would be to just have some form validation which rejecting any ' characters before it tried to even do a login and gave a nice friendly message saying 'dont use apostrophes'?
    Regards,
    Harry

  • How the client to detect  the server has closed the socket?

    if the server closed the socket by an unnormal way, for example, closing the socket compulsively. Then the client will show the "IOException:java.net.SocketException: Connection reset" message,
    how the client to avoid such an error message to the user/customer, I mean , what the client can deal with such a message?
    where to put the dealing code?
    try{ int receivedLength=in.read(receivedBytes);
    }catch(SocketException e){
    // put the code here? }
    catch(IOException e){
    }

    Do you know how to prove it---"a socket read should
    always always always have a timeout";As ejp said (IMHO ...) it's his opinion and doesn't need proof. I respect his opinion, but I often write code that doesn't set this.
    Instead I use 2 threads per connection, and don't care if the read thread goes to sleep, since I can still write. If you only have one thread per connection, you better ensure that the read will end in a relatively short amount of time, even if your partner decides it's time to go for lunch.
    how the length of this timeout will be? That is a business decision, it all depends on the expected time between received messages and is application dependent.
    is it a field of the socket?If you are using blocking mode sockets you set this with setSoTimeout. If you are using non blocking mode NIO you specify it on the select call, although the soTimeout should also work there, although I've never tried that.

  • The server has experienced a directory error

    I'm getting this error when trying to log into GroupWise Messenger. The
    last time this happened, I had to stop and restart the groupwise
    messenger agents. Any suggestions as to how to prevent this?

    Beau,
    It appears that in the past few days you have not received a response to your
    posting. That concerns us, and has triggered this automated reply.
    Has your problem been resolved? If not, you might try one of the following options:
    - Do a search of our knowledgebase at http://support.novell.com/search/kb_index.jsp
    - Check all of the other support tools and options available at
    http://support.novell.com.
    - You could also try posting your message again. Make sure it is posted in the
    correct newsgroup. (http://support.novell.com/forums)
    Be sure to read the forum FAQ about what to expect in the way of responses:
    http://support.novell.com/forums/faq_general.html
    If this is a reply to a duplicate posting, please ignore and accept our apologies
    and rest assured we will issue a stern reprimand to our posting bot.
    Good luck!
    Your Novell Product Support Forums Team
    http://support.novell.com/forums/

  • Internet Explorer:A Connection to the server has failed (status=12152)

    I am getting "A Connection to the server has failed (status=12152)" error in my adf application when using Internet Explorer. The application is deployed on a hosted server with SSL.
    This seems to happen randomly. After clicking on "OK" and the action is correctly performed again. I don't have this issue in Firefox.
    There are no error messages in the server logs.
    Can you please let me know how to fix this issue.
    ADF:11.1.1.6
    WLS: 10.3
    Thanks
    Shobana

    Hi,
    I am experiencing the same problem.
    Can anyone help?
    Thanks.

  • "A connection to the server has failed" occurs in 3 minitues

    I have deployed a web application(ADF) that inserts batch of records(over 50k) to the DB and client is expected to wait for the response.
    But after client invoke the insert browser produce "A connection to the server has failed" java script error exactly after 3 minutes.
    So the connection between client and Web Logic 10.3 is failing. Insert to DB continues to work.
    Is this due to a timeout, why this error comes? How to configure web logic to avoid this.
    -Prasad

    PR,
    You've been given some advice on the ADF forum in terms of how to deal with this (e.g., make the process asynchronous and use an af:poll/af:progressBar to keep the user informed).
    Expecting a single HTTP request to work without timing out when you insert 50,000 rows one-by-one into the database is unrealistic.
    John

  • Getting Error: Invalid Payee context values Org parameters exist only with

    I am using Supplier site conversion API called " pos_vendor_pub_pkg.create_vendor_site ".
    I am getting following error -
    "Invalid Payee context values. Org parameters exist only with party site and supplier site. "
    but those suppliers are converted properly. only site giving this issue.
    Can anyone help on this area.
    Thanks
    Sathiya

    The issue is that you are mapping "Data Value" to amount in the Target Application import format:
    SELECT SCENARIO "Scenario" 
      ,YEAR "Year"
      ,PERIOD "Period"
      ,DATAVIEW "View"
      ,DATAVALUE "Value"
      ,ACCOUNT "Account"
      ,ENTITY "Entity"
      ,ICP "ICP"
        ,UD2 "Area"
        ,UD1 "Tail"
        ,UD3 "Special"
        ,UD4 "Facility"
      ,AMOUNT "DataValue"
      FROM AIF_HS_BALANCES
      WHERE LOADID = 300
    You need to map AMOUNT to "AMOUNT" in the HFM Application.  Check that the dimension mapping is correct for the class in the target application and that your import format is going to the proper target dimension(Amount).    

  • I have downloaded firefox but when I open it I get the following message 'Firefox has detected that the server is redirecting the request for this address in a way that will never complete'. What do I do?

    I have downloaded firefox but when I open it I get the following message 'Firefox has detected that the server is redirecting the request for this address in a way that will never complete'. What do I do?

    See:
    * http://kb.mozillazine.org/The_page_is_not_redirecting_properly
    Clear the cache and the cookies from sites that cause problems.
    * "Clear the Cache": Tools > Options > Advanced > Network > Offline Storage (Cache): "Clear Now"
    * "Remove the Cookies" from sites causing problems: Tools > Options > Privacy > Cookies: "Show Cookies"

  • I can no longer log into my ichat linked to my gmail.  right after opening up ichat, receive the following message:  lost connection with jabber.  the server has unexpectedly disconnected.

    i can no longer log into my ichat linked to my gmail.  right after opening up ichat, receive the following message:  lost connection with jabber.  the server has unexpectedly disconnected.  how to troubleshoot?  thanks.

    Hi,
    There can be many reasons why the Login is "up the creek".
    Any break in the network at your end whilst logged in will cause  an issue.
    A sort of discrepancy between what iChat thinks the state should be and what the server thinks.
    If they don't agree the server will refuse to accept.
    A Crash at the server end which does not log you out properly will also do it.
    Any file at any time can be come corrupted.
    Luckily with the iChat .plists they are recreated if removed with an iChat Restart.
    If it were AIM you can also get your Account Suspended  and this will not log you in.
    (It tends to happen from Chat rooms where people notify AIM about bad behaviour (as they see it) and you have to apply to get Un-suspended).
    Most of the big IM services use multiple servers.
    Sometimes these go out of Sync.
    In the case of AIM this happens when they remove Old unused Screen Names from people's Buddy List prior to making them available for re-registration.  I am not sure if this happens at Google.
    You seem to be talking about an account that has worked at Work and having new computer at home.
    As I mentioned the Priority thing you have not said that it has coincided with the new computer logging in  (this will kick the work Computer out of Google whether you are logged in  on the Web Mail page or in iChat)
    IN addition to that iChat stays partially logged in for Off Line IMs
    This is done in the background by a support app called iChatAgent
    If your Computer is ON but ichat is not started people can still send you Messages.
    Instead of saving these on the server until you login iChat will start up.
    Depending if the home Mac is effecting the Work Login it may be holding sway over your Login.
    Using your girlfriend's login may have booted her Off Line where she normally uses the name/login.
    The AIM Side can be specifically set to allow Multiple Logins and therefore NOT allow them.  If this happens you get a warning and messages to do something about it.
    You do not get these in any Jabber or Google Login as the Priority setting is supposed to take care of it.
    If the Login works at the Web Mail Login and on one computer then the .plist on the work computer is the most likely issue.
    There is a small chance that a Corrupt Buddy Pic (Home Folder/Library/Caches/com.apple.iChat/Pictures) may be the cause.
    Set this folder to icon view and also use the Finder's View Menu > Show View Options and select icon view.
    This should show all pics as their icon.
    Check that all display properly.
    At this point I would try a COMBO version update install of the last Update you did over what you have.
    This often corrects hard to trace things
    The 10.5.8 COMBO is here
    11:28 PM      Monday; June 20, 2011
    Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb( 10.6.7)
     Mac OS X (10.6.7),
    "Limit the Logs to the Bits above Binary Images."  No, Seriously

  • I have customized my Firefox toolbar. After closing the browser and then reopening it, the toolbar has returned to the way it was before I customized it. How do I get my customization of the toolbar to become permanent?

    I have customized my Firefox toolbar several times. After closing the browser and then reopening it, the toolbar has returned to the way it was before I customized it each time. How do I get my customization of the toolbar to become permanent?
    It has occurred with Firefox 4.0.1 and 5.0

    see http://kb.mozillazine.org/Corrupt_localstore.rdf
    Take a picture of your toolbars so you can easily reconstruct them from the default after solving the the problem.
    If it happens to you it will probably happen again in the future so you might want to keep some copies of your modified localstore.rdf file so you can delete the bad one and rename one of the replacements in waiting. Saving, copying and renaming must be done with Firefox down, of course.

  • Google calendar is getting the error "Firefox has detected that the server is redirecting the request for this address in a way that will never complete." I have tried disabling cookies, clearing cookies and cache but that didn't work.

    Google calendar is getting the error "Firefox has detected that the server is redirecting the request for this address in a way that will never complete." I have tried disabling cookies, clearing cookies and cache but that didn't work.

    Clear the cache and the cookies from sites that cause problems.
    * "Clear the Cache": Tools > Options > Advanced > Network > Offline Storage (Cache): "Clear Now"
    * "Remove the Cookies" from sites causing problems: Tools > Options > Privacy > Cookies: "Show Cookies"
    * http://kb.mozillazine.org/The_page_is_not_redirecting_properly

  • I can't access Facebook. I keep getting the "Firefox has detected that the server is redirecting the request for this address in a way that will never complete". I have cleared cache, cookies, history, offline storage. Nothing has worked.

    can't access Facebook. I keep getting the "Firefox has detected that the server is redirecting the request for this address in a way that will never complete". I have cleared cache, cookies, history, offline storage. Nothing has worked.

    Start Firefox in [[Safe Mode]] to check if one of your add-ons is causing your problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    See [[Troubleshooting extensions and themes]] and [[Troubleshooting plugins]]

  • Can't access mail - getting message the connection to the server has timed out

    can't access mail - getting message the connection to the server has timed out

    Hi mtc,
    Has it worked before?
    Are you running any anti virus apps?
    If using a browser to login via WebMail, does that work?

Maybe you are looking for

  • What I should do If I move fact and dimension tables from one server to other server

    Hi I have question like what all changes need to be done  in EPM System if we move the Fact and Dimension tables to a different server.            Reply me asap and thanks in advance

  • Business connector exceptions(java)

    Hi, I am getting java exceptions from Business connector server continously.Need to know the root cause of these errors and how they can be eliminated. The error i am getting is as below: com.sap.mw.jco.JCO$Exception: (108) RFC_ERROR_INTERNAL: intern

  • HT4847 Photo backup on pc from icloud website ?

    Can i access photos from the icloud website taken on my iphone or ipad, but accessed via a pc ? I don't see a photo stream icon on the site ! This would make printing pics much easier.

  • Driver installation issue...

    Hello. I'm trying to deploy Windows 7x64 on a ThinkPad W520 and I encountered some problems with video card driver. The video card installed on the system is Nvidia Quadro 1000M. So, I imported all the drivers for this model into SCCM 2007, I created

  • Using Dell Latitude D630 with Windows 7 and Adobe CS6 - PCMCIA hardware accelerators?

    I have a separate thread going using the hardware accelleration that comes with the Intel Mobile 965 Express Chipset not working for me, and trying to figure out how to get OpenGL and 3d features of Photoshop CS6 to work. So, I was thinking maybe a w