{"id":18496107,"url":"https://github.com/iagor1/pwshell-ad","last_synced_at":"2025-05-14T03:17:15.040Z","repository":{"id":189188885,"uuid":"679776121","full_name":"iagor1/pwshell-ad","owner":"iagor1","description":"this powershell script is able to get information in AD about users by email or name","archived":false,"fork":false,"pushed_at":"2023-08-21T15:46:22.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-12-25T17:12:04.900Z","etag":null,"topics":["active-directory","powershell"],"latest_commit_sha":null,"homepage":"","language":"PowerShell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/iagor1.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-08-17T15:35:28.000Z","updated_at":"2024-04-22T00:40:32.000Z","dependencies_parsed_at":"2024-12-25T17:10:53.934Z","dependency_job_id":"c1a54910-fce5-4a51-8114-b38b2afe61a1","html_url":"https://github.com/iagor1/pwshell-ad","commit_stats":null,"previous_names":["iagor1/pwshell-ad"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iagor1%2Fpwshell-ad","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iagor1%2Fpwshell-ad/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iagor1%2Fpwshell-ad/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iagor1%2Fpwshell-ad/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/iagor1","download_url":"https://codeload.github.com/iagor1/pwshell-ad/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239212561,"owners_count":19600830,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["active-directory","powershell"],"created_at":"2024-11-06T13:27:50.479Z","updated_at":"2025-02-16T23:42:45.450Z","avatar_url":"https://github.com/iagor1.png","language":"PowerShell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pwshell-ad\nThis powershell script is able to get information about users by email or name in Active Directory (AD) \u003cbr\u003e\nthe reason i create this script is to improve the way we were searching for this users\u003cbr\u003e\nthis way we only need to update the txt file with your data.\n## How to run :\n1 - change the path of the txt file to your scenario\n2 - change the OU name to your scenario\n3 - Your txt file need to be like this : \nfakeuser1@email.com\u003cbr\u003e\nfakeuser2@email.com\u003cbr\u003e\nOne line per email\n\nobs : *you may need to run the script as admin*\n\n## Others\nIm not spend to many words explaining this code because you can find this commands in the Microsoft AD documentation [AD Docs](https://learn.microsoft.com/en-us/powershell/module/activedirectory/?view=windowsserver2022-ps)\u003cbr\u003e\nBut a real quick explanation, im saving the data in 2 variables($emails and $names)\u003cbr\u003e \na for loop to every line in the txt execute command GetADUser\u003cbr\u003e \nthis loops are inside functions, they are called after we read the input from keyboard to choose any option\u003cbr\u003e\nif any option is typed (1 or 2), the program will print \"no action selected\"\n- I will probaly create anothers pw scripts about AD, fell free to make PR and suggestions etc.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiagor1%2Fpwshell-ad","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fiagor1%2Fpwshell-ad","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiagor1%2Fpwshell-ad/lists"}