Jump to content

clivebuckwheat

Member
  • Posts

    574
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    Canada

Everything posted by clivebuckwheat

  1. Here is the batch file I do the execution of the printer script in as well as the autoit script. \\MyPrintserver\WindowsSecurityInstallYes.exe net stop spooler reg.exe ADD "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Ports" /v \\MyPrintserver\4G11P-DocuColor242 /t REG_SZ /f net start spooler printui.exe /ia /m "DocuColor 242-252-260 PCL" /h "x64" /v "Type 3 - User Mode" /f " \\MyPrintserver\drivers\Xerox\DocuColor 242\PRNTDRVR\Pcl6_drvr\Win_2K_XP_VISTA\oemsetup.inf" RUNDLL32 PRINTUI.DLL,PrintUIEntry /if /b "4G11P-DocuColor242" /r " \\MyPrintserver\4G11P-DocuColor242" /m "DocuColor 242-252-260 PCL" Here is the autoit script with pause WinWait("[CLASS:Windows Security]", "", 45) WinActivate("Windows Security") Send("{TAB}") Send("{ENTER}") Exit(0) The problem is I must run the autoit script before I run the line that generates the windows security dialog. I call the autoit script from the batch file, the batch file pauses for 45 seconds runs the autoit script and exits and THEN runs the printui.exe /ia /m "DocuColor 242-252-260 PCL" /h "x64" /v "Type 3 - User Mode" /f " \\MyPrintserver\drivers\Xerox\DocuColor 242\PRNTDRVR\Pcl6_drvr\Win_2K_XP_VISTA\oemsetup.inf" which generates the windows security warning.
  2. I got it working with this. WinWait("Windows Security", "") WinActivate("Windows Security") Send("{TAB}") Send("{ENTER}") Exit(0) Now the issue is I need the script to loop, once the security warning box appears I need the autoit script to execute. Right now once the security warning box appears I must run the autoit script manually.
  3. I tried to click install with autoit to get the driver installed. It seems the Window is not activate. How do I get around this? My Windows Security Script WinWait("Windows Security", "") WinActive("Windows Security", "") Send("{TAB}") Send("{ENTER}") Exit(0) Any Help would be great as I am not very skilled with autoit.
  4. I tried the tutorial with a reboot and the dialog box still pops up unfortunately.
  5. I have a script to install a Xerox DocuClor 242 printer driver.yet the warning still plagues me. bcdedit.exe /set loadoptions DDISABLE_INTEGRITY_CHECKS bcdedit.exe /set loadoptions TESTSIGNINGON net stop spooler reg.exe ADD "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Ports" /v \\Myprintserver\4G11P-DocuColor242 /t REG_SZ /f net start spooler printui.exe /ia /m "DocuColor 242-252-260 PCL" /h "x64" /v "Type 3 - User Mode" /f "\\Myprintserver\drivers\Xerox\DocuColor 242\PRNTDRVR\Pcl6_drvr\Win_2K_XP_VISTA\oemsetup.inf" RUNDLL32 PRINTUI.DLL,PrintUIEntry /if /b "4G11P-DocuColor242" /r "\\Myprintserver\4G11P-DocuColor242" /m "DocuColor 242-252-260 PCL" The problem is the driver is not signed, and I get the popup in the attached screenshot, if i click install the driver the printer installs fine. I have tried to disable the Digital driver signing under windows 7 using bcdedit.exe /set loadoptions DDISABLE_INTEGRITY_CHECKS bcdedit.exe /set loadoptions TESTSIGNINGON Here is the oemsetup.inf ; PCL printer INF for WINXP ; ; [Version] Signature="$Windows NT$" Provider=%MFG% ClassGUID={4D36E979-E325-11CE-BFC1-08002BE10318} Class=Printer DriverVer=05/01/2009 CatalogFile.NTx86=5p1x12e3.cat CatalogFile.NTamd64=5p1x12e6.cat [Watermark_Reg] HKLM,"SYSTEM\CurrentControlSet\Control\Print\Watermark","1",2,"0,0,255,0,0,1,0,0,450,700,0,24,Helvetica,CONFIDENTIAL" HKLM,"SYSTEM\CurrentControlSet\Control\Print\Watermark","2",2,"0,0,0,0,255,1,0,0,450,700,0,24,Helvetica,COPY" HKLM,"SYSTEM\CurrentControlSet\Control\Print\Watermark","3",2,"0,0,0,255,0,1,0,0,450,700,0,24,Helvetica,DRAFT" HKLM,"SYSTEM\CurrentControlSet\Control\Print\Watermark","4",2,"0,0,0,255,0,1,0,0,450,700,0,24,Helvetica,TOP SECRET" HKLM,"SYSTEM\CurrentControlSet\Control\Print\Watermark","5",2,"0,0,0,255,0,1,0,0,450,700,0,24,Helvetica,ORIGINAL" ; ; Manufacturer Sections ; ; This section lists all of the manufacturers that we will ; display in the Dialog box. ; [Manufacturer] %MFG%=Xerox, NTamd64 ; ; Model Sections ; ; These sections correspond with an entry listed in the ; [Manufacturer] section above. The models will be displayed in the order ; that they appear here. ; ; plug-and-play id, if hw does not support it, remove everything after .pdd [Xerox] %Printer1%=EF5P1X12.PDD,LPTENUM\XeroxDocuColor_242-2D26 [Xerox.NTamd64] %Printer1%=EF5P1X12.PDD,LPTENUM\XeroxDocuColor_242-2D26 ; ; Installer Sections ; ; [EF5P1X12.PDD] CopyFiles=@EF5P1X12.PDD,PCLDriverFiles_NT1, SYS32 DataFile=EF5P1X12.PDD DataSection=PCLData_NT1 AddReg=Watermark_Reg ; ; ; Copy Sections ; ; ; Lists of files that are actually copied. These sections are referenced ; from the installer sections above. Only create a section if it contains ; two or more files (if we only copy a single file, identify it in the ; installer section, using the @filename notation) or if it's a color ; profile (since the DestinationDirs can only handle sections, and not ; individual files). [SYS32] msvcp80.dll msvcr80.dll [PCLDriverFiles_NT1] EF5P1X12.chm EF5P1X12.dll EF5P1X12.dlx EF5P1X12.esi EF5P1X12.ext EF5P1X12.fin EF5P1X12.ifx EF5P1X12.lan EF5P1X12.mrx EF5P1X12.oem EF5P1X12.uat EF5P1X12.uim EF5P1X12.upd EF5P1X12.xml Microsoft.VC80.CRT.manifest efjm.dll msvcp80.dll msvcr80.dll harmony10.dll harmony_bridge.dll harmony_core.dll harmony_ctp.dll harmony_efi.dll harmony_efi_color.dll ; Data Sections ; [PCLData_NT1] DriverFile=EF5P1X12.dlx ConfigFile=EF5P1X12.ifx ; ; Call SetupSetDirectoryId with 66000 to set the target directory at runtime ; (depending on which environment drivers are getting installed) ; [DestinationDirs] DefaultDestDir=66000 SYS32 = 66002 ; ; diskid = description,tagfile,unused,subdir ; [SourceDisksNames] 1 = %DiskID1%,, 0000-0000 ; ; [SourceDisksNames.x86] 1 = %DiskID1%,, 0000-0000 ; ; [SourceDisksFiles.x86] EF5P1X12.PDD = 1 EF5P1X12.chm = 1,\i386 EF5P1X12.dll = 1,\i386 EF5P1X12.dlx = 1,\i386 EF5P1X12.esi = 1,\i386 EF5P1X12.ext = 1,\i386 EF5P1X12.fin = 1,\i386 EF5P1X12.ifx = 1,\i386 EF5P1X12.lan = 1,\i386 EF5P1X12.mrx = 1,\i386 EF5P1X12.oem = 1,\i386 EF5P1X12.uat = 1,\i386 EF5P1X12.uim = 1,\i386 EF5P1X12.upd = 1,\i386 EF5P1X12.xml = 1 Microsoft.VC80.CRT.manifest = 1,\i386 efjm.dll = 1,\i386 msvcp80.dll = 1,\i386 msvcr80.dll = 1,\i386 harmony10.dll = 1,\i386 harmony_bridge.dll = 1,\i386 harmony_core.dll = 1,\i386 harmony_ctp.dll = 1,\i386 harmony_efi.dll = 1,\i386 harmony_efi_color.dll = 1,\i386 [SourceDisksFiles.amd64] EF5P1X12.PDD = 1 EF5P1X12.chm = 1,\amd64 EF5P1X12.dll = 1,\amd64 EF5P1X12.dlx = 1,\amd64 EF5P1X12.esi = 1,\amd64 EF5P1X12.ext = 1,\amd64 EF5P1X12.fin = 1,\amd64 EF5P1X12.ifx = 1,\amd64 EF5P1X12.lan = 1,\amd64 EF5P1X12.mrx = 1,\amd64 EF5P1X12.oem = 1,\amd64 EF5P1X12.uat = 1,\amd64 EF5P1X12.uim = 1,\amd64 EF5P1X12.upd = 1,\amd64 EF5P1X12.xml = 1 Microsoft.VC80.CRT.manifest = 1,\amd64 efjm.dll = 1,\amd64 msvcp80.dll = 1,\amd64 msvcr80.dll = 1,\amd64 harmony10.dll = 1,\amd64 harmony_bridge.dll = 1,\amd64 harmony_core.dll = 1,\amd64 harmony_ctp.dll = 1,\amd64 harmony_efi.dll = 1,\amd64 harmony_efi_color.dll = 1,\amd64 ; Localizable Strings ; [Strings] MFG="Xerox" DiskID1="User Software" Printer1="DocuColor 242-252-260 PCL" CLASSNAME="Printer" ]
  6. i have two queues a Black and white queue called 2F26-BW and a color queue called 2F26-CLR. I am installing the printers using the following command net stop spooler reg.exe ADD "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Ports" /v \\MyPrinterserver\2F26P-CLR /t REG_SZ /f reg.exe ADD "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Ports" /v \\MyPrintserver\2F26P-BW /t REG_SZ /f net start spooler rundll32 printui.dll PrintUIEntry /if /b "2F26P-CLR" /r "\\MyPrintserver\2F26P-CLR" /m "HP LaserJet P3011/P3015 PCL6" rundll32 printui.dll PrintUIEntry /if /b "2F26P-BW" /r "\\MyPrintserver\2F26P-BW" /m "HP LaserJet P3011/P3015 PCL6" rundll32 printui.dll PrintUIEntry /y /n "2F26P-BW" Everything is working great, except for the 2F26-BW queue, the driver is defaulting to color, I would like it to be grayscale. I need to do this via command line because I have a lot of stations to run this script on.
  7. Set WshShell = WScript.CreateObject("WScript.Shell") WshShell.Run "c:\myprogram.exe" But How do I make it wait 30 minutes before running it? Thanks for any help you can offer it would be great.
  8. I am trying to find a Windows 7 driver for a model of a sound card CT4750. I believe it is this. http://www.microsoft.com/Windows/compatibility/windows-7/en-us/Details.aspx?type=Hardware&p=Creative%20Sound%20Blaster%20PCI%20128%20Sound%20Card&v=Creative&uid=50S3101001&l=en-US&pf=5π=6&c=Graphics%20Cards%20%26%20Components&sc=Sound%20Cards&vd=all&os=64-bit. But multimedia audio controller not found in device manager.
  9. Here is the problem, where I work we have podium computers hooked up to projectors, and often the monitor becomes out of sync, and then we have to boot in low resolution mode, set the settings back to 1024x768 @ 60 hz and then the projector works, I have read there is a way to force a monitor to a certain resolution using the edid info. Does anyone know how to do this?
  10. Hi I need to deploy Simply Accounting 2012, to about 200 computers for Wednesday. I am wondering if any of you have successfully deployed this software using sccm.Thanks to anyone that can give me a hand with this as I am under the gun.
  11. Yes basically, I had to use a vbscript wrapper to solve my issue.
  12. Hi guys need some help debugging this code. I am trying to install some software from a VBS script in order to suppress the exit code. I found this script on the web. '******************************************* Dim oShell, MyApp, i Set oShell = CreateObject("WScript.Shell") ' MyApp is the application path with silent switch. ' Use appropriate silent switches as per the application MyApp = """C:\MyApplication\Setup.exe"" /Q" i = 0 i = oShell.Run(MyApp, 1 ,True) WScript.Echo "Exit Code is: " & (i) 'Uncomment the following line of code while using this script in software delivery and comment the above line 'WScript.Quit(i) Set oShell = Nothing '*******************End Of Code************** I would like to add the following to the script for MyApp Setup.exe /UL1033 /V"SERIALNUMBER=XXXX-XXXX-XXXX-XXXX-XXXX-XXXX" Every time I do I keep getting syntax errors, I am sure it is the quotes. Can you help out.
  13. Hi I got my unattended silent install of elements working fine using Setup.exe /UL1033 /V"SERIALNUMBER=XXXX-XXXX-XXXX-XXXX-XXXX-XXXX I am trying to install it via SCCM and it reports a failure, even though it installs successfully. I believe it is because the the results code that all Adobe products issue, after an install is there a way to suppress the results code?
  14. Hi been trying to do a silent installation of Oracle 11g express on my windows 7 systems. If I follow the command line switches with setup Sqvn the installer starts and then stops I also have tried to generate a response file with the setup -responsefile switch but that didn't work either. I have to install oracle this way after imaging because from what I read Oracle cannot be included on the reference image because it has some very specific per machine settings. Has anyone tried to include Oracle as part of their reference image? Any help on how to do a Oracle 11g express installation silently or how to include it on the reference image would be great.
  15. thanks for your help. I implemented the script tonight. it is not quite performing as I had hoped. I would like the script to keeping checking for the existance of a printer, (our printers are pulled down via GPO), every login. If there is no printers there yet, i'd like the script to siliently keep checking for a specific printer and then once it finds it then set the default, I do not need the message box. It seems it doesn't keep checking silently for the existance of the printer. Set objNetwork = WScript.CreateObject("WScript.Network") Set colPrinters = objNetwork.EnumPrinterConnections Dim C1, C2, Chk, Printer '-> Place The Printer You Want To Check For Printer = "\\printserver\2F24P" objNetwork.SetDefaultPrinter "\\printserver\2F24P" '-> Loops Until True Do Until Chk = True C1 = C1 + 1 For i = 0 to colPrinters.Count -1 Step 2 If colPrinters.Item(i + 1) = Printer Then '-> Code Here To Add Printer '->Wscript.Echo "Adding Printer : " & colPrinters.Item(i + 1) Chk = True End If Next WScript.Sleep 1000 '-> Waits 60 Seconds If C1 = 60 Then C2 = C2 + 1 '-> Msgbox Ask To Quit Or Wait If MsgBox(_ " Script Has Been Active For : " & C2 & " Minutes." & vbCrLf & vbCrLf & _ "Would you like to quit the script or wait for" & vbCrLf & _ "the printer to be added?" & vbCrLf & vbCrLf & _ "No to quit this script and not add the printer," & vbCrLf & _ "Yes to wait for the printer to be added?",4132,"Quit Or Contimue") = 7 Then WScript.Quit Else '-> Yes Selected Reset Counter To Zero C1 = 0 End If End If Loop This is what happens when the printers have not come down yet "there is no printer called \\printserver\2F24P" Thanks for any advice.
  16. in the above script you have code here to add printer section. I put the following below there? Set WshNetwork = CreateObject("WScript.Network") PrinterPath = "\\server01\2F18P" WshNetwork.SetDefaultPrinter "\\server01\2F18P" appreciate your help.
  17. Great thanks for your reply and help, we have to wait until the printer is installed from the AD server, how would we "loop" the checking until the printer exists and THEN and only then set the default.
  18. Here is my script, the only functionally I'd like to add is to keeping checking if the printer exists and once it is found to exist THEN set the default printer. Is this possible?. I am not very good in VBScript yet, so thanks in advance for any help you can offer. WScript.Sleep(1000 * 60) Set WshNetwork = CreateObject("WScript.Network") PrinterPath = "\\server01\2F18P" WshNetwork.SetDefaultPrinter "\\server01\2F18P"
×
×
  • Create New...