Whenever we try to share folder between computers, we need follow the "network setup wizard" step by step. Is there any command line that do not required interactive check to setup the sharing folder? we have try the following command, but it does not work without run network setup wizard first. any help?
netsh -c firewall set opmode disable
netsh -c firewall set service fileandprint enable
net share test1=d:\xtravision\test1 /UNLIMITED
cacls d:\xtravision\test1 /E /T /C /G Everyone:r
cacls d:\xtravision\test1 /E /T /C /G Administrator:F
cacls d:\xtravision\test1 /E /T /C /G System:F
netsh -c firewall set opmode disable
netsh -c firewall set service fileandprint enable
net share test1=d:\xtravision\test1 /UNLIMITED
cacls d:\xtravision\test1 /E /T /C /G Everyone:r
cacls d:\xtravision\test1 /E /T /C /G Administrator:F
cacls d:\xtravision\test1 /E /T /C /G System:F