leewakelam Posted August 23, 2023 Posted August 23, 2023 Hi All, Can anyone tell me why this is not working please? It works as a .bat file but not in this format. I have attached a picture thanks Lee
andy_b Posted August 23, 2023 Posted August 23, 2023 That isn't a valid vbs script, you can't just rename a bat file to a vbs. You'll need something like below: https://www.vbsedit.com/html/6f28899c-d653-4555-8a59-49640b0e32ea.asp
leewakelam Posted August 23, 2023 Author Posted August 23, 2023 thanks for the response, I'm very new to all of this. I will look at trying to get the batch file to work
gtabomber Posted August 23, 2023 Posted August 23, 2023 Running the PaperCut client from a servers C$ share isn't ideal. Is there a reason for needing a VBS script? I'd just run the exe as a start-up script. Good luck with the pay rise! 2
leewakelam Posted August 23, 2023 Author Posted August 23, 2023 im really trying to get the papercut client on all pcs around the school. Im trying to run this from our print server where the client software is installed. Do you know of a better way? I tried via GPO - Computer configuration, policies, software settings, software installation and added the MSI software here but that didnt work any ideas would be helpful, thanks
andy_b Posted August 23, 2023 Posted August 23, 2023 Ours has changed over the years, but currently looks like: Option Explicit Dim exeName, exePath, Wsh Set Wsh = WScript.CreateObject("WScript.Shell") '64bit Files exeName = "pc-client-local-cache.exe" exePath= "\\SERVER\PCClient\win\" Wsh.Run chr(34) & exePath & exeName & chr(34) &" --silent",1 https://www.papercut.com/help/manuals/ng-mf/clienttool/user-client-install-windows/
Davit2005 Posted August 23, 2023 Posted August 23, 2023 (edited) im really trying to get the papercut client on all pcs around the school. Im trying to run this from our print server where the client software is installed. Do you know of a better way? I tried via GPO - Computer configuration, policies, software settings, software installation and added the MSI software here but that didnt work any ideas would be helpful, thanks GPO will only accept msi installers. I'd also recommend setting up a specific shared folder for this too rather than jus using the C drive. You could setup a startup script to check if the application exists and if not install it. Edited August 23, 2023 by Davit2005
leewakelam Posted August 23, 2023 Author Posted August 23, 2023 thanks for the help. Is this bit below the only part i would need to change and put my location in? Very new to all of this exePath= "\\SERVER\PCClient\win"
3s-gtech Posted August 23, 2023 Posted August 23, 2023 Have a look at https://www.papercut.com/help/manuals/ng-mf/clienttool/user-client-install-windows/ before going too far down the rabbit hole - specifically: cmd /c "start \\printservername\PCClient\win\pc-client-local-cache.exe --silent" or the way I do it: Group Policy / User Configuration / Administrative Templates / System / Logon / Run these programs at user logon / \\printservername\PCClient\win\pc-client.exe IME this just works.
leewakelam Posted August 23, 2023 Author Posted August 23, 2023 thanks for this - i think i will go this way too
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now