PowerShell and Active Directory








16 comments:

  1. Anonymous16 May, 2012

    Great Going Aman....looking for more cool AD Stuff

    ReplyDelete
    Replies
    1. Yes,,Thanks Dexi..yes More to come ;)

      Delete
    2. I don't see any powershell script to check servers uptime

      Delete
  2. Hi there,
    I am stuck with an powershell task.
    I need powershell to display an attribute value of an ADComputer which is hidden. How do I install hidden attribute in powershell
    Thanks

    ReplyDelete
    Replies
    1. Hi Charanjit,

      Sorry for replying back to you bit late.

      Sorry i am not able to understand that what do you want to say.

      Thanks
      aman

      Delete
    2. Get-ADComputer -Filter * -Properties hiddenattribute1,hiddenattribute2,hiddenattribute3 | Select attribute1,attribute2,attribute3, and so on.

      Delete
  3. Dear
    We have in our GPO alot of Printer's groups some time I ned by useing powershell script to list all the printers which deployed into that GPO printer group.
    For ex groupname = Kar_Prt_CC_Akut_nr12

    ReplyDelete
  4. Hi Aman Dhally,

    I have some take to do automation, Could you please share me the PS script for below tasks.
    1. HP Server Hard disk status. ( HDD hardware fail status)
    2. ADU report.
    3.Drive Array Accelerator Battery status more servers.
    4. Some other WINTEL activity

    ReplyDelete
  5. I like this blog but I don't see any powershell script to check multiple server uptime status

    ReplyDelete
  6. Thanks for sharing, i will add this list to my article about the top active directory powershell scripts http://www.networkangel.net/top-8-active-directory-powershell-scripts

    ReplyDelete
  7. I would like to request one thing on dhcp "suppose I have 10 IPs then in the morning the visitors come and take 3 of them on their phone, so when the staffs come take 7 remained and then tree of them no IPs " my question is that how can I write a script which will delete those IPs in the mid night and generate the news IPs

    ReplyDelete
  8. How to list dns records starting with some letter

    ReplyDelete
  9. Hi Aman,

    Can you help me on this? I used followed link https://gallery.technet.microsoft.com/scriptcenter/Check-the-AD-replication-ada017fb

    Result is also generating with report but i am unable to get an email. would you please help.


    Thanks,
    Mahesh

    ReplyDelete
  10. Hi Aman,

    PS script

    " Get a Single* Active directory User password reset history"

    I used below script however it is yielding any.

    (Get-ADComputer -SearchBase ‘OU=Domain Controllers,DC=woshub,DC=com’ -Filter *).Name | foreach {
    Get-WinEvent -ComputerName $_ -FilterHashtable @{LogName=”Security”;ID=4724 }| Foreach {
    $event = [xml]$_.ToXml()
    if($event)
    {
    $Time = Get-Date $_.TimeCreated -UFormat “%Y-%d-%m %H:%M:%S”
    $AdmUser = $event.Event.EventData.Data[4].”#text”
    $User = $event.Event.EventData.Data[0].”#text”
    $dc = $event.Event.System.computer
    write-host “Admin ” $AdmUser “ resets password to ” $User “ on ” $dc “ “ $Time
    }
    }
    }

    ReplyDelete
    Replies
    1. Please modify accordingly the scritp,however we have not got approval
      yet to implement the GPO that would help.

      However logic behind that script says it is possible.
      Please have a look on it.Thanks

      Delete
  11. I advise you to pay attention on information from https://justdomyhomework.com/blog/finish-homework-fast if you want to finish your homework faster. It was useful for me and my college friends

    ReplyDelete