I have found on Microsoft’s website a script that creates a
share on a remote computer. I have also found a script on their site that
will create a folder locally only. Does anyone have a script for creating
a folder remotely so I can run the following script on it.
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.")
Wscript.Echo
errReturn
We are trying to automate as much as possible the account
creation process including the creation of our Home Directories.
John Exum
Harding University