{"id":15202864,"url":"https://github.com/oanderoficial/ip_duplicate","last_synced_at":"2026-02-08T06:38:21.918Z","repository":{"id":235482576,"uuid":"790783146","full_name":"oanderoficial/ip_duplicate","owner":"oanderoficial","description":"Script para verificar IP'S em duplicidade em filas de impressão. ","archived":false,"fork":false,"pushed_at":"2025-07-12T12:39:04.000Z","size":12,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-12T14:49:27.988Z","etag":null,"topics":["ip","network","powershell","powershell-script","printers"],"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/oanderoficial.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":"2024-04-23T14:18:08.000Z","updated_at":"2025-07-12T12:39:07.000Z","dependencies_parsed_at":null,"dependency_job_id":"734dd298-3207-42fe-a35e-3b2793d7b163","html_url":"https://github.com/oanderoficial/ip_duplicate","commit_stats":{"total_commits":7,"total_committers":1,"mean_commits":7.0,"dds":0.0,"last_synced_commit":"6263a500ebe24fb9bcd85909ee531af90e4ede6e"},"previous_names":["oanderoficial/ip_duplicate"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/oanderoficial/ip_duplicate","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oanderoficial%2Fip_duplicate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oanderoficial%2Fip_duplicate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oanderoficial%2Fip_duplicate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oanderoficial%2Fip_duplicate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/oanderoficial","download_url":"https://codeload.github.com/oanderoficial/ip_duplicate/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oanderoficial%2Fip_duplicate/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269351911,"owners_count":24402678,"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-08-08T02:00:09.200Z","response_time":72,"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":["ip","network","powershell","powershell-script","printers"],"created_at":"2024-09-28T04:06:35.930Z","updated_at":"2026-02-08T06:38:13.208Z","avatar_url":"https://github.com/oanderoficial.png","language":"PowerShell","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1\u003eIP-DUPLICATE\u003c/h1\u003e\n\u003ch2\u003e Script para verificar IP em duplicidade em filas de impressão \u003c/h2\u003e\n\n``` powershell\n# Obter uma lista de todas as impressoras instaladas\n$impressoras = Get-Printer | Select-Object -Property Name, PortName\n \n# Contar a frequência de cada endereço IP\n$frequenciaIPs = $impressoras | Group-Object -Property PortName | Where-Object { $_.Count -gt 1 }\n \n# Exibir as impressoras com endereços IP duplicados\nif ($frequenciaIPs) {\n    Write-Host \"Impressoras com IPs duplicados:\"\n    $frequenciaIPs | ForEach-Object {\n        $_.Group | ForEach-Object {\n            \"Nome da Impressora: $($_.Name), IP: $(Get-PrinterPort -Name $_.PortName).PrinterHostAddress\"\n        }\n    }\n} else {\n    Write-Host \"Não há IPs de impressoras duplicados.\"\n}\n````\n\n\u003cstrong\u003e cmdlet Get-Printer \u003c/strong\u003e \n\n\u003cstrong\u003e Documentação: \u003c/strong\u003e https://learn.microsoft.com/en-us/powershell/module/printmanagement/get-printer?view=windowsserver2022-ps\n\n\u003cp\u003eRecupera uma lista de impressoras instaladas em um computador.\u003c/p\u003e\n\n\u003cstrong\u003e Sintaxe \u003c/strong\u003e \n\n```ps1\nGet-Printer\n   [[-Name] \u003cString[]\u003e]\n   [-ComputerName \u003cString\u003e]\n   [-Full]\n   [-CimSession \u003cCimSession[]\u003e]\n   [-ThrottleLimit \u003cInt32\u003e]\n   [-AsJob]\n   [\u003cCommonParameters\u003e]\n```\n\n\u003cstrong\u003e Obtenha uma lista de impressoras \u003c/strong\u003e \n\n```ps1\nGet-Printer\n```\n\u003cstrong\u003e Obtenha as informações de uma impressora específica: \u003c/strong\u003e \n\n```ps1\nGet-Printer -Name \"Microsoft XPS Document Writer\"\n```\n\u003cstrong\u003e Obtenha informações detalhadas para uma impressora específica: \u003c/strong\u003e \n\n```ps1\nGet-Printer -Name \"Microsoft XPS Document Writer\" | Format-List\n```\n\u003cstrong\u003e Obtenha uma lista de impressoras em um computador remoto: \u003c/strong\u003e \n\n```ps1\nGet-Printer -ComputerName PrintServer\n```\n\n\u003cstrong\u003e Obtenha uma lista de objetos de impressora e renomeie as impressoras: \u003c/strong\u003e \n\n```ps1\n$Printer = Get-Printer -Name \"Microsoft XPS Document Writer\"\nRename-Printer -InputObject $printer \"MXDW\"\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foanderoficial%2Fip_duplicate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foanderoficial%2Fip_duplicate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foanderoficial%2Fip_duplicate/lists"}