Link to home
Start Free TrialLog in
Avatar of bsharath
bsharathFlag for India

asked on

Need a Remote Script to Disable all machines in the drives Default Drives.

Hi,

I need a script with which i can disable the default specific shares only.
Say the Machine has C$,D$,E$,F$ I want the script to disable and never turn on after restart except C$.
I want the C$ to be as it is but none of the other drives to come back.

Regards
Sharath
ASKER CERTIFIED SOLUTION
Avatar of RobSampson
RobSampson
Flag of Australia 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
Avatar of bsharath

ASKER

If i place it in the local machine startup or profile startup will it work.
Will it not rremove the c$?
Yes, just run it as is on yours, then check if those default shares are gone.  You should be able to re-enable them by restarting your Server service.

It won't remove C$ because it only looks for D$, E$, F$, and G$

Regards,

Rob.