Active Directory · PowerShell

Powershell and Active Directory: Find all organizational unit containers [OU] in Active Directory using Powershell.

  Hi, These days i think i am only and only working with Active Directory.  My Manager give me the task to show him the all Organizational Unit Container , so that we can re-arrange them and remove the OU those are not required any longer. Seriously i don’t know any way to do this.… Continue reading Powershell and Active Directory: Find all organizational unit containers [OU] in Active Directory using Powershell.

Active Directory · PowerShell

Powershell and Active Directory: Find inactive Computer Accounts in Active Directory using Powershell.

  HI, As you know my IT manager always keep me busy. These days we are cleaning our Active Directory. My Today’s “Target of the Day” is to find all in-active computer accounts. first i start thinking how to do it ? to use some filter in “Active Directory Computer and users” or i need… Continue reading Powershell and Active Directory: Find inactive Computer Accounts in Active Directory using Powershell.

Active Directory · PowerShell

Powershell and Active Directory: Remove domain user from domain Group using Powershell.

  Hi, Today my IT Manager told me to remove a domain user from a specific group. Normally i used “DSA.MSC” or we can say that “Active Directory users and Computers”, then i find users, go to his user account properties and click on “Member Of” tab and delete the group which the user is… Continue reading Powershell and Active Directory: Remove domain user from domain Group using Powershell.

Active Directory · PowerShell

Powershell and Active Directory : Find all members of the Group using Powershell.

  Hi, Today our target is to find all members of particular group. We know the Group Name and we are going to get the list of all of his members. we are going to use Get-ADGroupMember cmdlet. This command only available if you have RSAT tool installed and loaded the “ActiveDirectory” Module. Lets Start.… Continue reading Powershell and Active Directory : Find all members of the Group using Powershell.

Active Directory · PowerShell

Powershell and Active Directory: Find all distribution groups in AD with their Email-ID along with the date of creation using Powershell.

  Hi, Today i got task from my IT Manager to create a list of all distribution group in our AD along with there Email-Id’s also he required the date of creations of those distribution groups. I thought lets try this with PowerShell. I was planning to use Get-ADGroup cmdlet to fulfil my purpose. This… Continue reading Powershell and Active Directory: Find all distribution groups in AD with their Email-ID along with the date of creation using Powershell.

PowerShell

Enumerating Registry Keys

  Enumerating Registry Keys To enumerate all subkeys in a Registry key, you might be using a line like this: PS> Dir HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall | Select-Object -expand PSPath Microsoft.PowerShell.Core\Registry::HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\AddressBook Microsoft.PowerShell.Core\Registry::HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Connection Manager (…) It will return the PowerShell-style path including the provider name, not just the Registry path. If you used the -Name parameter, on the other… Continue reading Enumerating Registry Keys

PowerShell

“Enable or Disable” Network adapters using Powershell.

  Hi, In our IT environment we don’t give  “admin” rights to the normal users and they can’t enable/disable, install/un-install anything. Today one of our users was having some problem with Wi-FI and to troubleshoot it i need to “enable” and “disable” Wi-Fi network adapter few times, but to enable or disable the network adapter… Continue reading “Enable or Disable” Network adapters using Powershell.