ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login
    1. Topics
    2. Lakshmana
    3. Posts
    • Profile
    • Following 66
    • Followers 3
    • Topics 313
    • Posts 1,763
    • Groups 0

    Posts

    Recent Best Controversial
    • RE: Verify the Logid status

      $file="c:\users.csv"
      Import-Csv $file | Foreach-Object{

      $user = ([ADSISEARCHER]"(samaccountname=$($_.SamAccountName))").FindOne()
      
      if($user)
      {
          New-Object -TypeName PSObject -Property @{
              SamAccountName = $user.SamAccountName
              IsDisabled = $user.GetDirectoryEntry().InvokeGet('AccountDisabled')
          }
      }
      else
      {
              Write-Warning "Can't find user '$($_.SamAccountName)'"
      }
      

      }

      I have only Username details how to run this script ?

      posted in IT Discussion
      LakshmanaL
      Lakshmana
    • RE: Verify the Logid status

      how to check from the .csv

      https://community.spiceworks.com/topic/1941706-script-to-see-if-users-in-text-file-are-disabled?

      posted in IT Discussion
      LakshmanaL
      Lakshmana
    • RE: Verify the Logid status

      This link gives some idea but need to update the details through this command how to do this ?

      https://social.technet.microsoft.com/Forums/Lync/en-US/f9b86610-7dbb-49ed-90a0-1b319ac07241/question-on-getaduser-and-properties?forum=winserverpowershell

      (Get-ADUser -Identity Username -Properties Enabled).Enabled

      posted in IT Discussion
      LakshmanaL
      Lakshmana
    • RE: Verify the Logid status

      When i am trying to export the file

      cmdlet Export-Csv at command pipeline position 1
      Supply values for the following parameters:
      InputObject:

      What i need to input here what is this for ?

      posted in IT Discussion
      LakshmanaL
      Lakshmana
    • RE: 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

      posted in IT Discussion
      LakshmanaL
      Lakshmana
    • RE: Verify the Logid status

      @scottalanmiller said in Verify the Logid status:

      I think that this is the cmdlet that you want to use: Search-ADAccount -AccountDisabled

      This fetching whole details from the Windows Server.

      posted in IT Discussion
      LakshmanaL
      Lakshmana
    • RE: Verify the Logid status

      @scottalanmiller

      @scottalanmiller said in Verify the Logid status:

      @lakshmana said in Verify the Logid status:

      @scottalanmiller

      @scottalanmiller said in Verify the Logid status:

      I think that this is the cmdlet that you want to use: Search-ADAccount -AccountDisabled

      I need to compare the same with my .csv file for the status

      That's dramatically more complicated. And is completely dependent on the format of your CSV. Probably best to get PowerShell to output to text, then use a text processor to compare the two.

      Is there a Way only to compare my .csv file to get the AD account status (Enabled or Disabled ) ?

      posted in IT Discussion
      LakshmanaL
      Lakshmana
    • RE: Verify the Logid status

      @scottalanmiller

      @scottalanmiller said in Verify the Logid status:

      I think that this is the cmdlet that you want to use: Search-ADAccount -AccountDisabled

      I need to compare the same with my .csv file for the status

      posted in IT Discussion
      LakshmanaL
      Lakshmana
    • RE: Verify the Logid status

      @scottalanmiller any powershell is there to check on the same?I have checked this as a solution but the output is not coming on the same

      http://community.idera.com/powershell/ask_the_experts/f/active_directory__powershell_remoting-9/14054/check-if-ad-users-are-enabled-or-disabled

      posted in IT Discussion
      LakshmanaL
      Lakshmana
    • RE: Verify the Logid status

      I am having the excel file to compare the active status of the Active Directory account.Whether any powershell is there ?

      posted in IT Discussion
      LakshmanaL
      Lakshmana
    • RE: Verify the Logid status

      I am having 1500 Active Directory user details need to verify whether it is enabled or disabled

      posted in IT Discussion
      LakshmanaL
      Lakshmana
    • Verify the Logid status

      I have 1500 Logids in AD and need to verify whether the logid got enabled or not. How to do the same without manual checking ?

      posted in IT Discussion active directory windows powershell search-adaccount
      LakshmanaL
      Lakshmana
    • RE: Remote Login for Windows

      I have tried the link whether the Developer mode should be enabled for installing the OpenSSH.OS installed is Windows 10 in both the machine

      posted in IT Discussion
      LakshmanaL
      Lakshmana
    • RE: Curl Issue

      The same issue Happened while using

      Curl -L URL.com

      Because of that I am going for Remote login

      posted in IT Discussion
      LakshmanaL
      Lakshmana
    • RE: Remote Login for Windows

      Ssh service can be enabled from Windows feature?

      posted in IT Discussion
      LakshmanaL
      Lakshmana
    • RE: Outlook 2016 Cannot Open Because of Set of Folders

      @scottalanmiller Any profile Crash for the Outlook tried with the new Outlook Profile ?

      posted in IT Discussion
      LakshmanaL
      Lakshmana
    • Remote Login for Windows

      I am having machine A which have script in it.where i need to run a machine A script from machine B with .bat or Powershell and mail the details to Machine B user.Is this possible ?

      Aim : Remote Login from Windows to Windows without RDP or MSTSC only through SSH initiate the process and mail the Excel file details from the Machine A.(Windows to Windows Environment As of now)

      Its possible ??

      posted in IT Discussion
      LakshmanaL
      Lakshmana
    • RE: Curl Issue

      @scottalanmiller said in Curl Issue:

      This means that the link that you have is bad, but they are redirecting you, potentially, to a good one. cURL, by default, does not follow redirection. But there is a setting to enable that.

      Set: CURLOPT_FOLLOWLOCATION to 1

      Can I know the location?

      posted in IT Discussion
      LakshmanaL
      Lakshmana
    • Curl Issue

      The file which I am trying to download through Curl downloads but the file is downloaded but it opens as the html file and gives the information the 302 Found the file moved here. While clicking on here the file is downloaded now. As checked in the internet i found this as a Solution how to do this ?

      Need to write .sh file for that or its a PHP file ?

      https://curl.haxx.se/mail/curlphp-2004-12/0011.html

      https://www.sitepoint.com/community/t/reading-url-with-curl-library-getting-error-302-moved-temporarily/1969

      posted in IT Discussion curl
      LakshmanaL
      Lakshmana
    • RE: Timeout in .sh file

      @thwr Hereafter i should not update any doubts in this post only Right !!!!

      posted in IT Discussion
      LakshmanaL
      Lakshmana
    • 1 / 1