Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Question
Saturday, April 2, 2016 8:10 AM
hello,
importing Printer security Settings with printui.dll Fails with "The operation could not be completed / 0x0000000C / The access code is invalid".
Import and Export is done on same machine with Windows 10 (10.0.10586) with Administrator rights in cmd. it works as Long the Import must not change Printer object security Settings.
It Fails when Export -> Change security Settings -> Import
No error when Export -> Import.
Following commands are used:
rundll32 printui.dll,PrintUIEntry /Ss /n "SHARP MX-M623U PCL6" /a "printer_sharp_settings.dat" s g
rundll32 printui.dll,PrintUIEntry /Sr /n "SHARP MX-M623U PCL6" /a "printer_sharp_settings.dat" s g
Any ideas?
Kind regards,
Chris
All replies (3)
Monday, April 4, 2016 9:58 AM ✅Answered
Security settings are not the cause (Administrator cmd).
In the post you mentioned the Problem was because of different Printer Name and without security data (no parameter s). Here not applicable.
Finally I solved it with using powershell get-printer/set-printer -PermissionSDDL.
Kind regards,
Chris
Monday, April 4, 2016 3:06 AM
Hi Chris,
Since there is no error when Exporting and Importing, it indicated that your commands should be correct.
Please check the security settings of your printer, make sure your account has the complete control permission.
Then, check your commands’ last parameter, I find out a similar case for you, please have a look.
Best regards
Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact tnmff@microsoft.com.
Tuesday, April 5, 2016 1:22 AM
I am glad to hear that you have solved problem, maybe your PowerShell command can be helpful to others.
Thanks for your sharing.
Regards,
Teemo Tang
Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact tnmff@microsoft.com.