ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Verify the Logid status

    IT Discussion
    active directory windows powershell search-adaccount
    2
    35
    2.3k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • scottalanmillerS
      scottalanmiller @Lakshmana
      last edited by

      @lakshmana said in Verify the Logid status:

      @scottalanmiller said in Verify the Logid status:

      @lakshmana said in Verify the Logid status:

      @scottalanmiller I don't need whole list but need to get the details of my 1500 User Id only.I just need information regarding whether its enabled or disabled ?.Whether this link helps

      http://community.idera.com/powershell/ask_the_experts/f/active_directory__powershell_remoting-9/20099/ad-accounts-disabled-enabled-query

      Oh, only one user? Why not check ID 1500 manually then?

      Need to confirm True or False from AD all the 1500 Users in the .Csv file

      I'm confused. You need which 1500 users?

      LakshmanaL 1 Reply Last reply Reply Quote 0
      • LakshmanaL
        Lakshmana @scottalanmiller
        last edited by

        @scottalanmiller said in Verify the Logid status:

        @lakshmana said in Verify the Logid status:

        @scottalanmiller said in Verify the Logid status:

        @lakshmana said in Verify the Logid status:

        @scottalanmiller I don't need whole list but need to get the details of my 1500 User Id only.I just need information regarding whether its enabled or disabled ?.Whether this link helps

        http://community.idera.com/powershell/ask_the_experts/f/active_directory__powershell_remoting-9/20099/ad-accounts-disabled-enabled-query

        Oh, only one user? Why not check ID 1500 manually then?

        Need to confirm True or False from AD all the 1500 Users in the .Csv file

        I'm confused. You need which 1500 users?

        @scottalanmiller said in Verify the Logid status:

        @lakshmana said in Verify the Logid status:

        @scottalanmiller said in Verify the Logid status:

        @lakshmana said in Verify the Logid status:

        @scottalanmiller I don't need whole list but need to get the details of my 1500 User Id only.I just need information regarding whether its enabled or disabled ?.Whether this link helps

        http://community.idera.com/powershell/ask_the_experts/f/active_directory__powershell_remoting-9/20099/ad-accounts-disabled-enabled-query

        Oh, only one user? Why not check ID 1500 manually then?

        Need to confirm True or False from AD all the 1500 Users in the .Csv file

        I'm confused. You need which 1500 users?

        Actually I am having .csv with 1500 Username and i need to check the same username with the AD for the Disabled status.How to do with the above powershell command ?

        scottalanmillerS 1 Reply Last reply Reply Quote 0
        • scottalanmillerS
          scottalanmiller @Lakshmana
          last edited by

          @lakshmana said in Verify the Logid status:

          @scottalanmiller said in Verify the Logid status:

          @lakshmana said in Verify the Logid status:

          @scottalanmiller said in Verify the Logid status:

          @lakshmana said in Verify the Logid status:

          @scottalanmiller I don't need whole list but need to get the details of my 1500 User Id only.I just need information regarding whether its enabled or disabled ?.Whether this link helps

          http://community.idera.com/powershell/ask_the_experts/f/active_directory__powershell_remoting-9/20099/ad-accounts-disabled-enabled-query

          Oh, only one user? Why not check ID 1500 manually then?

          Need to confirm True or False from AD all the 1500 Users in the .Csv file

          I'm confused. You need which 1500 users?

          @scottalanmiller said in Verify the Logid status:

          @lakshmana said in Verify the Logid status:

          @scottalanmiller said in Verify the Logid status:

          @lakshmana said in Verify the Logid status:

          @scottalanmiller I don't need whole list but need to get the details of my 1500 User Id only.I just need information regarding whether its enabled or disabled ?.Whether this link helps

          http://community.idera.com/powershell/ask_the_experts/f/active_directory__powershell_remoting-9/20099/ad-accounts-disabled-enabled-query

          Oh, only one user? Why not check ID 1500 manually then?

          Need to confirm True or False from AD all the 1500 Users in the .Csv file

          I'm confused. You need which 1500 users?

          Actually I am having .csv with 1500 Username and i need to check the same username with the AD for the Disabled status.How to do with the above powershell command ?

          Is the username 1500? You keep saying "1500 Username" but this phrase doesn't mean anything to me.

          Do you mean "1500 usernames", meaning 1,500 different usernames? Or do you mean someone whose username is 1500? And if 1,500 usernames, why so many, but not all?

          LakshmanaL 1 Reply Last reply Reply Quote 0
          • LakshmanaL
            Lakshmana @scottalanmiller
            last edited by

            @scottalanmiller 1500 Numbers of Different Usernames

            scottalanmillerS 1 Reply Last reply Reply Quote 0
            • scottalanmillerS
              scottalanmiller @Lakshmana
              last edited by

              @lakshmana said in Verify the Logid status:

              @scottalanmiller 1500 Numbers of Different Usernames

              Okay, then write it like this.... 1,500 usernames. The comma, the capital letter, the lack of plural ending all indicate something other than you were intending.

              Now that we have an idea of what we are trying, which 1,500 as it is not all that are in the file? How do we determine which 1,500?

              LakshmanaL 1 Reply Last reply Reply Quote 0
              • LakshmanaL
                Lakshmana
                last edited by

                The .csv file have Serial Number staring from 1-1500 numbers where the usernames are mentioned where i need to check whether it is disabled or not from AD

                1 Reply Last reply Reply Quote 0
                • LakshmanaL
                  Lakshmana @scottalanmiller
                  last edited by

                  @scottalanmiller said in Verify the Logid status:

                  @lakshmana said in Verify the Logid status:

                  @scottalanmiller 1500 Numbers of Different Usernames

                  Okay, then write it like this.... 1,500 usernames. The comma, the capital letter, the lack of plural ending all indicate something other than you were intending.

                  Now that we have an idea of what we are trying, which 1,500 as it is not all that are in the file? How do we determine which 1,500?

                  Whether the above powershell can be used for my commands ?

                  1 Reply Last reply Reply Quote 0
                  • scottalanmillerS
                    scottalanmiller
                    last edited by

                    Maybe make two files, then just loop through them. Without having the files and their exact formats, there is no way for us to help beyond giving high level ideas.

                    LakshmanaL 1 Reply Last reply Reply Quote 0
                    • LakshmanaL
                      Lakshmana @scottalanmiller
                      last edited by

                      @scottalanmiller How to do that ?

                      1 Reply Last reply Reply Quote 0
                      • LakshmanaL
                        Lakshmana
                        last edited by

                        Need to have .csv in two different location ?

                        scottalanmillerS 1 Reply Last reply Reply Quote 0
                        • LakshmanaL
                          Lakshmana
                          last edited by

                          the command to get the output in powershell is (Get-ADUser Username).Enabled.

                          Need to use this in powershell

                          scottalanmillerS 1 Reply Last reply Reply Quote 0
                          • scottalanmillerS
                            scottalanmiller @Lakshmana
                            last edited by

                            @lakshmana said in Verify the Logid status:

                            Need to have .csv in two different location ?

                            Two files but one location.

                            1 Reply Last reply Reply Quote 0
                            • scottalanmillerS
                              scottalanmiller @Lakshmana
                              last edited by

                              @lakshmana said in Verify the Logid status:

                              the command to get the output in powershell is (Get-ADUser Username).Enabled.

                              Need to use this in powershell

                              In BASH this would be so easy. Or Python.

                              LakshmanaL 1 Reply Last reply Reply Quote 0
                              • LakshmanaL
                                Lakshmana @scottalanmiller
                                last edited by

                                @scottalanmiller Through the powershell i am running this

                                $UsersFromFile = Get-Content -Path 'd:\temp\UserList.csv'
                                ForEach ($Username in $UsersFromFile)
                                {(Get-ADUser -Identity $UserName).Enabled}

                                Where the data is fetching but error comes there for all the users.I need to append the status in the .csv too

                                LakshmanaL 1 Reply Last reply Reply Quote 0
                                • LakshmanaL
                                  Lakshmana @Lakshmana
                                  last edited by

                                  @lakshmana The above helps me and its working but i need the output of that file to be append at the same .csv file which is not working.How to do that ?

                                  1 Reply Last reply Reply Quote 0
                                  • 1
                                  • 2
                                  • 2 / 2
                                  • First post
                                    Last post