@echo offecho 1) Remove all shares ... for / f "Skip = 4 Delims =" %% I in ('Net Share') Do Net Share %% I / Decho delete! Echo 2) Test Sharing List: Net SharePault @ echo on