{"id":22951585,"url":"https://github.com/lifailon/rdcman-ldap","last_synced_at":"2025-10-13T00:13:15.620Z","repository":{"id":140732700,"uuid":"595318285","full_name":"Lifailon/RDCMan-LDAP","owner":"Lifailon","description":"Add-on for create computers list AD to rdg file","archived":false,"fork":false,"pushed_at":"2023-01-31T09:41:58.000Z","size":1674,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"rsa","last_synced_at":"2025-10-13T00:13:14.748Z","etag":null,"topics":["active-directory","ldap","powershell","rdcman","rdg","rdp"],"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/Lifailon.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-01-30T20:52:20.000Z","updated_at":"2025-03-06T08:19:52.000Z","dependencies_parsed_at":null,"dependency_job_id":"d4dd2418-d83e-432e-aa3b-ca7069c22c4e","html_url":"https://github.com/Lifailon/RDCMan-LDAP","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Lifailon/RDCMan-LDAP","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lifailon%2FRDCMan-LDAP","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lifailon%2FRDCMan-LDAP/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lifailon%2FRDCMan-LDAP/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lifailon%2FRDCMan-LDAP/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Lifailon","download_url":"https://codeload.github.com/Lifailon/RDCMan-LDAP/tar.gz/refs/heads/rsa","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lifailon%2FRDCMan-LDAP/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279013619,"owners_count":26085298,"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","status":"online","status_checked_at":"2025-10-12T02:00:06.719Z","response_time":53,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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","ldap","powershell","rdcman","rdg","rdp"],"created_at":"2024-12-14T15:16:53.414Z","updated_at":"2025-10-13T00:13:15.615Z","avatar_url":"https://github.com/Lifailon.png","language":"PowerShell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# RDCMan-LDAP\n**Скрипт для автоматического создания rdg-файла со списком всех компьютеров в AD и их в групп по наименованию полного пути к OU текущего месторасположения в доменной структуре.** Не требует установки модуля RSAT и участия пользователя в процессе, для получения данных скрипт использует протокол LDAP (встроенный класс .NET: DirectoryServices.DirectorySearcher), имя домена берется из переменной окружения. Протестировано для версии RDCMan 2.92.\n\nСкрипт разбит на три части, будет полезен для инвентаризации и визуализации списка всех комьютеров в формате таблицы (Out-GridView), по которой можно узнать Organizational Unit, в которой расположен компьютер.\n\n### 1. Получаем данные, парсим вывод, формируем объект массива, упорядочиваем и сортируем путь OU к компьютеру для создания имен групп:\n\n**[RDCMan-LDAP-0.1.ps1](https://github.com/Lifailon/RDCMan-LDAP/blob/rsa/RDCMan-LDAP-0.1.ps1)**.\n\n\u003e Вывод можно импортировать в формат csv или напрямую создать таблицу Excel.\n\n![Image alt](https://github.com/Lifailon/RDCMan-LDAP/blob/rsa/Screen/Out-GridView-0.1.jpg)\n\n### 2. Пересобираем коллекцию, исключаем повторяющиеся имена групп и добавляем комьютеры в свои OU:\n\n**[RDCMan-LDAP-0.2.ps1](https://github.com/Lifailon/RDCMan-LDAP/blob/rsa/RDCMan-LDAP-0.2.ps1)**.\n\n![Image alt](https://github.com/Lifailon/RDCMan-LDAP/blob/rsa/Screen/Out-GridView-0.2.jpg)\n\n### 3. Подставляем значения в синтаксис xml для формирования rdg-фала:\n\n**[RDCMan-LDAP.ps1](https://github.com/Lifailon/RDCMan-LDAP/blob/rsa/RDCMan-LDAP.ps1)**.\n\n![Image alt](https://github.com/Lifailon/RDCMan-LDAP/blob/rsa/Screen/RDCMan-List.jpg)\n\n**На формирование списка из 630 компьютеров и 65 уникальных путей OU (имен групп) составило 1 минута 30 секунд (3550 строк).**\n\n![Image alt](https://github.com/Lifailon/RDCMan-LDAP/blob/rsa/Screen/rdg-file.jpg)\n\n\u003e По аналогии, можно формировать список из групп подсетей, добавляя компьютеры, которые отвечают на icmp пакеты и производится resolve имени в DNS, для фильтрации хостов с ОС Windows, можно использовать rpc/winrm запросы.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flifailon%2Frdcman-ldap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flifailon%2Frdcman-ldap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flifailon%2Frdcman-ldap/lists"}