the help for Get-PWUserSettingByUser is broken. Specifically the -Examples help.
The Synopsis says it's for Setting user settings.
The Example cuts off after opening the pwconnection (and shouldn't that example use New-PWLogin insted of Open-PWConnection?)
[Prod]\Reporting> help Get-PWUserSettingByUser -Examples
Sets user settings.
---------- EXAMPLE 1 ----------
#Set the myriad settings for a user or users.
Open-PWConnection -DatasourceName Server:DSN -UserName pwadmin -Password p@ssw0rd
BTW if anyone is trying to use this. The -InputUsers parameter takes an array of user id's. You can pipe the results of Get-PWUsersByMatch to it, but not Get-PWMonthlyLogins. For the latter I did:
$uList = Get-PWMonthlyLogins -Month 3
$uLic = Get-PWUserSettingByUser -InputUsers $uList.UserID -SettingName Admin_Licensing
Thanks for bringing this to our attention. We'll get it updated for the next release of the PWPS_DAB module.