Coder Social home page Coder Social logo

mikemadeja / piholeshell Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 123 KB

A PowerShell module for PiHole

License: Apache License 2.0

PowerShell 100.00%
pihole pihole-adblocker-list pihole-ads-list pihole-blocklists piholeblocklist pihole-api powershell powershell-module

piholeshell's Introduction

PiHoleShell

A PowerShell module for PiHole v6 API.

Installation

It is recommended to pull this down as a git and pull down updates from main as this is activly developed before it becomes released

To import this module, you can do Import-Module .\PiHoleShell.psm1 in the directory of PiHoleShell

To remove the module, you can do Remove-Module PiHoleShell

Contributions

I am in the beginning stages of developing this. I am open to suggestions or contributors and am learning as I go. I hope this will bring some value to people :-).

How to use

Generate an app password by logging into your PiHole server.

Click Web Interface / Api

Click Configure app password

drawing

Copy your password, then click Enable new app password.

drawing

PS CD D:\PiHoleShell

PS Import-Module .\PiHoleShell.psm1

PS D:\PiHoleShell> Get-PiHoleDnsBlockingStatus -PiHoleServer http://PIHOLESERVER.DOMAIN.COM -Password "APPPASSWORD"

Blocking Timer
-------- -----
enabled      0

piholeshell's People

Contributors

mikemadeja avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.