donpick
asked on
Help to create Script to create shares - Windows xp or SBS
I have a Windows xp pro pc connected to a Small Business Server 2003 domain.
There are 5 usb drives connected to the XP Pro machine.
Four of the drives have shares on them.
Each time this XP pro machine is rebooted, all the shares on the usb drives disappear. I have to manually recreate them and assign the correct permissions.
I have searched in Experts-Exchange, I cannot find a suitable solution.
I assume some sort of script could perform this task. I am a script novice.
1.) What commands would I enter into a script to create the share and assign permissions?
2.) What type of script should this be? (logon script? local script on the XP machine? )
3.) What is the best way to invoke this script?
4.) Perhaps someone has a script they could share?
There are 5 usb drives connected to the XP Pro machine.
Four of the drives have shares on them.
Each time this XP pro machine is rebooted, all the shares on the usb drives disappear. I have to manually recreate them and assign the correct permissions.
I have searched in Experts-Exchange, I cannot find a suitable solution.
I assume some sort of script could perform this task. I am a script novice.
1.) What commands would I enter into a script to create the share and assign permissions?
2.) What type of script should this be? (logon script? local script on the XP machine? )
3.) What is the best way to invoke this script?
4.) Perhaps someone has a script they could share?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
How big are these drives? The real solution is to move the data onto the SBS sever or a NAS unit
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Agreeing with CrisHanna_MVP. Data stored on external USB drives is data loss wating to happen. And pointing out that scheduled tasks are unnecessary when you can place the net use commands in the logon script in Server /SBS 2003. Scheduled tasks just complicates it.
But if you have important informatio on external USB drives that are not mirrored and not backed up, you will not be happy when (not if) those drives fail.
But if you have important informatio on external USB drives that are not mirrored and not backed up, you will not be happy when (not if) those drives fail.
ASKER
Thank you all for your help and advice. It finally occurred to me the shares on the usb drives should not be disappearing after a reboot. Some procedure or configuration must be wrong. I checked the boot order on the affected pc. The C drive was 4th in line. Stupid me. I made it first in line and now the problem is solved.