Assigning Default Printer to User

Greetings;
My apologies for the double posting, my previous posting was labeled "adding printers", a matter I eventually solved.
I am trying to determine how I can recreate what in NIS was printers.conf / printers.conf.byname.
The former NIS map was a map which contained one pair per line, "username printerA", for instance:
smith hp001
jones hp002
taylor hp001
I had a simple script, that upon login, read this printer from the NIS map, and assigned it as that users default printer.
I am at a loss as to how to assign default printers to users, or how to import (ldapaddent fails) this map, or perhaps just create a new database that can be inserted into my DIT?
Is their someplace within DSCC that can do this?
Thank you.

Hello Tison,
we're using also the WF-BATCH user having no default printer assigned and it works fine with the final release.
However, there's usually the output message NEU with a prerequesite maintained that the PO has to be finally released. So this way there can be an additional output message found upon releasing. But we have a printer assigned using the condition records and we're not using the type that you've specified.
So I'd guess that, indeed, the problem lies within the message. You could copy the WF-BATCH user to a dialog user and release the purchase order in dialog and see what happends.
With the very best wishes,
   Florin

Similar Messages

  • Default printer in purchase order

    Hi Experts,
    I have defined one default printer in the message output condition (MN04). When i create purchase order and go to the message type, i can see this default printer there.
    But in case i am creating new message in the purchase order, default printer is not appearing. Even i tried to assign default printer in user profile (SU3), but still in communication method, there is not any printer appearing while creating new message manually.
    Regards,
    Kamal

    hi
    as u can define the outputs in MN04 from here the printer will be defaulted for that message type
    but when u add new message type in PO then u have to define the printer manually ,it will not poopup directly
    so either create output manually or just repeate it by clicking repeate output button
    or consult ur BASIS person if they have some settings
    regards
    KI

  • Mapping default printer based on AD attribute

    Hi all ! 
    Sorry for my english, i'll try to be clear... :)
    I need to run a VBscript on TSE 2008 R2 servers to set computer's
    default printer (not user). For this, I need to use the ClientName var. 
    The default printer name is written in the computer's description attribute in Active Directory. 
    I'm a beginner in VBscripting. I have parts of scripts working, but not everything.
    Here is my script (my comments are written with ''''''''''''''''''''''''''''''''''''''''''''): 
    'find clientname
    strComputer = "."
    Const ForAppending = 8
    Set oNetwork = wscript.CreateObject("wscript.network") 'Create network object
    Set objShell = Wscript.CreateObject("Wscript.Shell")
    Set objFSO = CreateObject("Scripting.FileSystemObject")
    Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
    Set colAdapters = objWMIService.ExecQuery ("Select * from Win32_NetworkAdapterConfiguration Where IPEnabled = True")
    strUserName  = oNetwork.userName
    strComputerName  = oNetwork.computerName
    strClientName = objShell.ExpandEnvironmentStrings("%clientname%")
    ExecuteSearch = SearchDistinguishedName(strClientName)
    Public Function SearchDistinguishedName(ByVal vSAN)
    Const ADS_SCOPE_SUBTREE = 2
        Dim oRootDSE, oConnection, oCommand, oRecordSet
        Set oRootDSE = GetObject("LDAP://rootDSE")
        Set oConnection = CreateObject("ADODB.Connection")
        oConnection.Open "Provider=ADsDSOObject;"
        Set objCommand = CreateObject("ADODB.Command")
        objCommand.ActiveConnection = oConnection
    ldstring = "'LDAP://" & oRootDSE.get("defaultNamingContext") & "'" 
    objCommand.CommandText = "Select Name, distinguishedName from "& ldstring & " where objectClass='computer'"  
    objCommand.Properties("Page Size") = 1000
    objCommand.Properties("Timeout") = 30 
    objCommand.Properties("Searchscope") = ADS_SCOPE_SUBTREE 
    objCommand.Properties("Cache Results") = False 
    Set objRecordSet = objCommand.Execute
    objRecordSet.MoveFirst
    Do Until objRecordSet.EOF
    If lcase(objRecordSet.Fields("Name").Value) = lcase(vSan) Then
        Wscript.Echo "Client Name: " & objRecordSet.Fields("Name").Value & vbCrLf _ 
        & "Location: " & objRecordSet.Fields("distinguishedName").Value
        'Wscript.Quit
    End If
        objRecordSet.MoveNext
    Loop
    End Function
    ' find canonical name
    On Error Resume Next
    ADSRoot = "DC=domain,DC=fr"
    Const ADS_SCOPE_SUBTREE = 2
    Set objConnection2 = CreateObject("ADODB.Connection")
    Set objCommand2 = CreateObject("ADODB.Command")
    objConnection2.Provider = "ADsDSOObject"
    objConnection2.Open "Active Directory Provider"
    Set objCommand2.ActiveConnection = objConnection2
    objCommand2.Properties("Page Size") = 1000
    objCommand2.Properties("Searchscope") = ADS_SCOPE_SUBTREE
    objCommand2.CommandText = _
    "SELECT * FROM 'LDAP://" & ADSRoot & "' WHERE objectCategory='user' OR objectCategory='computer'"
    ''''''''''''''''''''''''''''''''''''Here, I use a input box to enter the clientname, cause I don't know how to re-use the clientname found in the lasts vars.
    srchTrm = LCase(InputBox("Please enter your search term.", "Active Directory Search"))
    WScript.Echo srchTrm
    i = 0
    If Len(srchTrm) < 4 or Instr(srchTrm, "=") Then
    WScript.Echo "Please enter a search term in excess of 3 characters. Don't use ""="""
    WScript.Quit
    End If
    Set objRecordSet2 = objCommand2.Execute
    objRecordSet2.MoveFirst
    Do Until objRecordSet2.EOF
    strADPath = LCase(objRecordSet2.Fields("adsPath").Value)
    If InStr(strADPath, srchTrm) Then
    Set objUser = GetObject(objRecordSet2.Fields("adsPath").Value)
    Select Case objUser.Class
    Case "user"
    strMsg = "Type: Person" & VbCrLf
    strMsg = strMsg & "Name: " & objUser.DisplayName & VbCrLf
    strMsg = strMsg & "Email: " & objUser.mail & VbCrLf
    strMsg = strMsg & "Telephone: " & objUser.telephoneNumber & VbCrLf
    strMsg = strMsg & "Department: " & objUser.department & VbCrLf
    strMsg = strMsg & "Title: " & objUser.title & VbCrLf
    Case "computer"
    strMsg = "Type: Computer" & VbCrLf
    strMsg = strMsg & "Name: " & objUser.Get("name") & VbCrLf
    strMsg = strMsg & "OS: " & objUser.operatingSystem & VbCrLf
    Case Else
    strMsg = "Unidentified" & VbCrLf
    End Select
    'strMsg = strMsg & "LDAP: " & objUser.adsPath & VbCrLf
    objUser.GetInfoEx Array("canonicalName"), 0
    strMsg = strMsg & "AD Path: " & objUser.canonicalName & VbCrLf
    objUser.GetInfoEx Array("description"), 0
    strMsg = strMsg & "Imprimante: " & objUser.description
    WScript.Echo strMsg & VbCrLf
    ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''Here I want to use the "objuser.description" to set default printer
    Dim WshNetwork
    Set WshNetwork = CreateObject("WScript.Network")
    WshNetwork.SetDefaultPrinter "\\SRV-PRINT.domain.fr\" & objUser.description
    i = i + 1
    End If
    objRecordSet2.MoveNext
    Loop
    If Not i > 0 Then
    WScript.Echo "No results found."
    End If
    I think there's a most simple way to do this, but for the moment, I Don't know how to do. 
    Any help would be grateful. 

    Hello. 
    We need to do this because each computer in the office as a network printer (or nearly each computer). I can't do a Group Policy for each computer in my domain. We cannot work with users accounts, only computers . 
    My problem is that if the user1 is connected on Comp1, he must have the printer near computer 1 as default printer.
    If user1 is connected on computer 2, at the other side of the office, he must have the printer near computer 2. So I cannot imagine a group policy to do this :). 
    We had the idea to use the descprition attribute in Active Directory to indicate the default printer to map.
    We must now make a script to get clientname on the TSE session, look for the computer account in Active Directory, read its description's attibute and map the default printer. 
    For example, my computer is COMP01. I use a TSE environment on SRVTSE01. 
    The script need to determine which computer (COMP01) is connected to the SRVTSE01 server (clientname var), search Active Directory computer account of COMP01, read the account's description attribute (for example PRINT01) and set \\SRV-PRINT\PRINT01 as the
    default printer on COMP01.
    Hope it's better with this example... 

  • Default parameter for users

    Hi gurus,
    I'd like to know how to assign default values for user parameters in CRM web UI.
    For instance I want that each time during navigation an editable field for sales organization is found, my default sales organization (maintained as paramenter in TX SU01) should be automatically filled out.
    I tryed with CRM_SALES_ORG, HH_SALES_ORG, WAP_SALES_ORG, BBP_ORG but it does not work.
    Any suggestions?
    Thanks in advance.
    Points for useful answers.
    Fabrizio

    Hello,
    I fear this is will be completely up to you.
    The only means I can think of are:
    1. Client Side: When the BSP is constructed use JS to fill the fields. However I can not imagine how one could possibly identify a sales org field on the UI?
    2. Server Side: You could hook yourself into the API that is reading the data from the databases. Whenever a field is empty prefill it. This leads to serious problems as you do not know if the field is readonly on the UI.
    Anyway, both ideas are just thoughts and there is absolutely no substance behind them. From my point of view it is simply not possible.
    However I would be glad if you came up with a solution, this should be interesting.
    cheers Carsten

  • Print to Default Printer

    We want to provide the ability to be able to print all PDF documents directly to default printer to users . That is when users click on Print button they should not be shown the print options/preferences dialog box.
    Is it possible to setup the print button on PDF to by pass the print options dialog box? Please advise

    Because the reports run on the server and not on the client machine, there really is no way to print to the client's default printer because the server has no way of knowing what this printer is.
    You could create a user parameter with a list of the printers that are normally used and have the users select which printer you wanted the output sent to.

  • Mandatory profile: default printer always reverts to last installed printer

    The only constant is: the last installed printer stays as the default printer (user can install it). How is that tracked by the system? I cannot find it anywhere.
    example printer A, then B is installed. Printer B always reverts to being the default on reboot.
    a. not using gpp/gpo to set printers (several thousand pcs, about 800 printers, difference preferences in each department etc)
    b. from what I have read, it is normal for the mandatory profile to revert back on reboot/logoff any changes to the default printer made by the user.
    c. I have tried changing registry keys for .default, the current user, which the current user (mandatory profile autologin) does not pull from .default or anywhere else I can seed.
    d. the mandatory profile itself is clean the common registry keys are empty (changing these keys to your desired printer does not resolve the issue, they revert on reboot to last installed printer)
    ...\Software\Microsoft\Windows NT\CurrentVersion\Devices]
    ....Software\Microsoft\Windows NT\CurrentVersion\PrinterPorts
    ...Software\Microsoft\Windows NT\CurrentVersion\Windows (Device key is blank)
    e. commands do not stick (Tried from powershell, vp, command prompt etc) such as:
    rundll32 printui.dll,PrintUIEntry /dl /n "pritnername" /q
    "ntprint /setdefault name=<printer name>
    ntprint /setdefault name=<printer name>
    Read more :
    http://www.ehow.com/how_7258789_add-default-printer-new-users.html

    Hi,
    Please allow me to clear the current situation:
    1. We are using mandatory profile, and the default printer is not configured into the profile settings;
    2. Every time when installing a new printer, it will change to the default one;
    3. Using command line to set the default printer won't work here;
    If anything misunderstood, please feel free to let me know.
    So how do we install the new printer here? Any settings that we may choose to set the newly installed as the default?
    Might we consider to let the user choose which printer to be set as default using scripts? See if this blog could help:
    How Can I Let Users Choose a Default Printer From a List of Printers?
    If the default printer is not configured into the profile settings, and no GPP configured here, how was the default printer installed?
    Besides, for domain printer issue, we have a better forum to seek help with:
    http://social.technet.microsoft.com/Forums/windowsserver/en-US/home?forum=winserverprint
    Best regards
    Michael Shao
    TechNet Community Support

  • Can not set the default printer

    Hello,
    we have HP LaserJet Pro MFP M125-M126 PCLmS network all in one printer, as the installation in every user was successful, and was working fine on installation day, after a day all user facing issue like can not set default pritner , can not print, all user are facing  issue at a time, 
    prompt reply is appreciated,
    This question was solved.
    View Solution.

    Hi @darshan9 ,
    I see that you are experiencing issues setting the default printer for users and you are unable to print over the network.
    I would be happy to help you.
    Do you mean individual computers setup with the printer over the network users or one computer with multiple users?
    Do you have Admin Rights on the computer to make changes?
    What is the full name and product number of your printer? How Do I Find My Model Number or Product Number?
    Download and run the Print and Scan Doctor. It will diagnose the issue and might automatically resolve it. http://www.hp.com/go/tools>Using HP Diagnostic Tools for HP Printers in Windows.
    I would suggest you to check if you have a different user account or from an administration account.
    I would also suggest you to create a new user account and check if you are able to set the printer as default.
    Create a user account. Create a user account.
    If you are still having issues run the Fixit Tool. Diagnose and fix printer and printing problems automatically.
    What were the results when you ran the Print and Scan Doctor? (did it print or scan, any error messages)
    If there is anything else I can help you with, just let me know.
    Have a nice day!
    Thank You.
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos Thumbs Up" on the right to say “Thanks” for helping!
    Gemini02
    I work on behalf of HP

  • LT31 - Default print code at User Level

    Dear All,
    Is it possible to default PRINT CODE(Print control data) in LT31 t-code at user level. Thanks in advance.
    Regards
    Ramprakash

    In WM is in general no user-specific printing, but SAP offers 2 workarounds see the details in the KBA 1847818 - Unable to assign a specific printer to a user when printing Transfer Orders in WM

  • Default printer setting for users

    Hi,
    We have a requirement.
    User wants to get the print out at his own desk.
    Can we set up like the print out should go to the printer assigned to perticular user who execute the transaction.
    If user X is assigned to printer 123. and Y is to 456. the printer should default when he trying to process output (Logical destination). I tried maintaining Output type print parameters as USER PARAMETERS. and  a printer is assigned to users own data SU3. but still system is asking for output device to assign while processing.
    Thanks,
    Anand K

    O/P is ZF12 and it is for printing Shippment TAG, in T code VT01N.
    But i feel the solution might be general not specific to output type. any way it is not a standard form.
    Can we create new condition record using Output device from SU3.
    If it is possible also is there any other method to achieve this.
    Thank you,
    Anand K

  • Set Default Printer based on user setting using Powershell script

    Hi 
    I would like to create a script that runs on user log off and captures the default printer (set manually by the user) and then another script to reapply the settings (saved upon log off) when the user logs back in.
    This is because local printers are set as default printer (PDF Creator Programs) when we all use Network Printers so this means a user has to set default printer to the network printer all the time.
    I have found this script to start with:
    $Printer = Get-WmiObject -namespace root\cimv2 -Query “select * from Win32_Printer Where Default = TRUE” -Impersonation 3 | select name | out-file C:\temp\Printer.txt
    But the out file looks like this:
    name
    \\PrinterserverName\Accounts01
    Which I dont see how it can be used on another script plus there are spaces after\Account01 
    Any Ideas please?
    M
    Maelito

    Hi Maelito,
    According to your description, you want to export the default printer name to text file, then read this printer name from text file and set the default printer via Powershell:
    #save printer name to text file
    Get-WmiObject -namespace root\cimv2 -Query “select * from Win32_Printer Where Default = TRUE” -Impersonation 3 | select -ExpandProperty name | out-file C:\temp\Printer.txt
    # read printer name from text file and set default printer
    $name=get-content C:\temp\Printer.txt
    (Get-WmiObject -Class Win32_Printer -Filter "Name='$name'").SetDefaultPrinter()
    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]

  • Setting default printing presets for all users, esp. guest user

    i want to set black/white, two sided printing as the default for all users (9 macs, 30 users on each).
    i set up and save this preset as admin, and copy the files
    com.apple.print.custompresets.plist
    com.apple.print.custompresets.forprinter.nameofprinter.plist
    from admin home/library/preferences to the other users preferences-folders.
    but logging on to any of the other users, i still dont even get the new preset listed.
    i tried entering cups, but there, only the printer setup is editable.
    especially i would like to set the custom preset as default for the guest account, without being wiped every log off.
    is there any alternative way to do this? i dont want to manually log in to the 300 accounts to change this.

    You can do that for new users via a file user.js in the default template folder for new profiles.
    C:\Program Files\Mozilla Firefox\defaults\profile\
    *http://kb.mozillazine.org/user.js_file

  • Script to map default printer based on user input

    Hello everyone,
    Complete scripting noob here but I managed to cludge together a vb script (from various sources) that will remove all current printers and then add printers based on group membership.  It can also add a default printer and if they have a local printer
    make that default.  All that works just fine, my problem is that we have very large floors with many printer clusters.  Group membership for printers is by floor and I do not have the option to further define this (Also GPO is not an option as getting
    our network group to deploy anything takes years so we need to go this route).
    What I would need is something graphical (like an HTA) that when run it prompts the user to input which floor they are on, then it asks them which of the print clusters (on the floor they specified) is closest to them.  It would then install all the
    printers on the floor and make the default printer one from the print cluster they indicated (unless they have a local printer).  I hope this make sense. 
    I think I have most of the pieces laid out but I don't know how to get the user prompts/GUI and then perform the correct mappings.  Thank you in advanced!

    I agree with Bill. Using the correct method will be best.  You network people will be more than happy to tell you what is set up and how to use it.  You just need to ask your manager to get you in contact with them for a little parley.
    If you are really insisting on a script then look in the repository.  There are dozens of scripts that you can use and modify.
    You should try to see this as a challenge to bring modern technology to your company.  Approaching this kind of thing as a global IT challenge will usually get the attention of IT and they will usually take it seriously.  You will likely learn
    many things about the IT resources your company has.
    ¯\_(ツ)_/¯
    I'm sorry if I wasn't clear but I'm not asking anyone to write the script for me, as I said I have most of the parts working.  My issue is getting the user input and getting the script to take the action I need it to (I can map the printers based on
    AD group membership I really just need to prompt the user to select which one they want as default).  My thoughts were to wrap a GUI around it but it's not needed.
    I agree that GPO is the way to go but in State Government it takes an act of Congress to get anything done in the mean time I'm trying to get things done with the means available to me.

  • Printing PDF files in batch to user default printer.

    Hi,
    My recuirement is something like this:
    I had to print 'n' number of PDF files sotred in Database. Problem is that I had to print all of these files to default printer attached to my website's user desktop. The printing should happen without opening any of these files in the browser.
    Does anyone knows wheteher this is possible or not?
    If possible how do i do this?

    Have you looked at Java Print service API (javax.print)?
    http://java.sun.com/docs/books/tutorial/2d/printing/services.html
    Thanks,
    Dmitri

  • Assigning Default Role to New Users created

    Hi
    How can we assign a default Role to any new User created.
    This Role should automatically get assigned whenever a new User is created.
    Regards

    Hello,
    for ABAP Stack users you can just create a reference user with the according roles and copy new users from it.
    Regards
    Christian

  • Transport of User default printer (Parameters).

    Hi All,
    We have just upgraded our dev and qa system from 4.6C to 7.01 (ecc).  Our security team imported the users and profiles from Production system (which is yet to be upgraded). All the users and aurhtorizations are there in QA sytem and regresssion testing is going on.
    BUT The problem is...
    User default printer details are not same as production system they are blank in QA system. But we need this this default OutputDevice also to be transported.
    Is there any way to transport the default OutputDevice for each user? as as production?
    Please reply.
    Thanks

    Hi,
    Thanks for the reply.
    That the precise problem. USR01 of production is not equal to QA. I mean SPLD column of QA system is having blanks whereas in PRD it has the data.
    Need to know ... how we can bring this entries from PRD TO QA. Is there anyway ...

Maybe you are looking for