These are chat archives for PaperCutSoftware/PaperCutExamples

22nd
Nov 2018
Jonathan Bennetts
@Joffcom
Nov 22 2018 06:47
You could download it from the website here: http://xml-rpc.net/download.html
Or download the nupkg from the nuget website and extract the contents like a zip file
Or are you talking about registering the dll?
Jonathan Bennetts
@Joffcom
Nov 22 2018 06:52
Ah or you might want the [Reflection.Assembly]::LoadFile() stuff
Jonathan Bennetts
@Joffcom
Nov 22 2018 06:59
Found one of my example scripts... I just use
Add-Type -Path "$dllPath\ServerCommandProxy.dll"

Add-Type -Path "$dllPath\CookComputing.XmlRpcV2.dll"

$api = New-Object PaperCut.ServerCommandProxy($papercutHost, $papercutPort, $authToken);

# Get user count
$userCount = $api.getTotalUsers()
That is from a windows install though I have not tested in that fancy PoSH core stuff