Solved

Sharing Printers between Windows 7 Home and Windows XP Pro

Posted on 2010-09-21
9
380 Views
Last Modified: 2012-05-10

I am trying to share a printer between a Windows 7 Home PC and a Windows XP Pro PC.

- The HP printer is connected to the windows 7 PC via a USB cable and shared
- The HP printer can be added successfully to the windows XP Pro PC with no problems and print.
- When you reboot the Windows XP Pro PC and try to print, the printer says "Access Denied"
- You then have to delete the Printer and Re-add , but every time you reboot the xp PC , you receive an access denied message for the shared printer.

If I remove the password for logging on the Windows 7 PC, then the XP pro printing works fine even after a reboot.
Hpwever I would like to mauntain a password on the Windows 7 PC for security , how can this problem be fixed ?

Regards

Dal
0
Comment
Question by:BhanaD2
  • 4
  • 2
  • 2
  • +1
9 Comments
 
LVL 17

Expert Comment

by:houssam_ballout
ID: 33724910
open the control panel > user accounts, then click manage credentials & try to save the username / password for windows 7
0
 

Author Comment

by:BhanaD2
ID: 33725060
Houssam ballout

But I need to have security on my Windows 7 PC and want to enter the password everytime I login.
0
 
LVL 3

Expert Comment

by:alexfarias
ID: 33725208
you can use a script to re-map the printer when u re-boot de XP. Set the script on the STARTUP folder

i use this one:

'Script de Login Trust Solutions Brasil Sistemas


On error Resume Next
Err.clear 0

'============================================================================
'MAP DRIVERS (to disable any script just comment it adding a ' in the begining of it)

Set WshNetwork = Wscript.CreateObject("Wscript.Network")
WshNetwork.MapNetworkDrive "M:","\\your_server\Your_driver","true"

'============================================================================
'MAP PRINTER

Set WshNetwork = Wscript.CreateObject("Wscript.Network")
WshNetwork.AddWindowsPrinterConnection "\\your_server\Your_printer", "Your_printer"
WshNetwork.SetDefaultPrinter "\\Your_server\Your_printer", "Your_printer"

'============================================================================
'SYNC TIME WITH SERVER

Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\CIMV2")
Set objShell = CreateObject("WScript.shell")
strCmd = "net time \\Your_server /set /yes"
set objexec = objshell.exec(strcmd)

'============================================================================
'WELCOME TO USERS (Is in portuguese, translate it)

Set objUser = WScript.CreateObject("WScript.Network")
wuser=objUser.UserName
If Time <= "12:00:00" Then
Msg = "Good Morning "+Wuser+", you just join the network "company name". All printers and drives were mapped successfully! Remember, use your equipment responsibly."
Title = " YOUR COMPANY NAME."
Response = MsgBox(MSG, 64, Title)

ElseIf Time >= "12:00:01" And Time <= "18:00:00" Then
Msg = "Good AfterNoon "+Wuser+", you just join the network "company name". All printers and drives were mapped successfully! Remember, use your equipment responsibly."
Title = " YOUR COMPANY NAME."
Response = MsgBox(MSG, 64, Title)

Else
Msg = "Good Night "+wuser+", you just join the network "company name". All printers and drives were mapped successfully! Remember, use your equipment responsibly."
Title = " YOUR COMPANY NAME."
Response = MsgBox(MSG, 64, Title)

End If

Wscript.Quit

0
 

Author Comment

by:BhanaD2
ID: 33725477
alexfarias:

Is there not any easier way ?

dal
0
Zoho SalesIQ

Hassle-free live chat software re-imagined for business growth. 2 users, always free.

 
LVL 9

Expert Comment

by:Jeff Brown
ID: 33726329
the easier way is to set up accounts that are the same on both computer using the same password.  
for example

windows xp computer loggs in with  username: iamsam     and password: changeme
there needs to be an account on the windows 7 computer named    iamsam  with password changeme

you do not need to log into the account on windows 7     it just needs to be present and active.  this will allow automatic authentication via windows login


additionally alot of new printers actually have network ports on them it would be alot easier if you used a network ready printer and each computer connected to it indepenantly.

although i do note that you tagged small buisness server  in this as well are these computers on a domain?
0
 

Author Comment

by:BhanaD2
ID: 33726572
wildstar10:

Thanks

OK I will setup an Identical account on the Windows 7 and XP PC.
Will this mean that I have to use these accounts to login , for exapmple if a different user log's on can they still print ?

Dal
0
 
LVL 3

Expert Comment

by:alexfarias
ID: 33726732
'Script de Login Trust Solutions Brasil Sistemas


On error Resume Next
Err.clear 0

'MAP PRINTER

Set WshNetwork = Wscript.CreateObject("Wscript.Network")
WshNetwork.AddWindowsPrinterConnection "\\your_server\Your_printer", "Your_printer"
WshNetwork.SetDefaultPrinter "\\Your_server\Your_printer", "Your_printer"

----------------------------------------------------------------------------------------------------------------------------

Copy the script above and paste it in Notepad.
you just need to replace the blanks "Your_Server" and "Your_Printer" with the data on your equipment and Save the script as, for example, print.vbs and put in:
start menu> startup
that way your printer will be remapped when windows starts, thus having a clear connection
0
 
LVL 9

Accepted Solution

by:
Jeff Brown earned 250 total points
ID: 33726903
as long as for every user that loggs into a client system  there is a corresponding account on the host system they will all be able to print.    So if you want more users  just create more accounts on the host system.
0
 

Author Closing Comment

by:BhanaD2
ID: 33744804
tHE SOLUTION WORKED.
0

Featured Post

Scale it in WD Gold

With up to ten times the workload capacity of desktop drives, WD Gold hard drives employ advanced technology to deliver among the best in reliability, capacity, power efficiency and performance.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
pdf convertor 7 64
Lost sound on my Windows 7 PC 3 31
cant install rsat on win 7 13 43
Windows 7 PC hanging, freezing up with low CPU, Disk and Memory usage 13 45
I work for a company that primarily works with small businesses as their outsourced IT vendor. As such the majority of these customers utilize some version of Small Business Server. Due to the economics of running a small business, many of these cus…
If you get continual lockouts after changing your Active Directory password, there are several possible reasons.  Two of the most common are using other devices to access your email and stored passwords in the credential manager of windows.
This Micro Tutorial will give you a introduction in two parts how to utilize Windows Live Movie Maker to its maximum capability. This will be demonstrated using Windows Live Movie Maker on Windows 7 operating system.
This Micro Tutorial will give you a introduction in two parts how to utilize Windows Live Movie Maker to its maximum editing capability. This will be demonstrated using Windows Live Movie Maker on Windows 7 operating system.

930 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now