none
AD Domain Monthly report automachine. RRS feed

  • Question

  • Please help me create a PS1 script in which should include below details

    Total # of Users:

    Total # of Generic Users: (four  different OU path)
    Total # of Disabled Users:
    Total # of Enabled Users:
    Total # of User in PAC Group:

    Groups with no users:

    Total (Servers and Desktops)
    XP Systems
    PC's inactive for 60days
    Disabled Comps

    Raj

    Tuesday, April 1, 2014 8:40 AM

Answers

  • Hi Raj,

    sorry for being the bearer of bad news, however your post is in violation of the posting guidelines for this forum. This is not a free scripting service, but a place where professionals exchange information and help each other with specific problems.

    That said, I will gladly point you in the direction to learn the necessary skills and help yourself.

    1. First of all, the learning page of the Script Center is a great place to acquire the basics (which is all you'll need for this task).
    2. These commands will come in handy when implementing your script:
      Get-Help
      Get-ADUser
      Get-ADGroup
      Get-ADGroupMember
      Get-ADComputer
    3. The Script Repository might just contain solutions to parts of your problem, or offer reference scripts you can use during your learning Powershell.

    Then you try out building your own script that does all those steps you wish to implement, and if you hit a specific problem with one of the tasks, feel free to return, post your code and ask for help :)

    Cheers and good luck,
    Fred


    There's no place like 127.0.0.1

    • Proposed as answer by Mike Laughlin Tuesday, April 1, 2014 1:05 PM
    • Marked as answer by Raja Y Sunday, April 13, 2014 12:18 PM
    Tuesday, April 1, 2014 8:58 AM

All replies

  • Hi - can you post your script with any complete errors?


    ¯\_(ツ)_/¯

    Tuesday, April 1, 2014 8:53 AM
  • Hi Raj,

    sorry for being the bearer of bad news, however your post is in violation of the posting guidelines for this forum. This is not a free scripting service, but a place where professionals exchange information and help each other with specific problems.

    That said, I will gladly point you in the direction to learn the necessary skills and help yourself.

    1. First of all, the learning page of the Script Center is a great place to acquire the basics (which is all you'll need for this task).
    2. These commands will come in handy when implementing your script:
      Get-Help
      Get-ADUser
      Get-ADGroup
      Get-ADGroupMember
      Get-ADComputer
    3. The Script Repository might just contain solutions to parts of your problem, or offer reference scripts you can use during your learning Powershell.

    Then you try out building your own script that does all those steps you wish to implement, and if you hit a specific problem with one of the tasks, feel free to return, post your code and ask for help :)

    Cheers and good luck,
    Fred


    There's no place like 127.0.0.1

    • Proposed as answer by Mike Laughlin Tuesday, April 1, 2014 1:05 PM
    • Marked as answer by Raja Y Sunday, April 13, 2014 12:18 PM
    Tuesday, April 1, 2014 8:58 AM