startup script

  • Thread starter Thread starter tmmm
  • Start date Start date
T

tmmm

hi all

w2k pro, I have a little .bat file that deletes the IPC$ share. For some
reason it doesn't kick off on start up..

I am using the local computer policy mmc, under windows settings - startup,
I have nominated the .bat file and it seems ok..

but nothing on startup

does anyone know why it isn't kicking off?

thnx

tm
please reply to post
 
- Where does your startup script reside?
- What exact name do you use in the Computer Policy mmc?
- Why do you want to play with IPC$?
- How do you know that the script does not run?
 
1. script lives at c:\winnt\system32\grouppolicy\machine\scripts\startup
2. the name i use is the full name of the bat file - share_delete.bat
3. I am playing with the startup script process generally.. as for the
shares I know I can disable them thru the registry
4. the ipc$ share is still there after startup

I have tried other scripts using the same naming method and location but
they don't seem to run..

any clues appreciated

thnx

tm
 
IPC$ is not a share, it's a remote procedure call. InterProccess
Communication is what the pseudo stands for. Used to authenticate accounts.
How do you know that the bat file didn't execute? A bat file will run and
terminate unless explicitly coded to pause.
 
Modify your batch file like so:
@echo off
echo %date% %time% Start of task > c:\test.log
echo User=%UserName%, Path=%path% >> c:\test.log
net use . . . (your switches!) 1>>c:\test.log 2>>c:\test.err
echo %date% %time% End of task >> c:\test.log

Now have a look at your log files to see what's going on.
 
Hi

I'm having the same problem:
I want to run a startup script to map a drive, which
should be accessible without any user logged on.
The script has been placed in the startup-section of the
local computer policy. I also track it by writing the
output of the map-command to a logfile.
The output is ok (command completed successfully), but
when I open the explorer, the mapped drive is not there.

Can anyone help here, please ?
Steven
 
Steven said:
I'm having the same problem:
I want to run a startup script to map a drive, which
should be accessible without any user logged on.
The script has been placed in the startup-section of the
local computer policy. I also track it by writing the
output of the map-command to a logfile.
The output is ok (command completed successfully), but
when I open the explorer, the mapped drive is not there.

Can anyone help here, please ?

Hi

A computer startup script is run under the system account, and any drives
mapped there will not be visible for other users, because network drives is per
user.
 
Hi Torgair

Thanks for the reply.

Do you know if there exist other ways to solve this issue ?

Best Regards
Steven
 
Steven said:
Thanks for the reply.

Do you know if there exist other ways to solve this issue ?

Hi

I am not sure what your goal is here, but if it is to let every user have a
common mapping, you could put the map command into a user logon script...
 
Hi

The goal is to get a drive map regardless of any logged on
users, so a logon script won't work, as the drive has to
be mapped on a server where normally no users are logged
in.
However, Clients connecting to this server should then be
able to access the mapped drive on the server.

Markus
 
The goal is to get a drive map regardless of any logged on
users, so a logon script won't work, as the drive has to
be mapped on a server where normally no users are logged
in.
However, Clients connecting to this server should then be
able to access the mapped drive on the server.

Hi

Sorry, it is not possible to access a mapped drive on one computer from another
computer. But I can't see why it is not possible to let a (user) logon script
map a drive to the same share that you now (try to) do map from the server?
 
You say "The goal is to get a drive map . . ". I do not
understand what this means. Can you please be quite
specific in what you're trying to achieve, with an example.
It's likely that there is a simple solution to your problem.
 
Hello

Thanks for all the replies. I'll explain the situation:
We are using a product called "Tivoli SANergy" on three
servers. This product allows a partition on a SAN shared
by multiple servers, so all three servers can access the
data on this one partition concurrently, whithout getting
problems with the disk signature.
One Server is the SANergy Meta Data Controller (MDC),
which is in fact the Master and the one where the SAN disk
is directly attached to. The other two servers map the SAN
disk through the MDC, they are mapping the SAN drive via
the MDC.

Now, three servers are used for load balancing and as they
are servers, they are accessed by clients. The clients
need to connect to the SAN partition via either one
server, the SAN partition should appear as a local drive
on all servers.

As usual, no one is logged on to the SANergy servers,
that's why logon scripts won't work.

Thanks
Markus
 
Back
Top