Saturday, January 22, 2022

Setting up user print restrictions in papercut

To enable restrictions go to printers -> and select the printer you want to apply restrictions to.  In this case the Toshiba 2515AC


Select the printer then select "Filters & Restrictions"


In the Filters & Restrictions


Enable Restriction Scope, and in this case I want to limit printing to a max of $25 or 50 pages.  There are other options such as spool size (size of the file being printed), duplexing etc.



Once you have setup the rules on the printer, you can then select the user you want to restrict.  In this case Print User


Go to account details and enable the Restricted Checkbox



Once printed if your over one of the limits you will get a warning that the job was denied.





Wednesday, January 05, 2022

Log4J MS Fix with Active Directory and Detection with Lansweeper

Log4J has been in the news for a while, so to patch the windows systems, I updated everyone's version of Java to the latest version.  In accordance with Microsoft's Environmental variable fix, I setup the variable to be deployed with Active Directory (After I verified that no apps would lose functionality).  You can read more about the Environmental variable fix by clicking on this article Microsoft Statement and Mitigations for Log4J.

So to deploy the fix I used Active Directory.  I have a global GP for setting basic permissions and it is enforced with everyone so it makes the most sense to put it there.



So edit the policy go to Computer Configuration -> Preferences -> Windows Settings ->Environment.  


Right click (or under action) New -> Environment Variable

Enter in the following:

NAME = LOG4J_FORMAT_MSG_NO_LOOKUPS

Value=TRUE


Along with the variable, I have also updated Java to the latest version using LANSWEEPER's Software push functions.  I have 70 clients to update, and I deployed this early afternoon, and over half of them were done by the time I left.

I wrote a script in Lansweeper that checks for the environmental variable.  You first have to enable Environmental scanning.  Under Scanning Select Scanned Item Interval



By default Environment is not checked (disabled) as shown below.


You have to enable it for this detection script to work.


With that done this script will check for to see if the Environmental Variable has been added.

/******************************************************************************/

Select Top 1000000 tblassets.AssetID,

  tblassets.AssetName,

  tsysassettypes.AssetTypename,

  tsysassettypes.AssetTypeIcon10 As icon,

  tblassets.IPAddress,

  tblassets.Lastseen,

  tblassets.Lasttried,

  tblEnvironment.Name As Name1,

  tblEnvironment.VariableValue As VariableValue1

From tblassets

  Inner Join tblassetcustom On tblassets.AssetID = tblassetcustom.AssetID

  Inner Join tsysassettypes On tsysassettypes.AssetType = tblassets.Assettype

  Inner Join lansweeperdb.dbo.tblEnvironment On tblassets.AssetID =

      tblEnvironment.AssetID

Where tblEnvironment.Name = 'LOG4J_FORMAT_MSG_NO_LOOKUPS' And

  tblEnvironment.VariableValue = 'true' And tblassetcustom.State = 1

Tuesday, January 04, 2022

How to print from papercut mobile on a desktop / laptop system

This post is a guide how one would setup public style printing for an office, library, school or other print for pay, print for public user service.  The following example would be a how to print; if a generic account were setup for public printing for your network with papercut; specifically when being used with a chromebook or other desktop based browser client.


1 - When connected to the same network as the printer put in the URL for printing. https://print.yourdomain.ca




2 - Enter in the username and password (this would be the generic account for the user wanting to print)



3 - you will be taken to the “Submit a Job” screen





4 - Press the “Submit a job button and select the printer (in this case say printer_2)




Then press "
2. Print Options and Account Selection"


5 - Select you options then and select “Upload Documents”





6 - Select your file (This would be typically in the downloads folder)



7 - Once selected, press “upload and complete”



8 - Once Uploaded the job will sit in the queue, until released by the papercut queue release account.





Papercut queue release account view





Setting up user print restrictions in papercut

To enable restrictions go to printers -> and select the printer you want to apply restrictions to.  In this case the Toshiba 2515AC Selec...