Default printer in classic environment

After upgrading to 10.4.4 the default printer in Classic is changed to the default printer in OSX.
If I want to print from a Classic application the first time before the print dialog is displayed I get an error message stating that apple events are not supported or that desktop printing is not installed. In the printer dialog that shows up my appletalk printer with the name I have given the printer in OSX is shown and when I select the os9 name printing is fine until classic restarts.
How can I select the default printer from wihtin Classic?

Guys, this should be a software problem with the system, so we should expect it would happen with all printers, with a Brother printer and also with a LaserWriter Pro (10+ years old!) but assuming that Cube does have identical symptoms to Erik there are at least two things going on here.
What it defaults to should be quite separate from those errors for AppleEvents and desktop printing software 2.0. Those seem to be about whether something is configured corrctly, not about what's selected.
If this is always solved by reselecting the correct printer, I'd grin and bare it.
However, with no other symptoms, those errors suggeset a mismatch or misconfiguration.
Some printers are much more fussy than they should be about the version of LaserWriter, and of auxilliary printing Extensions certainly including PrintingLib. The natural assumption is that the latest version will cover everything, but I've met printers which required downgrades…
Although I haven't seen this recently, for early Classic some printers needed their 9 drivers installing once while booted in pure 9, then again while running Classic over X - and if that's your case I hope your Macs are old enough to boot in pure 9.
With or without that, it may simply matter which order 9 and X drivers are installed in.
Again, are you using third-party RIP software? I don't know that desktop printing software 2.0 refers to anything from Apple and some time ago there was a spate of reports by people using a third-party utility with a name too like that to ignore, which no-one could find anywhere on the web but which turned out to refer to a third-party RIP that did work with 9 but never with Classic.
Meanwhile my Classic 9.2.2 over 10.4.4 on my G4 DP 1K defaults to the X printer but so does Classic 9.2.2 over 10.4.3 on my Titanium lappie, which seems to indicate this is not a 10.4.4 thing though I don't remember how the G4 behaved on 10.4.3 (and if I'd seen Cube's message one minute later, I would already have started the 10.4.4 updater running on the lappie. Phew!)
I very much doubt that can be solved: I suspect it's a design fault in the way Classic and X communicate and in my case I change printers so often that again, checking Chooser one extra time is hardly noticable.

Similar Messages

  • Prints in OS X and when booted to OS 9.2, but not Classic environment

    This is for an iMac G3 400MHz with 256MB running a fresh full installation of Jaguar 10.2 and OS 9.2. The printer is an HP LaserJet 2100M with a Netgear FM114P print server.
    I first installed the printer under OS X, and that works fine. Then I booted to OS 9.2, installed under that, and it prints fine when I boot to OS 9.2. But it does not print from the Classic environment started in OS X. No error messages are generated. Mac OS seems to think everything is fine. On that point, it may be worth noting that the print server only offers one-way communication (but that works fine when I've booted to OS 9.2).
    Anyone recognize this problem?
    Further notes: The Netgear is a firewalled wireless/Ethernet router with print server that is now set up in access point mode rather than router mode. It is an access point for a 2Wire gateway. The LaserJet is the only thing connected to the Netgear.

    I thought about trying to install the printer a third time, from the Classic environment, but did not figure out how. (Classic environment only shows the Desktop during startup.) I think it would require starting a Classic app, opening the Apple menu from there, and doing something .....
    At any rate, I found a solution: print in the foreground (no spooling). From the Print window within an application (File | Print), choose Preferences | Background Printing | Print In: Foreground (no spooling). Then click Save Settings to make this choice the default.
    This tip appeared in Apple article 106687, "Mac OS X: How to select an LPR printer in Classic" for the case when "the job doesn't print as expected."
    If you try to print with Command-P rather than using the Print menu, printing still spools and thereby fails. I don't know why this is since foreground printing is now the default and does not needed to be selected afresh from the print menu. It seems that Command-P runs the job with certain defaults rather than the the user's saved settings.

  • How to force Tiger to print doc within Classic environment, not with OSX?

    I want to print certain documents using OS9's printing utility within the Classic environment, and NOT using Tiger's standard OSX printing method. How?
    I know it is possible because I have two Macs connected to the same printer, and it works on one and not the other. I can't figure out why.
    Here are the specifics:
    I have a printer, the Ricoh Laser AP2600. Connected to it are two computers:
    a PowerBook G4 running 10.4.7, and
    an iMac running 10.3.9.
    When I print documents from OSX applications, the two computers take the exact same time to print. HOWEVER, when I print from Classic applications, the iMac running 10.3.9 prints very quickly, but the PB running 10.4.7 takes two to three times as long. That's because the iMac prints the document using the old OS9 "Print Monitor" printing utility, and never passes the printing back to Tiger. Whenever I try to print a document from a Classic application on the PB, however, it passes the printing to the standard OSX printing method, which (for some reason) is much slower.
    (Sorry if I'm not using the right terminology.)
    I checked and double-checked, and as far as I can tell, all the "printer descriptions" and "drivers" and everything else is absolutely identical in both System 9 "Extension" folders on both computers. I installed the exact same Ricoh print-driver packages for OSX and Classic on both machines identically. So -- why does one print quickly within Classic, and the other pass the printing job back to slow OSX?
    The specific application that causes this discrepancy is MSWord 5.1a, a very old version that only works under Classic. (I use it a lot because I prefer it to more recent versions of MSWord.)
    A secondary, but related, question: Why does printing documents from within the Classic environment go so much more quickly than in OSX? It seems to be one of the few aspects of OSX that's worse than OS9.
    So -- how can I make my PB behave like my iMac? Is there some difference between 10.3.9 and 10.4.7 that causes this different behavior? Any hints or suggestions would be most appreciated.
    Thanks.

    OK, I have finally solved the problem -- mostly.
    The trick was to click on the Chooser option called "PSPrinter" -- not LaserWriter 8 or any of the others. I took a chance on that since I knew that the Ricoh 2600 was a PostScript printer. When I clicked on it, and chose "Set up printer," I was able to set up the Ricoh driver. Then, when I tried printing, it worked -- it printed within the Classic environment, not in Tiger. And what a difference!! Under Tiger, a simple page of text takes 45 seconds to process and print. Under Classic, the exact same page processes and prints in 8 seconds! A huge difference. So, I finally got it to work.
    The downside is that I can't get it to "stick." If I restart Classic (or the entire computer), the next time I go back to print in MSWord 5.1a (my Classic application), it will have reverted back to the Tiger method of printing. So, the first time I print a page in 5.1a during any session, I have to go to Chooser and select PSPrinter. This adds 15 seconds or so to the process, so printing a single page overall isn't any faster, if you add up all the steps. Subsequent prints all are done quickly in Classic automatically, as long as Classic hasn't restarted. (I can even quit the application and restart it without a problem -- only an OS restart causes it to revert back to Tiger printing.)
    So, my basic problem is solved, and I'm fairly satisfied. But I still have two nagging issues that I wouldn't mind answered if anybody knows the answers:
    How can I make my Chooser printer selection in Classic "stick" permanently from one restart to the next? Why does it revert to Tiger printing after a restart?
    And the fundamental question: why is Classic printing so much faster than Tiger printing? I thought Tiger was supposed to be a "digital hub" that made communicating with peripherals so easy? In most ways it is, but why is printing the one way in which OSX is WORSE than OS9, at least in regards to speed?

  • Print peoblem in classic environment

    I had to temporarily install a new printer on osX (10.2). classic environment couldn't install it properly, but i was able to print from osX.
    when i went back to my regular printer, i haven't been able to print from my classic environment. I can print fine from osX, but i desperately need to print a final draft doc from classic. I use the chooser to select the regular printer, but nothing happens, and i can't access the print monitor.
    how do i get things back to normal?

    What brand and model of printer are you trying to use?
    Is it hooked up via USB directly to the iBook or to a hub?

  • Printing from OSX in Classic Environment 9.1 software on OSX based printers

    Is it possible to load OSX on my Powerbook G3 and print OS 9.1 based applications with a printer designed to run only on OSX? I want to keep my OS 9 applications, run in the classic environment, but is this worth the possible troubles? New printers are only compatible with OSX!
    Powerbook G3   Mac OS 9.1.x  

    Is it possible to load OSX on my Powerbook G3 and
    print OS 9.1
    I'd use 9.2.2 if I were you. 9.22 works better in Classic. Which PowerBook G3 do you have? Early ones can't run OS X beyond 10.2.8 without 3rd-party hacks, such as XPostFacto. Some not-so-early ones can't go beyond 10.3.9 without 3rd-party hacks, such as XPostFacto. Later models can run Tiger.
    based applications with a printer
    designed to run only on OSX?
    I've never tried, but... in Tiger it might be possible because Apple changed the way Classic prints. In Tiger, Classic prints as if the printer was a laser printer using LaserWriter 8. The LW8 driver hands off the print job to the OS X printer, which then prints normally. (Yes, even color inkjets.) I suppose that this should work even if there is no OS 9 printer installed... but I haven't tried it. If it doesn't work, well, there's not much that will be done about it at this late date.
    OS X before Tiger pretty much will require that Classic have working drivers. I had mixed experience getting printers to work in Classic before Tiger. In Tiger it's very simple.
    I want to keep my OS 9
    applications, run in the classic environment, but is
    this worth the possible troubles?
    This depends on how much printing you do from OS 9/Classic.
    New printers are
    only compatible with OSX!
    Some new printers are OS X-only. Many still ship with OS 9 drivers. How much longer this will be true is not known, but is not likely to be long. If I had to print using OS 9, I would buy a printer I know works with OS 9 and is likely to last a while. Hint: this is unlikely to be a cheap printer. Second hint: I would do this quickly. Third hint: I'd think very, very, VERY hard about replacing as many OS 9 apps with OS X apps as I could. The end of OS 9/Classic, as an officially supported Apple technology, is in sight. OS 9 has not been able to run from new Macs for years now, and if Apple keeps its promise to move its entire line to Intel by the end of the year, then soon there will no longer be new Macs which can run Classic, either. There may/may not be a 3rd-party solution which allows OS 9 or something resembling Classic to run on Intel, but I'm not holding my breath. Furthermore, I suspect that OS X 10.5 will be the last OS X version to support Classic, even on PPC.
    Powerbook G3   Mac
    OS 9.1.x  

  • Printing a file created in OS 9.2 "classic" environment

    I have just installed OS 10.3.9, but still want to work in classic environment (OS 9.2, AppleWorks 5.0) & print out the documents I create. I have used my printer (Epson C42UX) installation disc but when I click on chooser in classic environment, the printer is not listed.
    iMac 400 graphite, powerPC G3 processor (400Mhz), 644MB RAM, crt, slot-loading   Mac OS X (10.3.9)  

    I've tried many times but I can't find a driver for OS 9 on the Epson installation disc, so only OS X is installed. I have made some progress - now the Epson C42ux icon is appearing in the chooser window, but I can't print from it in classic.
    Probably only because the Chooser sees it through its USB connection. You still won't be able to print to it out of Classic until you install OS 9 drivers, just as if you were on a Mac running OS 9. Good news is I located the OS 9 drivers on Epson's site. You can get it here. Drivers 7.3bA in the center. To install, you'll first have to have OS 9 (Classic) running. Then run the installer per normal.

  • HP LaserJet 1300 won't print from Classic

    I can’t print out of Classic environment because the printer (HP Laserjet 1300) isn’t installed there. My computer does not have dual boot. (That is, it can run classic, but not boot up in classic.) I've read some related posts and have tried some suggestions, but so far to no avail.
    The installation CD has installation for OS 9 and OS 10 and I have installed both from the OS X environment. But there is still no HP Laserjet 1300 icon in the Chooser in the OS 9 environment. I should mention that when I went to chooser and clicked on Laserwriter 8 icon, I noticed that there was a place that said “Select a PostScript Printer” but there was no printers to be selected in the related field. I have been to Apple System Profiler in OS 9 and there is no driver listed there for my HP laserjet even though I have installed it.
    When I click print I get a yellow ! message that says that my Document could not be printed because printer “LaserWriter could not be found. Try again?
    This printer works fine from OS X, but not from classic. I called apple help and they said to go to the HP website. The HP website said the following:
    “Installing a driver in Mac in classic mode
    2004/11
    Installing an HP driver in MAC® classic mode may be useful: if, for example, an application you want to use is not supported by MAC OS X.
    This functionality is supported by the PostScript and the raster drivers.
    Installing the driver
    With the latest version of the drivers, the installer already foresees separate MAC OS 9 and OS X installation. On MAC OS X, run the OS 9 installation and it will install in classic mode.”
    MY QUESTION:
    How do I “run the OS 9 installation”? What buttons do I press to do this?
    Thanx in advance
    Fred

    froellig, two wholly different things here.
    Looking at the 9 driver for LaserJet 1300 HP offers for download, anyway, it isn't actually a driver - it's merely an installer which, from either X or 9, should give you Printer Description Files to use with the standard PostScript drivers, namely LaesrWriter 8 or AdobePS.
    Test that it did that much by using Apple's Desktop Printer Utility to create a virtual desktop printer… If the Change button in PostScript Printer Definition (PPD) File pane leads to a Printer Descriptions list that does include HP LaserJet 1300 Series that much, at least, seems to have worked.
    If the printer works from OS X, then you could use LaserWriter 8 in Classic to Print to File, which would give you .ps files which you could manually drag into any X print queue. This works for most printers.
    The other thing is that yes, LaserWriter should show the 1300 in the right-hand Chooser pane so again, can X see it and print to it?
    If not that suggests a cable or hardware fault, bad settings or interference from other software.
    If X can see and use the printer, and there are no other faults with Classic 9, that suggests something inside OS 9 is interfering.

  • Network shared printers stop working; default printer changes

    Hello,
    Have an odd printing issue that seems to be ongoing and am trying to come up with a good solution or fix for it.
    We have an environment that has a Windows 2012R2 Print Server, that is sharing various printers which are also set to List in Directory.  Some of the printers are HP and are using the HP Universal driver which shows as "True" for Packaged in
    the print management window, and some of the printers are Canon which are using device specific drivers and show as "False" for Packaged.  My understanding is that the packaged attribute simply indicates that Point and Print can then download
    the driver and install/use it without any security prompts whereas if it is not Packaged, then the driver must be installed on the local server/workstation by an Administrator.  We have Group Policy defined such that all Point and Print restrictions are
    Disabled.
    We then have multiple Remote Desktop Session Hosts based on Server 2008R2 (x64).  Users connect to these hosts via thin clients (Wyse) and there is a domain login script using KiXtart that creates printer connections to the shared printers using an address
    of \\printserver\printername.  We also set the default printer via the login script each time depending on user's group membership.
    Each part of this setup is on it's own routed VLAN subnet, so the Print Server is on 192.168.0.x/24, RDSHs are on 192.168.1.x/24 and the printers themselves are on 192.168.2.x/24.  There is no firewall or other restrictions between the subnets, all traffic
    is allowed to flow.
    The issue we are having is two parts, the first is the larger issue, but both are a pain:
    1) Randomly (no discernible pattern/reason/timeframe), some Canon printers will stop appearing in Print dialog boxes from applications when a user tries to print.  It only seems to happen on the Canon printers.  The printer will still show in Control
    Panel -> Devices and Printers, but when you right click it and try to go to Printer Properties or view any of the printer settings, you'll get an error saying the printer is not accessible/valid.  I have also tried a WMI query for "select * from
    win32_printer" and the printer will not be returned.  To temporarily fix it, we right click the printer, and choose to remove it and then go through the wizard to re-add the same printer from the directory again.  That will correct it and the
    user can print again, view all properties, etc.  This doesn't happen to every user but happens sporadically and once it happens to a user it seems to pop up once every week or two.
    Now, we have made a change and installed the Canon printers in question locally on the Remote Desktop Session Hosts themselves using TCP/IP ports so that each user logging into the session host will see all of the printers.  This also seems to have resolved
    this issue.  So it leads me to think there is some sort of timeout or connection getting dropped, but for no real apparent reason.  This is all on a virtualized platform and so the Print Server and Session Hosts have very reliable LAN connections
    amongst themselves.  And further, we never see the issue with the HP printers, they seem to maintain their stability at all times.
    2) The other issue we are seeing is that from time to time the default printer setting changes or vanishes altogether.  It doesn't happen to every user but once it does happen it happens regularly (multiple times a day).  This happens even when using
    the locally mapped TCP/IP printer or when using the network print server.  From what I have read and found, this generally seems to be a known issue regarding redirected client printers and some GP settings related thereto.  But we aren't redirecting
    any local client printers, everything is network based/shared.
    In digging into these two issues I have run across the following error we get regularly in the PrintService Event Viewer log:
    The print spooler failed to import the printer driver that was downloaded from \\printserver\print$\x64\PCC\ntprint.inf_amd64_59246c3ac1bd3f2a.cab into the driver store for driver Microsoft enhanced Point and Print compatibility driver. Error code= 800f024b.
    This can occur if there is a problem with the driver or the digital signature of the driver.
    And digging further into that seems to be that their was an error validating one of the DLL files as seen at the following thread:  http://social.technet.microsoft.com/Forums/windowsserver/en-US/9fe186e4-52f7-4552-a223-b2320cfc9ed5/driver-install-semi-fails-with-800f024b?forum=winserverprint
    We get the exact same error that is shown there UNISRV.DLL being flagged as invalid, and have applied the hotfix indicated in KB2701894.
    I am not sure the above error is realted to the issues at hand, but figured it is a good starting point to eliminate it as a potential cause of the issue.
    Any input or suggestions on what to do to diagnose or further resolve this would be greatly appreciated!

    Alan, I'm getting this error 600 in my company. Is there any fix for this problem?
    After installing KB2919355 on Windows 2012 R2, when I try to map a shared printer I receive the following error message: A policy is in effect on your computer which prevents you from connecting to this print queue. Please contact your system administrator.
    If I uninstall the patch the shared printer maps correctly.
    I also notice that if I copy the driver \\server\print$\x64\PCC\ntprint.inf_amd64_a7ac65d1b7714fb1.cab
    from a Windows 2012 R2 before applying KB2919355 to the server that has the patch applyed (and rename it), I can map the printer.
    Does anyone know if there is a fix for that?

  • How do I install the classic environment?

    I have an iMac slot loader that I got for my daughter. I have a retail version of OSX 10.2 installed on it and working fine.
    I also have alot of games but they require the Classic Environment.
    I have forgotten how to install the Classic environment! I think at one time, I had osX on there and Classic but I don't remember exactly how I got it on there if that was the case.
    I have a retail OS 9.?.? but I don't think that is the answer. I am afraid if I boot to that disc and try to install, it will over write my OSX instalation with OS 9. That would prevent her from using the OSX games that I have for her.
    I don't mind doing a complete new installation if need be because I have not started installing the games just yet.
    Any help would be greatly appreciated!

    Hey Glen,
    I set these iMacs up all the time. I use a retail 10.3.2 or 10.4.3 installer and a 9.2.2 image or a 9.2.1 iMac dedicated installer to set them up. Archive and install will work for either just make sure to install OS 9 drivers if you format your drive in X extended (journaled).
    I do the minimum install in X no language and no printer drivers.
    The installer in 9.2.1 is white with a large orange 9 on it.
    I have a ton of software for OS 9; Living Books, Kid Pix and Zoombinis being amoung the most popular.
    I've made images of the CDs ( actually SMIs ) so the kids don't need the CDs to run the apps. These often get totally messed up.
    Actually I have cloners of all these setups on various setups on my MDD G4 and use CCC to clone them onto the target drives. Often I'll have to use an install CD to get it to work anyway. Some of the more stubborn will require an in situ install with the CD.
    Richard

  • Classic Environment documents and Leopard

    I am running Tiger on a non-dual-core iMac G5. I have about 300 documents that I created in Classic Environment. I am told that Leopard does not support Classic. I would like to upgrade to
    Leopard. (Also, some day I will replace this Mac with a dual core Mac; I am told
    dual core does not support Classic.) So how can I upgrade to Tiger now (and later, to dual core) and still use these documents? Details: I originally created these in an old G4, using an old, wonderful Apple word processing program called Greatworks. I migrated them over to my G5. I have opened a handful of them in the G5; they opened in TextEdit. Then, I copied them from TextEdit to Appleworks. So that gave me an Appleworks document. So does that mean that the documents are no longer Classic?...are they now cool and modern, and Tiger will open them, even though they were ONCE Classic? And a dual core mac will open them some day? Also...as I said, I only converted a handful from Classic to Appleworks. The rest of the 300 are still Classic. So I guess BEFORE I upgrade to Tiger, I must convert the rest of them to Appleworks, one at a time? Please help. Thank you.
    Robert

    Documents are neither "Classic" or "OSX". Documents are files.
    The application that you use to create, edit, print, and save are either "Classic" or "OSX".
    So your files, even if created in OS8, could be moved to 10.5.2 and opened w/o any girations on your part to make it work. BUT the application that created it in OS8, or OS9 would have to have been updated to work as an OSX application to do so.
    In your case, it sounds like they are basic text docs anyway. If TextEdit can open them, you might try just opening them directly with AppleWorks. You won't be able to just double click them for this to work, but open Appleworks, then from there, go to File>Open and navigate to one of your older OS9 docs, and see what happens.
    In the end, you may indeed need to go thru the Text Edit step, but it's work a try to try to bypass this step.
    Past all of THAT, Appleworks is EOL.... end of life, and someday soon, Appleworks may not work with the next iteration of Mac OSX. You should check out the new Pages.... it's new and will be supported longer than Appleworks for sure, so your documents will last longer.
    At work I have a PowerPC Quad G5, and it runs Classic mode just fine under 10.4, so Classic is not a dual processor issue. However, *no Intel Mac* will run Classic, period.

  • Printing in Classic mode, no USB ports?!

    Hi all,
    Sorry if this is a repeated topic, but I couldn't find the answer. I have a Blue and White G3 running OS X.2 and I can print with my USB Epson CX4600 in 10.2, and I can print in 9.2 when I restart in 9.2, but I can't print in OSX from any application running in classic environment. It seems that 9.2 doesn't see the USB ports in the chooser.
    Any advice??
    Joey

    This will sometimes happen when switching back and forth from OS9 to OSX and back again. The only way I have found to fix this is normally you have to eiter reset the Printer and sometimes the Computer and sometimes you have to do both.
    I find that Unplugging the Printer for a minute and shutting off the computer, ( NOT RESTART) OFF.
    Check all your cables then Plug back in your printer and then restart your computer and you will be good.
    Remember switching back and forth or working from one Operating System to another and back again will sometimes cause this.
    Don

  • Outlook 2007/2010 only prints to default printer

    We use the following command to add network printers to XP PCs' (this saves each user of the PC having to find and install the network printer themselves)
    rundll32 printui.dll,PrintUIEntry /ga /n\\machine\printer
    This adds the printer for all users of the PC, however Outlook 2007/2010 only allows the user to print to the default printer, regardless of which printer the user selects.
    When printing from Word/Excel or any other application the print goes to the selected printer.
    Has anyone else had this problem, and found a solution, or know why Outlook only prints to default but other office applications print to other printers correctly ?
    Thanks
    Steve

    I am having a similar issue to ferdz2013.
    I am running terminal services on server 2008 R2.  This is in a domain environment, the user has permissions to the color printer in question and can print to it using Word and notepad.  However in Excel, it will not print to the color printer. 
    Even if I select the color printer as the default printer, it only prints to another BW printer.  In fact, there are .......
    Well, as I was writing this, after troubleshooting it for an hour, it fixed itself.  I was going into his control panel to count the network printers installed (about 5) of which he could only choose from 2 in excel. Suddenly, he has only
    two installed.  We can print to it, but we can't choose color now. 
    I believe this is a domain controller issue, where he is attached to one DC, and I am attached to a second DC, where I change the AD permissions.  It took an hour for them to exchange this information.
    Just something else to think about.
    Now I need to figure out why he can only select BW.

  • 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... 

  • Classic Environment and games

    I'm trying to run Backyard Football on my MacBook Pro 10.6.6. i keep getting the 'classic environment not supported' message. i've browsed around these forums and seen how you can download emulators to run instead of Classic. I was wondering if there was anyway to get Backyard Football 2002 working on my Mac, and how. I'm not super tech-savy, so you'll have to be patient and dumb it down for me, haha.
    Thanks alot.

    The emulators available are geek-toys that take a lot of fiddling. In general, games do not run well in that environment.
    You would be better served by getting some cheap older Hardware and dedicating it to games and maybe put some file-sharing or printer-sharing on it.

  • Classic Environment & AppleTalk

    How do I activate AppleTalk when I am in Classic Environment? I have an old iMac G3 and I am trying to select a printer in Classic. It says to activate AppleTalk. Don't know how to do it. Any help?

    I am not familiar with AppleTalk, jstellman, but maybe the following link can help you, from some people who have the same question as you. Apparently it is doable.
    http://forums.macosxhints.com/archive/index.php/t-7532.html

Maybe you are looking for

  • How can I use a USB 3.0 HDD with PowerBook G4 12" 1 Ghz OS 10.4.11?

    Is it possible to use a USB 3.0 HDD with PowerBook G4 12" 1 Ghz OS 10.4.11? I'm using a HDD with a USB 3.0 tyo 2.0 cable that came with the drive, but it has proven to be extremely unreliable...cloned my system and backed numerous files to 3 partitio

  • Vendor Consignement in IS-Retail ECC 6.0

    Dear All I need to configure Vendor consignment processing in IS Retail ECC 6.0. Can anyone help with the config document/steps? Regards Manish Bhandari

  • Hotsync errors with outlook calendar

    I am using a 755P Treo with Outlook 2003. I am having problems syncing the calendar. All software is up to date. These are the error messages: OLERR:03-0010 OLERR:0D-000E OLERR:0D-0004 OLERR:0D-0001 Help! Any Ideas. Suzanne Post relates to: Treo 755p

  • All Oracle Sample Schemas and all Oracle Built-in Packages in XE?

    Hi, I am trying to install Oracle 10g on my home system to improve my knowledge of PL/SQL. Because I'm doing it at home, I have to solve DBA issues I'm somewhat clueless about. I would like to install Oracle 10g Express Edition and include the built-

  • Apple TV, apple gift card

    Hi, I have an apple gift card, somebody can explain me how can I use this "apple gift card" to rent a movie in my aple TV?