How to set a default printer using vbs on windows 2008 R2 with remote desktop services

Hello
It seems I wasn't in the right places before / threads. BIG Sorry.
Here's the problem: I have this VBScript:
On any computer, the Default Printer "HisBadPrinter"
strPrinterName = "mySuperPrinter"
Set objPrinter = Helper.CreateObject("WScript.Network")
objPrinter.SetDefaultPrinter strPrinterName
In Xp, Windows 7 it work perfect, The default printer is being changed.
But in Remote Desktop on Windows Server 2008 R2 it is not working, with any type of account (Administrator, user, powerUser...) "HisBadPrinter" is always the default printer and it's always printing on it without any error messages.
Help Please.

Ok, here what I have in my ControlPanel > Devices and Printers
Adobe PDF (redirected 3)
Brother HL-4150CDN series on infovm1dc (redirected 3)
Generic / Text Only (redirected 3)
HP Color LaserJet 3800 PCL 5c on infodc3 (redirected 3)
Microsoft XPS Document Writer
Microsoft XPS Document Writer (redirected 3)
PDFCreator (redirected 3)
Now Here what I got when I executed the bit of code :
TS011
Adobe PDF (redirected 3)
TS013
Microsoft XPS Document Writer (redirected 3)
TS012
Generic / Text Only (redirected 3)
TS015
Brother HL-4150CDN series on infovm1dc (redirected 3)
TS016
HP Color LaserJet 3800 PCL 5c on infodc3 (redirected 3)
TS014
PDFCreator (redirected 3)
TS002
DIRECT - Brother HL-2460 (redirected 2)
TS006
PDFCreator (redirected 2)
TS003
Fax (redirected 2)
TS005
Microsoft XPS Document Writer (redirected 2)
TS007
Brother HL-2460 on infodc3 (redirected 2)
TS004
Microsoft Office Document Image Writer (redirected 2)
TS001
Brother HL-4150CDN series on infovm1dc (redirected 2)
XPSPort:
Microsoft XPS Document Writer
There is no printer called "\\ALPHA\HP LaserJet P2015 Series PCL 6".
OK  

Similar Messages

  • Windows Server 2008R2 running Remote Desktop Services reports printer process does not exist when installing PDF printer

     Windows Server 2008R2 running Remote Desktop Services reports printer process does not exist when installing PDF printer, And when Installing network printers from the domain controller it reports it cannot connect to printer.  I can ping all
    network devices. I can connect to the internet.
    On boot I get a netlogon 5719 error followed by service control manager errors 7023,7001 and a group policy error 1129.
    Clients can connect to the remote application and RDP operates to connect to the server internally and externally.
    The domain controller is another server 2008r2 box. I have scoured the internet but have not found any solutions that work yet.

    Hi,
    After referring to your post, it can be identified that the issue which you are facing is mostly due to some network issue in your environment. Please recheck your network connection issue between computer and domain controller. 
    Can you able to ping with IP address and also with fully qualified name of a domain controller in the users' and computers' domain. If it fails states that name resolution issue with computer and domain controller. Are you using MS DHCP Relay agent then there’s
    available Hotfix for the particular Event ID. Please go through this KB 2459530 to fix the error event ID.
    As per the net logon error 5719 which you are facing states that the client component of Netlogon was unable to locate a DC for the domain it was trying to perform an operation against. Below is one of the reason. If this is being logged on a DC and the event
    refers to the DC's own domain, something might be preventing the client component of Netlogon from starting a network session (to itself or to another DC in the domain). The following event 7001 & 7023 states start & stop operation service. Please
    go through beneath article for more details.
    1.  Event ID 5719 is logged when you start a computer
    2.  Netlogon 5719 and the Disappearing Domain [Controller]
    3.  Event ID 1129 — Microsoft-Windows-GroupPolicy
    Hope it helps!
    Regards.

  • How could I turn off the Command Key to Windows Key mapping in Remote Desktop for Mac 8

    I'd like to be able to turn the Command key->Windows key mapping off.  In this new app, whenever I use the Command key to initiate a Mac-side function, it registers a press of the Windows key within the Remote Desktop session.  Speaking only
    for myself, I use the Command Key for quite a lot of Mac operations, while my need and expectation for a Windows key press is zero.

    I'd like to be able to turn the Command key->Windows key mapping off.  In this new app, whenever I use the Command key to initiate a Mac-side function, it registers a press of the Windows key within the Remote Desktop session.  Speaking
    only for myself, I use the Command Key for quite a lot of Mac operations, while my need and expectation for a Windows key press is zero.
    Agreed. Cannot stop it by disabling the "Windows" key (from within Windows 7). Every time I Cmd-Tab to change apps, the Start Menu pops up,
    and persists, overlaying other app windows. Much more than annoying.
    Also, there is no Clipboard Sharing, apparently. Love typing in long binary strings into the Registry.

  • How do I simulate a right-click in Windows when connected with Remote Desktop 8.0 for Mac OS X?

    When connecting to a remote Windows 7 OS from Mac OS X 10.8.5 with Microsoft Remote Desktop 8.0.24091, I'm not able to simulate a right-click with the Apple magic mouse.  
    On an older version Microsoft Remote Desktop Client version 2.1.1, I can hold down shift+ctl on the Mac and click the magic mouse to simulate a right-click in Windows.  With this new version RDP 8.0, I can't find any way to simulate a right-click,
    other than to select "Swap mouse buttons" under settings, and then every click is a right-click and then I'm no longer able to left-click (which is even worse).  I've tried several key combinations and nothing seems to work.  Am I missing
    something simple here with the new RDP 8.0 application, or is the right-click simulation not (yet) functional?  
    Any help is greatly appreciated, thanks!

    In order to make use of the right-click inside an open session you have three options:
    Standard PC two button USB mouse
    Apple Magic Mouse: To enable right-click, clickSystem Preferences in the dock, click Mouse, and then enable Secondary click.
    Apple Magic Trackpad or MacBook Trackpad: To enable right-click, click System Preferences in the dock, click Mouse, and then enable Secondary click.
    Extracted from "Remote desktop Client on Mac: FAQ"
    http://technet.microsoft.com/en-us/library/dn473006.aspx

  • Can Thunderbird and Lightning be installed and used as a Windows Server 8 r2 remote desktop application.

    Can Thunderbird and Lightning be successfully installed as a remote desktop (terminal server) application on Windows Server 8 r2? In this scenario, users would access Thunderbird and Lightning via Windows (or Linux or Mac) remote desktop connection. Each user has there own home folder and profile on remote desktop server. I want to make sure that an individual user will be able to maintain individual email accounts, folders, settings, etc. as if Thunderbird and Lightning were installed on a stand alone PC. Any tips or things to watch out for in this scenario would be helpful.

    There appears to be a problem with Firefox 20 with UNC paths when using roaming profiles on a server.
    This is currently investigated and tracked via this bug report.
    *[https://bugzilla.mozilla.org/show_bug.cgi?id=857672 bug 857672] - Address Bar not working
    <i>(please do not comment in bug reports: [https://bugzilla.mozilla.org/page.cgi?id=etiquette.html])</i>

  • How to set up new printer using Automator

    I would like to create an Automator workflow to set up a new printer, so that other users can download the workflow and have the process automated for them. The workflow would need to add a new LPD printer, supply the printer's address, queue name, and printer name.
    Anyone have an idea for accomplishing this?

    Follow your printer's wireless installation instructions.

  • How to set the default print format for the report

    Hi,
    In ALV report , i want to defalut specific print format and printer for background processing .
    Any clues!!!!!!!!!
    Regards
    Swatantra

    Hi
    Please check below code:
    DATA: PRIPAR TYPE PRI_PARAMS,
          ARCPAR TYPE ARC_PARAMS,
          LAY    TYPE PRI_PARAMS-PAART,
          LINES  TYPE PRI_PARAMS-LINCT,
          ROWS   TYPE PRI_PARAMS-LINSZ.
    DATA: val(1).
    CALL FUNCTION 'GET_PRINT_PARAMETERS'
      EXPORTING
        destination            = 'LOCL'   " <--- Printer Name
        no_dialog              = 'X'
        immediately            = ' '
      IMPORTING
        out_archive_parameters = arcpar
        out_parameters         = pripar
        valid                  = val
      EXCEPTIONS
        archive_info_not_found = 1
        invalid_print_params   = 2
        invalid_archive_params = 3
        OTHERS                 = 4.
    IF sy-subrc <> 0.
    *     MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    *** Specifying the page formats
        pripar-linct = 65.
        pripar-linsz = 190.
        pripar-paart = 'X_65_132'.
    CALL FUNCTION 'GET_PRINT_PARAMETERS'
      EXPORTING
        in_archive_parameters  = arcpar
        in_parameters          = pripar
        no_dialog              = 'X'
    *      list_name              = 'Testing Purpose Only' "l_list
      IMPORTING
        out_archive_parameters = arcpar
        out_parameters         = pripar
        valid                  = val
      EXCEPTIONS
        archive_info_not_found = 1
        invalid_print_params   = 2
        invalid_archive_params = 3
        OTHERS                 = 4.
    IF sy-subrc EQ 0.
      NEW-PAGE PRINT ON
      NEW-SECTION
      PARAMETERS pripar
      ARCHIVE PARAMETERS arcpar
      NO DIALOG.
    ELSE.
      write:/ 'Unable to create spool'.
    ENDIF.
    So now a spool is created with the required print parameters...
    The list that is created from here will be in the spool.
    Once the list is completed, close it with NEW-PAGE PRINT OFF.
    Hope this helps.
    Regards
    Eswar

  • How to set the default location of a new window in Preview?

    Opening a new document in Preview always results in a new window that is located at the upper left of the screen.
    I'd like to have all of my Preview documents open in a second monitor, but this doesn't appear possible. Does anyone have any insight to offer?
    Thanks.

    HI,
    Open Preview/Preferences and select the General tab.
    You can make a selection there but unfortunately I don't think Preview supports a connected monitor.
    But don't give up hope. Go here and post in the Apple Technologies forum. Perhaps a Terminal guru can offer a command to use to do this for you.
    http://discussions.apple.com/forum.jspa?forumID=735
    Carolyn

  • How to set my default application for illustrator files (windows)

    I have both illustrator CS3 and CS5 on my windows 7 machine. I want to keep both versions as CS3 is better for converting SVG files.
    Windows has CS3 as the default application when opeing .svg files. but I want to change this to CS5. I have tried changing the default program in the normal way,
         right click - open with  - choose default program...
    only CS3 is listed in the programs, so I navigate to CS5
         C:\Program Files (x86)\Adobe\Adobe Illustrator CS5.1\Support Files\Contents\Windows\illustrator.exe
    but when I click ok, CS5 isn't added to the program list.
    I have managed to change the default program for .ai and .eps files in this way and its workeds, but not with.svg files.
    Any ideas?

    This method still doen't work, it has the same problem as my original post.Bbut I did find a utiliy that works, here is the link in case anyone has the same problem.
    http://defaultprogramseditor.com/

  • Setting up default Printer

    Hello Experts!,
    I am working on the Crystal Reports XI and have a couple of questions about printers.
    1.  How to set the Default Printer to a New Crystal Report ?
    2.  How to check the default printer for an existing report ?

    Hi Aaron,
    To set the Default Printer to a New Crystal Report
    Click on File Menu -> Page Setup... -> Printer Options Click on Printer  button
    In the same way you can  check the default printer for an existing report.
    Regards,
    Shweta

  • How do I set the default print margins for ALL printers in mozilla.cfg

    How do I set the default print margins for ALL printers in mozilla.cfg, even ones that are not yet installed / connected to the computer?
    I'm trying to install firefox with MDT and apply certain print options, but the printers themselves are connected at a later stage so the print.printer_myprinterhere cannot be used.

    Best answer I could find: [https://mike.kaply.com/2012/03/16/customizing-firefox-autoconfig-files/#comment-132668]
    If you can figure out how to add the printer name, this can be used to lock the margins.

  • Adobe Reader XI...How to set it to Print as Image as default

    Hello I  using Windows 7 64 bits version and using Adobe Reader XI. I need to know how to set reader to Print As Image to default. Is there registry setting in windows or VB script that can do it?  I alread found it in version. I need to find it this in Version XI. Any usefull solution or suggestions would be helpful.
    Thanks

      Are you using the Organizer? If you have imported your photos into the organizer it’s possible to select thumbnails and then on the top menu click Edit à Edit With Photoshop Elements
      Click to view

  • How to set a default value in my DropDown using the key  ?

    Hello All,
      Can someone advose how I can achieve the above ? I will like to know how to select a default value for the dropdown by key using the key value instead of description.
      The reason why I need to do so instead o fusing description is because my application will populate the dropdown using web services based on the language selection. Hence, if I were to set the default value using description, den other languages will not work anymore.
      Any help will be greatly appreciated. Thank you !!
    from
    KWok Wei

    Kwok,
    Assuming that:
    1. You have a node NodeX, where attribute TargetAttr defined
    2. You have a DropDownByKey UI control, its property selectedKey bound to NodeX.TargetAttr attribute
    Then:
    Place in your code:
    wdContext.currentNodeXElement().setTargetAttr("yourKey");
    VS
    P.S. This topic was raised several times, and forum search works good enough to find an answer

  • How can I set the default print settings of my document as color.  I want the default print setting to be color when someone opens a document.  similar to duplex print preset is there a color print preset?

    How can I set the default print settings of my document as color.  I want the default print setting to be color when someone opens a document.  similar to duplex print preset is there a color print preset?

    Hi,
    Try saving your settings as a Preset by clicking the Preset drop down and then select Save Current Settings as a Preset.
    Next try changing the settings by selecting the saved preset.
    That allow saving the settings for a specific printer, I assume it may also allow selecting these settings for another printer.

  • How to set a default page setup in P6?

    Hi,
    Anyone know how to set a default page setup in P6?
    Thanks,
    Manuel

    Hi Manuel,
    For printing, the settings are stored within the layout. If you have one layout containing the settings you use, you can then use this layout as your template and do a 'Save As' every time you make your changes.
    Hope that helps
    David

Maybe you are looking for