Torgeir
Wed Feb 11 17:32:07 CST 2004
"Jørn Jørgensen" wrote:
> Can someone tell me how to create a DFS root using VBScript, or
> alternatively point me to a site with info?
>
> There seems to be info out there on creating DFS links under an existing
> rot, but not how to create itself. As you may have understood from this, I'm
> not a scripting guru...
Hi
If you can run your script on a Win2k3 Server, it looks like you can use
the Create method of the Win32_DFSNode WMI class:
http://msdn.microsoft.com/library/en-us/wmisdk/wmi/create_method_in_class_win32_dfsnode.asp
TechNet Scripts: Create a Dfs Node
http://www.microsoft.com/technet/scriptcenter/dfs/ScrDFS06.asp
The command line utility DFSUtil.exe and it's command line switch /ADDROOT
I would think also do this.
Some cleanup tips here by the way:
http://groups.google.com/groups?selm=ewwFDyojDHA.964%40TK2MSFTNGP10.phx.gbl
MS links Dfsutil (with download link to latest DFSUtil for Windows Server 2003):
http://search.microsoft.com/search/results.aspx?st=b&qu=Dfsutil&view=en-us
For Win2k Server:
Latest version of a downloadable DFSUtil.exe is in the SP4 Support Tools"
http://www.microsoft.com/windows2000/downloads/servicepacks/sp4/supporttools.asp
There is a newer version mentioned here:
http://support.microsoft.com/default.aspx?scid=kb;en-us;827414
As the article states, you need to call Microsoft Product Support Services to
obtain it (outside the US, customers should contact their local Microsoft
subsidiary.). The support call will be be free as long as you refer to the
Knowledge Base Article number and ask for nothing more.
--
torgeir
Microsoft MVP Scripting and WMI, Porsgrunn Norway
Administration scripting examples and an ONLINE version of the 1328 page
Scripting Guide:
http://www.microsoft.com/technet/scriptcenter