Hi

Recently we have had some big changes in our organization. Migrating to Windows 7 x64, also we have moved printing to IPrint.

I use to have a script that I was able to run when the computers were sitting at the logon screen to delete any any unwanted printers, and set the right default printer, which depends on what lab the computers are in.

I have noticed that while I am able to delete the any printers when the computers are sitting at the logon screen. I am unable to set the default printer without being authenticated to Novell and/or Iprint.

Also I have tried the Iprntcmd.exe command, same result I cannot set the default printer it seems without being authenticated to Novell/Iprint.

Lastly I have even tried to set the default printer on our new Windows 7 stations via the registry, again it seems Novell/Iprint authentication is required to set a default printer via a script?.

This cannot be right?

Here is the script

REM=============================WINDOWS 7 Activation======================================== =======================================
cscript //b c:\windows\system32\slmgr.vbs /ipk PRODUCT KEY
cscript //b c:\windows\system32\slmgr.vbs /ato
REM=============================WINDOWS 7 Activation======================================== =======================================


REM=============================OFFICE 2010 Activation======================================== ======================================
cscript "%ProgramFiles(x86)%\Microsoft Office\Office14\ospp.vbs" /inpkey:PRODUCT KEY

cscript "%ProgramFiles(x86)%\Microsoft Office\Office14\ospp.vbs" /act
REM=============================OFFICE 2010 Activation======================================== ======================================


REM===============================SET DEFAULT PRINTER AND DELETION OF 2F14 PRINTER=========================================== =======
cscript %windir%\system32\Printing_Admin_Scripts\en-us\prnmngr.vbs -t -p "\\ipp://dc2.dawsoncollege.qc.ca\2F16P"
cscript %windir%\system32\Printing_Admin_Scripts\en-us\prnmngr.vbs -d -p "\\ipp://dc2.dawsoncollege.qc.ca\2F14P"

REM ===============================SET DEFAULT PRINTER AND DELETION OF 2F14 PRINTER=========================================== ======



REM=================================Novell Default Domain Fix=============================================== ========================
IF %computername% == 2F16-01 reg ADD "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v DefaultDomainName /d 2F16-01 /f
IF %computername% == 2F16-02 reg ADD "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v DefaultDomainName /d 2F16-02 /f
IF %computername% == 2F16-03 reg ADD "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v DefaultDomainName /d 2F16-03 /f
IF %computername% == 2F16-04 reg ADD "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v DefaultDomainName /d 2F16-04 /f
IF %computername% == 2F16-05 reg ADD "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v DefaultDomainName /d 2F16-05 /f
IF %computername% == 2F16-06 reg ADD "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v DefaultDomainName /d 2F16-06 /f
IF %computername% == 2F16-07 reg ADD "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v DefaultDomainName /d 2F16-07 /f
IF %computername% == 2F16-08 reg ADD "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v DefaultDomainName /d 2F16-08 /f
IF %computername% == 2F16-09 reg ADD "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v DefaultDomainName /d 2F16-09 /f
IF %computername% == 2F16-10 reg ADD "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v DefaultDomainName /d 2F16-10 /f
IF %computername% == 2F16-11 reg ADD "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v DefaultDomainName /d 2F16-11 /f
IF %computername% == 2F16-12 reg ADD "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v DefaultDomainName /d 2F16-12 /f
IF %computername% == 2F16-13 reg ADD "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v DefaultDomainName /d 2F16-13 /f
IF %computername% == 2F16-14 reg ADD "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v DefaultDomainName /d 2F16-14 /f
IF %computername% == 2F16-15 reg ADD "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v DefaultDomainName /d 2F16-15 /f
IF %computername% == 2F16-16 reg ADD "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v DefaultDomainName /d 2F16-16 /f
IF %computername% == 2F16-17 reg ADD "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v DefaultDomainName /d 2F16-17 /f
IF %computername% == 2F16-18 reg ADD "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v DefaultDomainName /d 2F16-18 /f
IF %computername% == 2F16-19 reg ADD "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v DefaultDomainName /d 2F16-19 /f
IF %computername% == 2F16-20 reg ADD "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v DefaultDomainName /d 2F16-20 /f
IF %computername% == 2F16-21 reg ADD "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v DefaultDomainName /d 2F16-21 /f
IF %computername% == 2F16-22 reg ADD "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v DefaultDomainName /d 2F16-22 /f
IF %computername% == 2F16-23 reg ADD "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v DefaultDomainName /d 2F16-23 /f
IF %computername% == 2F16-24 reg ADD "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v DefaultDomainName /d 2F16-24 /f
IF %computername% == 2F16-25 reg ADD "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v DefaultDomainName /d 2F16-25 /f
IF %computername% == 2F16-26 reg ADD "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v DefaultDomainName /d 2F16-26 /f
IF %computername% == 2F16-27 reg ADD "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v DefaultDomainName /d 2F16-27 /f
IF %computername% == 2F16-28 reg ADD "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v DefaultDomainName /d 2F16-28 /f
IF %computername% == 2F16-29 reg ADD "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v DefaultDomainName /d 2F16-29 /f
IF %computername% == 2F16-30 reg ADD "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v DefaultDomainName /d 2F16-30 /f
IF %computername% == 2F16-31 reg ADD "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v DefaultDomainName /d 2F16-31 /f
IF %computername% == 2F16-32 reg ADD "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v DefaultDomainName /d 2F16-32 /f
REM=================================Novell Default Domain Fix=============================================== ========================

REM====================================CleanUp==== ================================================== ================================
del C:\WINDOWS\2F14.CMD /Q
del %0
REM====================================CleanUp==== ================================================== ================================