Hide Server
net config server /hidden:yes

Show Server
net config server /hidden:no

Hide Workstation
net config workstation /hidden:yes

Show Workstation
net config workstation /hidden:no