Loading |
VBScript |
JavaScript |
Powershell |
Search Options: Create a Network ShareContent of Create a Network Share.vbsMD5 Hash: 590FB09033DAF148AEBE8438C6E1B694 |
||
' Description: Creates a shared folder named FinanceShare, setting the maximum number of simultaneous connections to 25 and adding a share description.
Const FILE_SHARE = 0 Const MAXIMUM_CONNECTIONS = 25 strComputer = "." Set objWMIService = GetObject("winmgmts:" _ & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2") Set objNewShare = objWMIService.Get("Win32_Share") errReturn = objNewShare.Create _ ("C:\Finance", "FinanceShare", FILE_SHARE, _ MAXIMUM_CONNECTIONS, "Public share for the Finance group.") | ||
© 2008 - 2013 Boris Toll :: Scripts available: 6.481 :: :: scriptbox.toll.at :: :: powered by www.toll.at :: |