Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


Disable Windows Default Shares

 
Logged in as: Guest
arrSession:exec spGetSession 2,16,60951
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> Post a VBScript >> Disable Windows Default Shares
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 Disable Windows Default Shares - 6/2/2008 8:50:41 PM   
  4scriptmoni


Posts: 190
Score: 0
Joined: 5/3/2007
Status: offline
Since I do not want to share my entire drive with all domain admins all I need to do is:

Before running the script do net share

After running do:
net stop server
net start server
net share
You shuold no longer see the C$ or ADMIN$ (I believe this are dangerous shares to have)


      

< Message edited by 4scriptmoni -- 6/3/2008 7:34:48 PM >


_____________________________

Enterprise Microsoft Scripts
Exchange, Login/Logout Monitor,TS, Monitoring, Security, AD, etc...
http://www.felipeferreira.net
 
 
Revisions: 2 | Post #: 1
 
 RE: Disable Windows Default Shares - 6/3/2008 1:58:10 AM   
  ebgreen


Posts: 4613
Score: 31
Joined: 7/12/2005
Status: offline
Nice script. Just to give fair warning, doing this at my work (and any large corporate environment that I have worked in) would get you a warning and eventually get you fired if you did not heed the warning.

_____________________________

"... when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick
Goog places to start:http://www.visualbasicscript.com/m_24727/tm.htm
http://www.visualbasicscript.com/m_47117/tm.htm

(in reply to 4scriptmoni)
 
 
Post #: 2
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> Post a VBScript >> Disable Windows Default Shares Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts