Update printer properties with powerhsell error

Hello, dear Colleagues.
I'm trying to updates properties with powershell.
Here is a script:
$erroractionpreference = "continue"
$colPrinters = Get-Wmiobject -Class win32_printer -computername print_server -Filter "Name like 'printer1' or Name like 'printer2' or Name like 'printer3' or Name like 'printer4' or Name like 'printer5' or Name like 'printer6'" # get printers on server and filter with names
ForEach ($objPrinter in $colPrinters) { # get printer details from WMI
If ($objPrinter.RawOnly -ne "True") { # check that Advanced printing fetaures is turned on
Write-host $objPrinter.Name
Write-Host $objPrinter.RawOnly
$objPrinter.RawOnly = "True" # Untick and update the object in WMI
$objPrinter.Put()
It works on Windows 7 workstation, but does not on print server Windows Server 2012 R2 with error:
Exception calling "Put" with "0" argument(s): "Generic failure "
At \\print_server\c$\DisableAdvancedPrintingFeatures.ps1:8 char:17
+ $objPrinter.Put()
+ ~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [], MethodInvocationException
+ FullyQualifiedErrorId : DotNetMethodException
Can you help me with that?
Thanks you.

Hi Fapw,
I tested This script and it works on Server 2012 R2, so I recommend you can troublehsoot the Printer issue, why current user can't change the RawOnly property.
For the printer issue, I recommend you can post in Printer Forum for more efficient support:
https://social.technet.microsoft.com/Forums/windowsserver/en-US/home?forum=winserverprint
If there is anything else regarding this issue, please feel free to post back.
Best Regards,
Anna Wang
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact [email protected]

Similar Messages

  • Error updating LDAP properties: An internal error has occurred in the secLdap plugin

    Post Author: kbd_vijey
    CA Forum: Authentication
    Hi,
    We are using Environment / Tools : BusinessObjects Enterprise XI R2 ,Sun Soloris 10,Active Directory.
    To Configure the LDAP, we have done from CMC - > Authentication -> LDAP.
    The below steps we have followed.
    1) Please enter the LDAP hosts you are using. => Here, we have entered our AD's hostname:port (Ex: 192.168.0.8:389) (Is it correct?)
    2) We have passed all the required informations for all other tabs.
    3) SSL - Basic(no SSL), Authentication - Basic(no SSO)
    Finally its providing the error as " Error updating LDAP properties: An internal error has occurred in the secLdap plugin."
    If any one have solution or faced same problem, Kindly help us to resolve it.
    Thanks & Best Rgds,Vijey

    Post Author: TAZ
    CA Forum: Authentication
    There are 3 things needed to get the LDAP plugin configured.
    1) Host:port
    2) Base DN, usually dc=domain, dc=com
    3) LDAP Administrator DN (this is not a visible attribute in AD unless you use a tool like ADSIedit or ADExplorer). You probably have to enter the Base DN instead of the username.
    There are other AD specific issues when using the LDAP plugin to AD such as picking custom attributes, rules for multi domains, etc
    Regards,
    Tim

  • HT5622 I have changed my apple id password and yet apple store refused to update my software with the error "The apple id has been disabled" pls help

    I have changed my apple id password and yet apple store refused to update my software with the error "The apple id has been disabled" pls help

    Apple ID security issues -
    Call Apple Care and ask for the Account Security Team. They can assist you with your issue.

  • 10.6.7 update printing problem with canon ipf700

    After the last os x update i can't print with canon ipf700
    No new drivers in canon site
    Any suggestions?
    thanks
    s

    Welcome to Apple Discussions!
    Sometimes what you need to do is clear the print queue in the Printer System Preferences, sometimes what you need to do is reinstall the latest printer drivers.  Sometimes open source drivers work*:
    http://www.macmaps.com/printersx.html
    I don't have an ipf700, but my MX700 works in 10.6.7 if it is any consolation.

  • ThinkVantage System Update keeps failing with "an error occurred while downloading packages"

    For approximately a week now, various machines I am responsible for have been unable to successfully run System Update.  The error I see in v3 vs. v4 of System Update is slightly different, though I wonder if the underlying cause is the same.  On one machine (ThinkCentre M52) running XP (so using Update v3), when attempting to download the package information, I get the error: "An error occurred while downloading packages".  I checked the TVSU log, and find the following error:
    Info 2011-10-03 , 08:31:00
     at Tvsu.FileDownloader.HttpsDownload.StartDownload(FileDownloadInfo fileInfo, downloadingDelegate downDelegate)
     Message: An exception ocurred while downloading https://download.lenovo.com/ibmdl/pub/pc/pccbbs/thinkvantage_en/livefeed.xml
     Status set to FAILED
     Exception:
      Message: Error at DirectFileDownloader when validating certificates, or a secure channel cannot be established.
      Type: Tvt.FileDownloader.CertificateValidationException
         at Tvsu.FileDownloader.HttpsDownload.doDownloadByHttps(FileDownloadInfo fileInfo, downloadingDelegate downDelegate)
       at Tvsu.FileDownloader.HttpsDownload.StartDownload(FileDownloadInfo fileInfo, downloadingDelegate downDelegate)
    If I try to navigate to the URL noted in the message using Internet Explorer, I can understand why this is failing: IE displays a message that the certificate for the site is invalid and, thus, the site cannot be loaded.  I have noticed a similar issue when trying to use the "Auto Detect" tool on this machine from the Lenovo site... I.E. indicates the site's certificate is invalid.
    This machine is a fresh OS reinstall from nothing; TVSU version is the latest (that I know of): 3.15.0017.  I do have two other XP machines (that have been installed for quite some time) running the same version of TVSU that DO NOT experience this issue.  I've otherwise been unable to figure out what the difference betweens the machines is.  Any thoughts either Lenovo or the community can share would be much appreciated.

    hey PSIC01,
    try installing this version of TVSU - http://support.lenovo.com/en_US/downloads/detail.page?DocID=DS012808
    and see how it goes.
    WW Social Media
    Important Note: If you need help, post your question in the forum, and include your system type, model number and OS. Do not post your serial number.
    Did someone help you today? Press the star on the left to thank them with a Kudo!
    If you find a post helpful and it answers your question, please mark it as an "Accepted Solution"!
    Follow @LenovoForums on Twitter!
    Have you checked out the Community Knowledgebase yet?!
    How to send a private message? --> Check out this article.

  • Unable to print to network printer // sometimes with port error

    I upgraded to Leopard and am now _*unable to print to my network attached*_ *_Lexmark x9350_*. In prefs it shows the printer and driver installed. Once a print job is submitted, it reads printing, but there is no action on the printer. Other times it gives a port error. I tested the printer under OSX 4 and it printed with no problem. I also have a similar problem on the XP partition of this system. Please advise.

    I don't think Lexmark has a Leopard driver for this printer yet. This problem was discussed earlier here
    http://discussions.apple.com/thread.jspa?messageID=5702119&#5702119

  • Report printing failed with "Servlet error: An exception occurred. "

    Hi,
    I use Apex 3.1 in Oracle Express edition develop few applications. In one of the application, when I enable report printing in stardard reports and try to print to PDF/Excel, the servlet error occur.
    I had configured FOP in my server and I can download PDF in "interative report", but for stardard report, the report printing failed.
    I can successfully print the reports in my others applications. Anyone know what could be the reason which cause an application failed to print the report.
    Thanks
    Vincent

    Does your application name have special characters? I heard that the app name has to be just letters and numbers for this to work...actually testing right now.

  • Print document with images error

    I have a problem with Word 2013 document management with images in my project. By using the scrollbars to scroll through the images, they disappear leaving an empty document space ("placeholder") instead. I interpret that are downloaded
    from  the view. The most serious problem is that this images are not printed afterwards.
    Details
    The project is made by a "addin" application level on word 2013, created in Visual Studio 2012 (Framework 4.0), from which you can initiate actions based in our business logic. Including a list of images is inserted into the active document.
    To insert the images I've tried various techniques (interop, open xml) to verify that my problem is related to a defect in this part. I also tested load different images each time (bmp, jpg).
    When I insert images into two documents within the same session of word and use the scroll to move from one image to another repeatedly, some are downloaded from the print view. This process can replicate completely closing and reopening word
    2013 and then open these documents afterwards. Opening the documents opens the "addin" too. If I uninstall the addin the effect does not occur. However this addin dont use in the loading process any  logical business or load sessions database.
    Only load a few basic buttons.
    Can anyone give me any explanation or solution to this effect?

    document examples:
    https://onedrive.live.com/redir?resid=A0312CFD425175AF!108&authkey=!APZWb_nUFHmecNM&ithint=file%2cDOCX
    https://onedrive.live.com/redir?resid=A0312CFD425175AF!109&authkey=!AHLP6WG7KGRyaBs&ithint=file%2cDOCX
    Add new Addin for word by VS2012, it's indiferent,
     I've tried with
    a new Addin for Word and the problem persist.

  • Itunes 10 update killed Itunes with the error i tunesMiniPlayer Resources

    Look I am starting to hate itunes. Why is it that every time they update this it Mess Up.
    Ok I have wiped everything and the only thing that is still there is itunes in the program file. When I try to de-install it Bam I get i itunes miniplayer.resources is not a valid filename.
    So I tried to reinstall it an bam the same thing. And the same thing for itunes 9 and so one. I have tried everything.
    So itunes what is the deal why is it that every time you send me an update something happens either it is on my mac pro or on my pc. Look I NEED MY IPAD every day ok and now for the past three-days it has killed me not to have it and work from it.... Bang Dead Please do not tell me that I need to start to look at droids!!!!!!!!! I am Apple
    So help me quick !!!!!!!!!

    When I try to de-install it Bam I get i itunes miniplayer.resources is not a valid filename.
    That's generally related to trouble with the iTunes.msi for your existing installation.
    Unfortunately, this sort of trouble has gotten more complicated to deal with ever since Microsoft pulled the Windows Installer CleanUp utility from their Download Center on June 25. First we have to find a copy of the utility.
    Let's try Googling. (Best not to use Bing, I think.) Look for a working download site for at least version 3.0 of the Windows Installer CleanUp utility. After downloading the utility installer file (msicuu2.exe), scan the file for malware, just in case. (I use the free version of Malwarebytes AntiMalware to do single-file scans for that.)
    If the file is clean, to install the utility, doubleclick the msicuu2.exe file you've downloaded.
    Now run the utility ("Start > All Programs > Windows Install Clean Up"). In the list of programs that appears in CleanUp, select any iTunes entries and click "Remove".
    Quit out of CleanUp, restart the PC and try installing iTunes again. Does the install go through properly now?
    (If you do find a clean download site for the correct version of CleanUp, please don't tell me where it is. Without wishing to sound paranoid (although I grant it does sound paranoid), there is a non-zero chance that posting links to download locations for the utility here at Discussions leads to that download location being shut down.)

  • My ipod wont update comes up with an error message saying some random crap

    k so it says The Ipod *ipod Name* cannot be updated the required file cannot be found.
    ive tried restoring the ipod uninstalling itunes and reinstalling it and all that good stuff and it doesnt only do it on one song i watched it very carefully its like a different song it screws up on every time.

    it would be greatly appreciated if someone could help me

  • After latest update shortcuts load with an error message

    i get an error message saying it cant find the address but it still loads,but i have to click on the error message to get rid of it.
    please help...and thanks in advance.

    If you get that error message if you click a shortcut on link in an external program to open Firefox then see:
    *http://kb.mozillazine.org/Windows_error_opening_Internet_shortcut_or_local_HTML_file_-_Firefox
    Otherwise you can check for issues caused by extensions.
    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

  • Trying to download the itunes update, came up with an error, so I deleted the whole program and I'm trying to download a new program, still getting an error message

    I'm having difficulty downloading itunes, and suggestions?

    That's too bad.
    If help is desired, try providing details of the situation or search the forums for the issue yourself.
    We are not mind readers.

  • Did recent recommended update cause incompatibility with HP printer, causing error message and printer to print blank pages?

    did recent recommended update cause incompatibility with HP printer, causing error message and printer to print blank pages?

    Why not contact HP tech support for assistance since they make the printer. While on their site you can look for an updated printer driver. Otherwise, try deleting the current installed driver, reset the print system, then reinstall your printer's driver.
    Mac OS X- How to reset the printing system

  • Acrobat X Pro 10.0.1 Update - Printer Errors?

    Hi, all.
    I was wondering if anyone else out there had noticed a problem similar to the one I now see...
    I recently updated from Acrobat Pro X 10.0 to 10.0.1 (Received notification of update availability 2/8/2011), and from that point on, anytime I print to the Adobe PDF printer (such as from Word, etc.), I get one of those errors in my task tray with the picture of the printer with a red question mark over it, saying "This Document Failed to Print" even though the document is successfully converted and opens in Acrobat Pro...  I can view the file in Acrobat Pro, the file exists in the destination where I directed it to be saved, but the printer shows that error.  In reality, there doesn't seem to BE an error, but it is annoying to have to open the Adobe PDF printer and "cancel" out the document with the "Error - Printing" status.
    Not even sure how I did this, but somehow I interrupted one of my jobs, and it came up with this log:
    The operation completed successfully.
    Pipe:\\.\pipe\PMtoDistiller_ID_3:Microsoft Word - AVMA.doc
    That, despite throwing the error...
    I have uninstalled and re-installed, and I have attempted to re-do the update installation by downloading the .msp file in the Downloads section.  To no avail.
    This problem surfaced only after the update.  No such occurrences prior to it.  Nothing else installed or uninstalled surrounding the appearance of this technical gaffe.
    Any suggestions or feedback?  Has anyone else noticed this?
    Thanks!
    JL

    I am running Win 7 x64 and I was able to find a solution for my configuration...at least for now. I suspect that the configuration might not matter as this seems to be related to the update deleting the PDF Printer or just the port it is assigned to. Not entirely sure if just the port is being deleted and the printer is then reassigned a default port of COM1 or if the PDF printer is deleted along with the port(s) and reinstalled but assigned to the wrong port.
    I spent "some time" with tech support last night. Apparently they are aware of this problem but there wasn't any permanent solution yet. Long story short I  uninstalled and reinstalled Acrobat X Pro from disk but did not install this 10.0.1 update. After doing so I noticed that the PDF printer port(s) that had been deleted during the original update were now back.
    Before you do anything take a look at your installed PDF Printer and look at the printer properties. Check the port it is assigned to. If it says something like COM1 then that seems to be the problem.  Scroll down the entire list of ports to see if there is a port titled ""Documents\*.pdf" or "Desktop\*.pdf". On the outside chance you find such a port check the box next to it. If you see both options choose the one based on which default folder you want your PDF files to save to automatically (Desktop or Documents in my case...might be different in XP).
    If you don't see them then uninstall and reinstall from disk but don't install the update if it comes up afterwards.I haven't been prompted about the update yet but I just did this last night.

  • KDE Printer Manager fails with "client-error-bad-request"

    I'm having some trouble with printing on my system. The KDE printer manager shows "client-error-bad-request" and no other information. When I run the KCM from the command line, I also get "kcmshell(17286) KCupsRequest::serverError: status unrecognised:  1024" on the console. I wasn't able to find any useful information on this issue on google or these forums; not even what the 1024 status code means. It seems to me that this may be a bug in the kcm_printer_manager module, but I'd like to rule out other possibilities first. Unfortunately, I don't know what to try from here. I'll provide as much potentially relevant information as I can think of below.
    Changes since last successful print job:
    Multiple updates to KDE packages
    Update to cups that changed systemd unit file names.
    Stopped and disbled old units
    daemon-reload
    Enable and start new units
    Other updates to cups since then, if I recall correctly.
    Packages and versions:
    kdeutils-print-manager 4.14.3-1 (owns kcm_printer_manager module for kcmshell4)
    kdebase-runtime 4.14.3-1 (owns kcmshell4 binary)
    cups 2.0.1-1
    libcups 2.0.1-1
    systemd 218-1
    linux 3.17.6-1
    Let me know if any other information might be helpful.

    Anyone please help.
    Thanks,
    Orton

Maybe you are looking for

  • Help needed for newbie EJB

    Hi, all I am a newbie in EJB and I am following the example in the URL: http://www.huihoo.com/jboss/online_manual/3.0/ I am working on the 'interest' example in the first chapter. When it come to 'Packaging and deploying the bean', I got some meaage

  • Open sales order value for credit check need to be changed (S066)

    Hi all, I need to change open sales order value which is already there in S066 table. Previously we had used open order value for credit check. Open order values are already updated in the S066 table. Now we dont want to consider open order value for

  • Oracle - how to find columns in a table + stored procedures dependent on th

    Scenario: I need to list all the columns in a table1 and all stored procedures that depends on those columns of this table1. I need to populate column name and stored procedures to a new table. I created new_table(col1, sProc) and tried to populate t

  • EDI, ALE ?

    what is the difference between EDI, ALE ?plzz explain ?

  • Photosmart B9180 Duplex Printing - Can you do it?

    I know duplex printing is not 'supported' but can you do it anyway manually?  What harm would there be?  Have you tried it?