https://github.com/ryzhovau/keenetic-powershell
PowerShell module for Keenetic routers
https://github.com/ryzhovau/keenetic-powershell
keenetic powershell router
Last synced: 9 months ago
JSON representation
PowerShell module for Keenetic routers
- Host: GitHub
- URL: https://github.com/ryzhovau/keenetic-powershell
- Owner: ryzhovau
- License: gpl-3.0
- Created: 2021-02-25T08:19:00.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2021-03-23T17:34:30.000Z (over 5 years ago)
- Last Synced: 2025-03-29T17:01:25.811Z (over 1 year ago)
- Topics: keenetic, powershell, router
- Language: PowerShell
- Homepage: https://forum.keenetic.net
- Size: 76.2 KB
- Stars: 9
- Watchers: 1
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Keenetic PowerShell Module
This module allows to operate with [Keenetic routers](https://keenetic.com) from command line. You can get or set WAN connections, LAN segments, Users, Services and other configurable options.
[](https://asciinema.org/a/399922)
# Installation
```
Install-Module Keenetic
```
# Usage
```PowerShell
# Connect to default device via http://my.keenetic.net
Start-KNSession -Credential (Get-Credentials) -AsDefaultSession
# Run 'show version' CLI command via REST Core Interface (rci):
Invoke-KNRequest show/version
release : 3.05.C.6.0-0
sandbox : stable
title : 3.5.6
…
manufacturer : Keenetic Ltd.
vendor : Keenetic
series : KN
model : Ultra (KN-1810)
hw_version : 10188000
hw_id : KN-1810
device : Ultra
region : RU
description : mykeenetic
# Download firmware, using deprecated XML Core Interface (ci):
Invoke-KNRequest 'firmware' -Ci -OutFile fw_backup.bin -Raw
# Pure CLI commands with autocompletion:
Invoke-KNCommand 'interface FastEthernet0/0 down' | ConvertTo-Json
{
"parse": {
"prompt": "(config)",
"status": [
"@{status=message; code=72155142; ident=Network::Interface::Base;
source=; warning=no; message=\"FastEthernet0/0\": interface is down.}"
]
}
}
```
See [Wiki](https://github.com/ryzhovau/keenetic-powershell/wiki) for available cmdlets with detailed description.
# Acknowledgment
Thanks to Sergey Mazepin and Rostislav Bronzov aka @Rostis1av for PowerShell course.
Thanks to Adam Driscoll aka @adamdriscoll for brilliant module skeleton from [selenium-powershell](https://github.com/adamdriscoll/selenium-powershell).