Jump to content

Jessop

Members
  • Posts

    2
  • Joined

  • Last visited

Everything posted by Jessop

  1. here is a pretty good write up on how to do exactly what you are looking for i believe https://www.digitaltrends.com/computing/how-to-move-windows-10-to-an-ssd/
  2. i am very new to PowerShell so please forgive me for my simplistic question on how to do something. I am trying to find the following information for all groups in a domain (or in the entire forest) in a csv output so it can be manipulated in excel by leadership Domain Name CN Name SamAccountName DisplayName DistinguishedName Description Group Category GroupScope groupType Managed By WhenCreated WhenChanged Numbers of Users in group Numbers of Groups in group Numbers of Computers in group now our forest is MASSIVE like hundreds of thousands of groups, so when i just do a massive get-adgroupmember it errors out due to the significant amount of users / groups we have. So i figured i'd want to break them into manageable group name groupings for example: 0-c d-f g-j k-m n-p q-s t-v w-x y-z Doing this by the first letter of the group name should allow me to ensure (i hope) to never hit that timeout limit. My question is how would i do this with PowerShell or something else my initial thought would be to do a get-adgroup and then see if the group name starts with either 0, a, b, or c and get the information and output it to a csv file and then do the next section d, e, and f and so forth.... and then do a get-adgroupmember count or something like that.... Anyone have code like this already or knows how to quickly write up something like this not only am i asking for help but i am asking to learn so i know for the future how to structure complex set of variables like this in the future because next i need to figure out if the group name has the ou that the group resides in it to ignore those groups.... Thanks in advance for my help on my rambling question.
×
×
  • Create New...