By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,197 Members | 1,165 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,197 IT Pros & Developers. It's quick & easy.

change paper size for a customized kiosk printer

P: 1
I have a special printer , like Epson printer. I need to change paper size to Roll. The printer doesn't use spooler. I want to change from "CUSTOM VKP80 II" to
"VKP80 II Roll" But it didn't work.
I found only way to do it is using vbs. I could not find any way to do in in powershell.

Expand|Select|Wrap|Line Numbers
  1. strComputer = "."
  2. Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
  3. Set colItems = objWMIService.ExecQuery("Select * from
  4. Win32_PrinterConfiguration",,48)
  6. For Each objItem in colItems
  7. Wscript.Echo "PaperSize: " & objItem.PaperSize
  8. objItem.PaperSize = VKP80 II Roll
  9. objItem.Put_()
  10. Wscript.Echo "PaperSize: " & objItem.PaperSize
  11. Next
Jul 16 '14 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.