Skip to content

Copis/NWPSRestToolKit

 
 

Repository files navigation

NWPSRestToolKit

Powershell Toolkit for Networker Rest API ###about the Goal of the Networker Powershell Toolkit is to make a Networker Admin´s live on windows easier
teh Toolkit should support Pielining of commands, and combine the value of Powershell with the strength of the RestAPI

###requirements in order to run the commands, you need to unrestrict executionpolicy. also, make sure to unblock the zipfile if you download the modules as zip and not via git ( unblock-file or right click in explorer ) open a powershell as admin and run

Set-ExecutionPolicy -ExecutionPolicy Unrestricted

Notice

! all commands ending with an "s" represent a plural and derived from the api. however, in my process of object re-writes i will also switch to singular commands without trailing "s" if there are examples with the plural, they might change to singular ( eg. clients to client ! )

installation

The Modules are loaded via Import-Module NWPSRestToolKit The Module sudirectories are based on the methods and functions , eg GET,PUT,POST..., errors.

use this Automatic downloader to install NWPSRestToolKit:
(COPY TEXT INTO A POWERSHELL)

$Uri="https://gist.githubusercontent.com/bottkars/a555ee59c63b65dbb38f027a547030ba/raw/install-nwpsresttoolkit.ps1"
$DownloadLocation = "$Env:USERPROFILE\Downloads"
$File = Split-Path -Leaf $Uri
$OutFile = Join-Path $DownloadLocation $File
Invoke-WebRequest -Uri $Uri -OutFile $OutFile
Unblock-File -Path $Outfile
Set-Location $DownloadLocation
.\install-NWPSRestToolKit.ps1 -Installpath [replacewithyourdestination]

alternative installation

if not using the Downloader, i Recommend cloning into the modules using and do regular pulls for update rather tan downloading the zip. this also eliminates the need for unblocking the zip archive !!! )

consider https://desktop.github.com/ for windows

import the modules

import-module \path-to-moduledir\NWPSRestToolKit.psd1

test the commnds from the module :-)
##Test try to connect to your Networker Server image

the cmdlet shall Respond with the servername and operating sytem of the server

Examples

View Vbackups of a Client Using ressourceID od the Client

image

View Backups of a Client using Pipeline Support image

Getting Workflows from a Policy image

Starting a Workflow from Pipeline image

About

Powershell Toolkit for Networker Rest API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PowerShell 100.0%