Osama Kakhia

a story of life

Posted: 2008-09-27 11:41:40
Comments:Add Yours | View

Windows Logon Credential

Windows Password Credential enables the save of username & password for the login to a certain website or server. There are two types of it: "Windows Logon Credential" which allows the saving of access information to a Windows server or other Windows computer. "Website Credential" which saves the username & password for a website or program.

The two types are available under Windows Business Editions (XP Pro, Vista Business & Vista Ultimate). But the first one "Windows Logon Credential" is disabled for Home Editions (XP Home, Vista Home).

Thus, what if a Windows Home Edition computer exists in a business network environment! The user has to enter his username/password whenever he needs to access information on the server (Printers, Files ...etc). That's really inconvenient!

If you are not considering upgrading the Windows from Home to Business, there is a workaround. It's simply by creating a patch file.
Here is it:

@echo off
net.exe user \\[server1] /user:[domaincontroller]\[username] [password]
net.exe user \\[server2] /user:[domaincontroller]\[username] [password]
net.exe user \\[computer1] /user:[username] [password]
pause

Replace [server1], [server2], [computer1] with the server/computer name or IP (e.g. 10.0.0.2, fileserver, foo_computer). As well as [username] & [password] with username & password of your login information.
[domaincontroller] is the name or IP of the domain controller (e.g. 1.0.0.1, workgroup)

You can add as many login credential as necessary, depending on how many servers/computers there are on the network and to which you need to have access.
Save the file as .bat (e.g. network.bat), and just run it whenever you need to access network resources. Typically you just need to run it upon Windows startup. Thus, add it your startup folder.

This patch would work the same as Windows Logon Credential. This way all network printers, files & mapped drivers are available to you without the need to enter the username/password.

NOTE: Be careful, the batch file is in plain text format. Anyone might open it & get your login information. Take necessary actions to not let that happens, even by coincidence.



Add Your Comments:

Username:
Email: Hide my email from public
Comments:
Security Code:


 Audio
 Reload Image

 

Comments:

Jack
--hidden--
2008-10-21 09:05:29

Not bad at all

komirad
komirad (at) gmail dot com
2011-11-21 11:09:59

Can\'t work. Apparently the Net User syntax is wrong