{"id":15148364,"url":"https://github.com/lifailon/ps-pi-hole","last_synced_at":"2026-01-20T12:34:01.267Z","repository":{"id":160497528,"uuid":"635381237","full_name":"Lifailon/PS-Pi-Hole","owner":"Lifailon","description":"Module for integrating Pi-Hole into PowerShell","archived":false,"fork":false,"pushed_at":"2023-05-03T11:35:00.000Z","size":2778,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"rsa","last_synced_at":"2025-04-05T15:51:38.694Z","etag":null,"topics":["api","pi-hole","powershell","powershell-module","rest-api","windows"],"latest_commit_sha":null,"homepage":"https://www.nuget.org/packages/PS-Pi-Hole","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}},"created_at":"2023-05-02T15:14:03.000Z","updated_at":"2025-03-06T08:19:21.000Z","dependencies_parsed_at":"2023-07-18T01:33:19.154Z","dependency_job_id":null,"html_url":"https://github.com/Lifailon/PS-Pi-Hole","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lifailon%2FPS-Pi-Hole","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lifailon%2FPS-Pi-Hole/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lifailon%2FPS-Pi-Hole/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lifailon%2FPS-Pi-Hole/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Lifailon","download_url":"https://codeload.github.com/Lifailon/PS-Pi-Hole/tar.gz/refs/heads/rsa","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247584060,"owners_count":20962071,"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":["api","pi-hole","powershell","powershell-module","rest-api","windows"],"created_at":"2024-09-26T13:03:20.258Z","updated_at":"2025-04-07T02:47:33.680Z","avatar_url":"https://github.com/Lifailon.png","language":"PowerShell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PS-Pi-Hole\nModule for interacting with pi-hole using the REST API. **Used all possible endpoints** at the time of release module.\n\n## 🚀 Install\nDownload and run the script **[Deploy-Invoke-Pi-Hole.ps1](https://github.com/Lifailon/PS-Pi-Hole/blob/rsa/Deploy-Invoke-Pi-Hole.ps1)**\n\n## 🔐 Token\nGet Token (ssh): `sudo cat /etc/pihole/setupVars.conf | grep WEBPASSWORD` \\\nServer and Token can be set in module parameters (**line 28 and 29**)\n\n## 🔑 Keys\n- ✅ `Invoke-Pi-Hole -Server 192.168.1.253 -Token 5af9bd44aebce0af6206fc8ad4c3750b6bf2dd38fa59bba84ea9570e16a05d0f -Status`\n- ✅ `Invoke-Pi-Hole -Enable` Enable Blocking\n- ✅ `Invoke-Pi-Hole -Disable` Disable Blocking\n- ✅ `Invoke-Pi-Hole -Stats` Blocking work status\n- ✅ `Invoke-Pi-Hole -TopClient`\n- ✅ `Invoke-Pi-Hole -TopPermittedDomains`\n- ✅ `Invoke-Pi-Hole -TopPermittedDomains -Count 100`\n- ✅ `Invoke-Pi-Hole -LastBlockedDomain`\n- ✅ `Invoke-Pi-Hole -ForwardServer` Upstream servers\n- ✅ `Invoke-Pi-Hole -QueryTypes`\n- ✅ `Invoke-Pi-Hole -QueryLog`\n- ✅ `Invoke-Pi-Hole -Data` Number of requests for every 10 minutes during the last 24 hours\n- ✅ `Invoke-Pi-Hole -Versions` Current and Latest versions\n- ✅ `Invoke-Pi-Hole -Releases` Current (last) version and date from the GitHub repository\n- ✅ `Invoke-Pi-Hole -AdList` Status Hosts List (StevenBlack)\n\n## 🎉 Examples\n- **Connect to Pi-Hole server** for get stats (it is not necessary to use a token)\n\n![Image alt](https://github.com/Lifailon/PS-Pi-Hole/blob/rsa/Screen/Invoke-Pi-Hole-Stats.jpg)\n\n![Image alt](https://github.com/Lifailon/PS-Pi-Hole/blob/rsa/Screen/Invoke-Pi-Hole-Statistics.jpg)\n\n- **Enable/Disable Blocking** (using filters) and get status\n\n![Image alt](https://github.com/Lifailon/PS-Pi-Hole/blob/rsa/Screen/Invoke-Pi-Hole-Status.jpg)\n\n- **Get full Query Log** (comparison of raw and parsing output)\n\n![Image alt](https://github.com/Lifailon/PS-Pi-Hole/blob/rsa/Screen/Invoke-Pi-Hole-QueryLog.jpg)\n\n- **Top** local clients and permitted (available) domains destination\n\n![Image alt](https://github.com/Lifailon/PS-Pi-Hole/blob/rsa/Screen/Invoke-Pi-Hole-Top.jpg)\n\n- **View versions** for monitoring and update\n\n![Image alt](https://github.com/Lifailon/PS-Pi-Hole/blob/rsa/Screen/Invoke-Pi-Hole-Versions.jpg)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flifailon%2Fps-pi-hole","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flifailon%2Fps-pi-hole","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flifailon%2Fps-pi-hole/lists"}