Networking Forums

Networking Forums > Computer Networking > Windows Networking > distribute link to DFS root

Reply
Thread Tools Display Modes

distribute link to DFS root

 
 
Greg Stigers, MCSA
Guest
Posts: n/a

 
      02-11-2005, 01:11 AM
I have created a DFS root, and want to automagically create a link to it in
My Network Places on other XP Pro systems, from a command line.

Xcopying "%userprofile%\NetHood\DFSroot on ourdomain.com" to
\\xppro\c$\documents and settings\user.domain\nethood does not work. Nor
does xcopying target.lnk to a subdirectory with the appropriate DFSRoot
name. I feel like I am missing something blindingly obvious, since this
seems like an obvious thing to do, but I cannot figure out how to do it.
Searches have given me clear instructions on how to manually drag and drop
such a link, but other than that, I'm not finding anything.
--
Greg Stigers, MCSA
remember to vote for the answers you like


 
Reply With Quote
 
 
 
 
Rich [MSFT]
Guest
Posts: n/a

 
      02-12-2005, 02:08 AM
One option is to create the shortcut via a WSH script and call that script
using EXEC.vbs from the 2000 resource kit. Here's how you can do the
shortcut creation through a .vbs file:

===================================
CreateShort "\\Server\share", "My Share"

Function CreateShort(strCMD, strName)
Set WshShell = WScript.CreateObject("WScript.Shell")

strNetHood = WshShell.SpecialFolders("NetHood")
set oShellLink = WshShell.CreateShortcut(strNetHood & "\" & strName &
".lnk")

oShellLink.TargetPath =strCMD
oShellLink.WindowStyle = 1
oShellLink.Description = strName
oShellLink.Save

set oShellLink=Nothing
Set WshShell = Nothing
End Function
====================================
--
Rich Helzerman
Microsoft Corporation

This posting is provided "AS IS" with no warranties, and confers no rights.


"Greg Stigers, MCSA" <gregstigers+(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
>I have created a DFS root, and want to automagically create a link to it in
>My Network Places on other XP Pro systems, from a command line.
>
> Xcopying "%userprofile%\NetHood\DFSroot on ourdomain.com" to
> \\xppro\c$\documents and settings\user.domain\nethood does not work. Nor
> does xcopying target.lnk to a subdirectory with the appropriate DFSRoot
> name. I feel like I am missing something blindingly obvious, since this
> seems like an obvious thing to do, but I cannot figure out how to do it.
> Searches have given me clear instructions on how to manually drag and drop
> such a link, but other than that, I'm not finding anything.
> --
> Greg Stigers, MCSA
> remember to vote for the answers you like
>



 
Reply With Quote
 
Greg Stigers, MCSA
Guest
Posts: n/a

 
      02-12-2005, 03:23 AM
Thanks. Now, I need to create this for other users, probably quite a few of
them. So I would also need a fool-proof way to distribute this solution.
More helpful would be some way to create the necessary link in
\\workstation\c$\Documents and Settings\All Users\NetHood.

I've noticed that this folder does not already exist, and I've begun to
wonder if it cannot exist, if what I'm trying to do just is not possible. I
can copy an existing NetHood to All Users, and existng links copied to it do
work. At least, they open the correct share. But they still do not show up
in My Network Places.

Automatically distributing a DFS root in My Network Places just seems like
such an obvious thing to do. It has to beat mapping a drive.
--
Greg Stigers, MCSA
remember to vote for the answers you like

"Rich [MSFT]" <(E-Mail Removed)> wrote in message
news:ee%(E-Mail Removed)...
> One option is to create the shortcut via a WSH script and call that script
> using EXEC.vbs from the 2000 resource kit. Here's how you can do the
> shortcut creation through a .vbs file:
>
> ===================================
> CreateShort "\\Server\share", "My Share"
>
> Function CreateShort(strCMD, strName)
> Set WshShell = WScript.CreateObject("WScript.Shell")
>
> strNetHood = WshShell.SpecialFolders("NetHood")
> set oShellLink = WshShell.CreateShortcut(strNetHood & "\" & strName &
> ".lnk")
>
> oShellLink.TargetPath =strCMD
> oShellLink.WindowStyle = 1
> oShellLink.Description = strName
> oShellLink.Save
>
> set oShellLink=Nothing
> Set WshShell = Nothing
> End Function
> ====================================
> --
> Rich Helzerman
> Microsoft Corporation
>
> This posting is provided "AS IS" with no warranties, and confers no
> rights.
>
>
> "Greg Stigers, MCSA" <gregstigers+(E-Mail Removed)> wrote in message
> news:%(E-Mail Removed)...
>>I have created a DFS root, and want to automagically create a link to it
>>in My Network Places on other XP Pro systems, from a command line.
>>
>> Xcopying "%userprofile%\NetHood\DFSroot on ourdomain.com" to
>> \\xppro\c$\documents and settings\user.domain\nethood does not work. Nor
>> does xcopying target.lnk to a subdirectory with the appropriate DFSRoot
>> name. I feel like I am missing something blindingly obvious, since this
>> seems like an obvious thing to do, but I cannot figure out how to do it.
>> Searches have given me clear instructions on how to manually drag and
>> drop such a link, but other than that, I'm not finding anything.
>> --
>> Greg Stigers, MCSA
>> remember to vote for the answers you like



 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
distribute large files nico Windows Networking 0 06-02-2010 10:41 AM
NFS root problem Guillaume Dargaud Linux Networking 0 04-18-2008 02:53 PM
Distribute wireless from a moving truck convoy djxchus@gmail.com Wireless Internet 7 02-25-2006 12:14 AM
WG311T wireless card is showing c.root-server.net and other root-server.net in netstat. Robert Home Networking 1 05-06-2005 08:13 PM
Postfix config - cron messages for root going to root@ISP. Doug Laidlaw Linux Networking 5 02-27-2005 03:21 PM



1 2 3 4 5 6 7 8 9 10 11