Finally the help of IT is here

Blog of computer solutions.

List users that have added computers to the domain.

Posted by Xaus Xavier Nadal 12th on May 2012

Good Morning.

Today we will explain Powershell script that developed in all it does it is make a list of the equipment added to the domain and the user has entered.

And perhaps you will wonder to us is this for?

Well, if you have an Active Directory structure "unretouched" ie new machines introducís in the domain are stored in the computers container instead of an organizational unit (OU) within a structure of country, city, department etc ..., and at some point need to detect who added this computer to the domain to ask that person for that company was going or what equipment is to then order it in AD, just by running this script will be able to detect that machine and person is responsible for the inclusion to the domain.

To do this you will need to have powershell installed Managment Active Roles or add the following line of text at the beginning of the script.

add-PSSnapin quest.activeroles.admanagement

The script is as follows and has been developed (by one of our staff blog that likes to live in anonymity) and improved by one of the best Powershell scripters in the world which in recent Scripting Games 2012 was 4º in LEADERBOARD (Albert Fortes).

[Email protected](Get-QADComputer -Searchr "<Domain>/ Computers "| select . @ {. Expression = {$ _} Name; Name = "Computer"}, @ {Expression = {((Get-QADPermission ($ _ canonicalName) SilentlyContinue | Select Account .Account | Select samaccountname) .Samaccountname}; Name = "Username"})

 

$ Result | ft -AutoSize

The script is checked (Do not be afraid to run it, is a query only active directory to a bit complicated to explain ..) Anyone who is intrigued can post in the comments ..

I hope you have been helpful.

tags: , , , ,
Posted by Active Directory, equipment, PowerShell, powershell | No Comments »

GTranslate Your license is inactive or expired, please subscribe again!