How can I apply a terminal script using ssh to all users?
Use the sudo command

The command is sudo -u username command

So, after you SSH in as the admin, issue the command:

sudo -u &lt;username&gt; defaults write  /Users/&lt;username&gt;/Library/Preferences/com.google.Chrome.plist D
isablePrintPreview -boolean true


That will set the preferences value for the particular user you are interested in without having to know their password.

I personally checked this on OS X 10.11.4 using an account called "testguy".  I was able to SSH into the machine, set the preferences using the command you provided and verify that it was set by issuing the command:

sudo -u testguy defaults read  /Users/testguy/Library/Preferences/com.google.Chrome.plist Di
sablePrintPreview  


The response was 1 (true)