Link to home
Start Free TrialLog in
Avatar of tourajam
tourajam

asked on

how can i use netuse fom my domain to other pc in workgroup

Dear Experts,

how can i use netuse fom my domain to other pc in workgroup
Avatar of sirbounty
sirbounty
Flag of United States of America image

Hello tourajam,

net use * \\ComputerA\C$ /user:ComputerA\UserName [password]

~sirbounty
Hello tourajam,


*****Drives*****

These command can be executed from either command line, Batch File OR Login Scripts

This command maps a drive "Z:\" to a shared directory on a server called "Server1"

net use z: \\server1\sharename\

If you need permissions to use this network resource toy can also enter the username and password. (See Security Below)

net use z: \\server1\sharename\ /user:username password

The above commands will work until a user logs out or the machine is rebooted, to make the mapping permanent you need to use a "Persistent switch"

net use z: \\server1\sharename\ /user:username password /Y



Zero Administration Kit
http://www.microsoft.com/ntworkstation/downloads/Recommended/Featured/NTZAK.asp

How to Use Con2prt.exe to Connect to a Network Printer
http://support.microsoft.com/?kbid=181663


*****Security*****

If you do need to use  username and password, this has obvious security implications, Consider using NSIS
http://nsis.sourceforge.net/site/Download.6.0.html

For instructions on its use see https://www.experts-exchange.com/questions/20710867/Mapping-a-Network-Drive-through-a-Script.html


Regards,

PeteLong
Avatar of tourajam
tourajam

ASKER

when i type this command :
net use * \\ComputerA\C$ /user:ComputerA\UserName [password]

i receive this error:
you cannot connect form your maschine
ASKER CERTIFIED SOLUTION
Avatar of sirbounty
sirbounty
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
we want connect to C$ << how we can do it ?
i still cannot connect to my workgroup..........

same error : cannot connect to the machine ....
What did my last suggestion reveal?

Ping ComputerName <Enter>
Now use that IP address to substitute the following:

net use \\111.22.33.44\ipc$ /user:111.22.33.44\UserName <Enter>

What are the results?
Same Result

cannot connect to machine
this is ERROR :

System error 1240 arisen. With this account one cannot announce oneself from this computer.
my computer have germany language : i translate it to english
here is the original error :
Systemfehler 1240 aufgetreten.
Mit diesem Konto kann man sich nicht von diesem Computer aus anmelden.
you can ping that workgroup computer properly and chcek any personel firewall softwares installed on that system like norton internet security/zone alarm or mcaffe.

try with this :-

net use \\workgroupcomputer /user:administrator, (here administrator is workgroup computer local administrator),


Regards,

V.K.
Does a ping respond?
Is File sharing turned on?
Yes its turned on already
What's turned on?  File Sharing or the firewall?
File Sharing is Turned on already !
...and the firewall (which can prevent this)...