Link to home
Start Free TrialLog in
Avatar of thsteph
thstephFlag for Cyprus

asked on

Net use from domain to stand alone pcs

Dear experts,

I'm trying to use the following command:

@Echo off
echo Connecting to %4 ...

Net Use \\%1\IPC$ /u:%7/username password

echo Sending Onus...

robocopy.exe %2/%3/%5 \\%1\C$\Progra~1\SEM_SVP\FTPFILES\ENCOURS\%5-%3 /R:3 /W:900 /LOG+:%6/Images-%3.log /NS /NC /NFL /NDL /NJH /NJS

Net Use \\%1\IPC$ /Delete

copy %6\OK.txt %2\%3\%5\OK.txt

-- companies are numbered with unique codes

Where
1: is the ip of the machine
2: is the path
3: is the folder name with date
4: is the reverse company number 1st folder to send
5: is the reverse company number 2nd folder to send (OnUs folder)
6: is the log path
7: is the domain name of the company

My problem with the above command is that when I'm trying to send from our domain to another domain, it sends the files ok.
When is trying to send the files to a Windows 2000 stand alone machine, it send the files ok.
When is trying to send the files to a Windows XP stand alone machine, it doesn't send the files nor creates the path and/or the destination folder.
Every day the source folder changes due to date that attaches next to the folder/company name.
Not all companies have domains thus my need to send on stand alone machines.
The parameters are in a text file encrypted!
I get the error:

2010/09/13 19:12:17 ERROR 121 (0x00000079) Getting File System Type of Destination \\212.7.1.201\C$\Progra~1\SEM_SVP\FTPFILES\ENCOURS\40028-20100913\
The semaphore timeout period has expired.

2010/09/13 19:12:38 ERROR 121 (0x00000079) Accessing Destination Directory \\212.7.1.201\C$\Progra~1\SEM_SVP\FTPFILES\ENCOURS\40028-20100913\
The semaphore timeout period has expired.

Waiting 1800 seconds...

in my log file, even though I can see the net use command established a connection!
I have created the user on the stand alone machines with the password (same on all companies) and gave administrative rights.
I shared the c: to everyone with full access. No firewall on local machines exist.

Thank you for your support in advance
ASKER CERTIFIED SOLUTION
Avatar of S_Todd
S_Todd

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
Avatar of thsteph

ASKER

S_Todd, I solved my problem by adding guest account to administrators but I suppose the reason I needed to do that  is  the reason you described and the solution needed, the one you gave me. Thus , I will award you the points. Excellent answer since the status given for the user I'm using shows as "Guest -> Yes" and that got me into thinking. That's the only reason I changed the rights of the guest account.
Avatar of S_Todd
S_Todd

Thanks