R
ragnarok89
Hi everyone,
I really hope someone can help me with this... I have 2 computers on
a network, CPU-1 is a win2k server that is a domain controller; PCU-2
is an XP Pro SP2 pc that is part of a workgroup.
Once a day, I want to connect to the "Q" folder (network share) on
CPU-2 from CPU-1, and count the number of directories inside the "Q"
directory. Since CPU-2 is not part of the domain, CPU-1 will require a
username and password to be set up on CPU-2. So I created the user
named "bak" with a password "auto" on CPU-2. "bak" is a member of the
administrators group on CPU-2.
To automate the process, I wrote a PHP script:
exec("net use m: \\\\CPU-2\\count auto /user:CPU-2\\bak");
exec("dir m:\\recordings > folderlist.txt");
exec("net use m: /delete");
I made a PHP script to do this because I want to contents of
folderlist.txt to be displayed on a webpage. For 24 hours, this worked
well. FYI, when the PHP script runs, the tasklist shows CMD.EXE being
executed by IWAM_CPU-1, which is the Built-in account for Internet
Information Services to start out of process applications.
Today, when I loaded my webpage, it didn't work. Here is what I have
found on CPU-1:
When I open windows explorer, I see drive M: listed as "Network Drive
(M", there is no path listed. Also, there is a little red x on the
drive icon. When I double click on the drive, I get an error: "M: is
not accessible. Access Denied." When I right click on the icon, and
select Disconnect, I get the error: "The network connection could not
be found."
These two error messages contradict each other. So I opened up a DOS
window, ran the net use command, and saw this:
Status Local Remote Network
--------------------------------------------------------------------------------------------------
OK \\CPU-2\count Microsoft Windows
Network
The network drive has no letter!
So then I read everthing I could find on Google Groups, but nothing has
worked. Other things that I have tried:
Ran regedit on CPU-1 and removed all entries referring to drive M or
CPU-2
ran the command "net use m: \\CPU-2\count auto /user:CPU-2\bak" in a
DOS window on CPU-1, which gives me System error 85: The local device
name is already in use.
ran the command "net use m: /delete /yes" in a DOS window on CPU-1,
which gives me the error: The network connection could not be found.
unshared the "count" folder on CPU-2 and re-shared it
deleted and recreated the user "bak" on CPU-2 with the same password
deleted and recreated the user "bak" on CPU-2 with a different
password, and modified my PHP script accordingly
created a new user with a new password on CPU-2, and modified my PHP
script accordingly
I'm stuck. The only thing I have not done is reboot either of the PCs,
because they run critical apps on my network. I'm at my wit's end. What
I don't understand is that everything worked fine for a day!
Any ideas, any suggestions, please!
Al
I really hope someone can help me with this... I have 2 computers on
a network, CPU-1 is a win2k server that is a domain controller; PCU-2
is an XP Pro SP2 pc that is part of a workgroup.
Once a day, I want to connect to the "Q" folder (network share) on
CPU-2 from CPU-1, and count the number of directories inside the "Q"
directory. Since CPU-2 is not part of the domain, CPU-1 will require a
username and password to be set up on CPU-2. So I created the user
named "bak" with a password "auto" on CPU-2. "bak" is a member of the
administrators group on CPU-2.
To automate the process, I wrote a PHP script:
exec("net use m: \\\\CPU-2\\count auto /user:CPU-2\\bak");
exec("dir m:\\recordings > folderlist.txt");
exec("net use m: /delete");
I made a PHP script to do this because I want to contents of
folderlist.txt to be displayed on a webpage. For 24 hours, this worked
well. FYI, when the PHP script runs, the tasklist shows CMD.EXE being
executed by IWAM_CPU-1, which is the Built-in account for Internet
Information Services to start out of process applications.
Today, when I loaded my webpage, it didn't work. Here is what I have
found on CPU-1:
When I open windows explorer, I see drive M: listed as "Network Drive
(M", there is no path listed. Also, there is a little red x on the
drive icon. When I double click on the drive, I get an error: "M: is
not accessible. Access Denied." When I right click on the icon, and
select Disconnect, I get the error: "The network connection could not
be found."
These two error messages contradict each other. So I opened up a DOS
window, ran the net use command, and saw this:
Status Local Remote Network
--------------------------------------------------------------------------------------------------
OK \\CPU-2\count Microsoft Windows
Network
The network drive has no letter!
So then I read everthing I could find on Google Groups, but nothing has
worked. Other things that I have tried:
Ran regedit on CPU-1 and removed all entries referring to drive M or
CPU-2
ran the command "net use m: \\CPU-2\count auto /user:CPU-2\bak" in a
DOS window on CPU-1, which gives me System error 85: The local device
name is already in use.
ran the command "net use m: /delete /yes" in a DOS window on CPU-1,
which gives me the error: The network connection could not be found.
unshared the "count" folder on CPU-2 and re-shared it
deleted and recreated the user "bak" on CPU-2 with the same password
deleted and recreated the user "bak" on CPU-2 with a different
password, and modified my PHP script accordingly
created a new user with a new password on CPU-2, and modified my PHP
script accordingly
I'm stuck. The only thing I have not done is reboot either of the PCs,
because they run critical apps on my network. I'm at my wit's end. What
I don't understand is that everything worked fine for a day!
Any ideas, any suggestions, please!
Al