Skip to content

jjb14778/PiHoleShell

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PiHoleShell

A PowerShell module for PiHole v6 API.

Recently added Module Misc Functions

Update-PiholeGravity (updateGravity.ps1)

Export-PiholeConfig, Import-PiholeConfig (teleporter.ps1)

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

About

A PowerShell module for PiHole

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PowerShell 100.0%