Jump to content



Photo

Create a directory on unc path via Login Script


  • Please log in to reply
2 replies to this topic

#1 +ThePhoenix

ThePhoenix

    Computer Geek :-)

  • Tech Issues Solved: 1
  • Joined: 15-August 06
  • Location: Lincolnshire, UK
  • OS: Windows 10 / 8.1 / OSX Triple Boot
  • Phone: Nokia Lumia 930 & iPhone 5S

Posted 19 April 2014 - 09:20

Morning Guys,

 

Not sure if I am creating this in the right place or not so apologies if needed.

 

I am trying to figure out if it is possible to create a directory (2 in fact) using some form of command within the user's login script on a UNC Path

 

We are trying to create something along of the lines of the below

 

\\THEIRSERVERNAME\Staff\%USERNAME%\Desktop

\\THEIRSERVERNAME\Staff\%USERNAME%\Favourites

 

Basically I am trying to get something that can create those 2 directory's on the server for each user, we are about to migrate there systems and want them to copy their existing stuff from their Desktop and their Favourites into these directory's that would be created for them in their H Drive.

 

Reason being is having the folders already their for them to put the stuff in is gonna be a lot easier than trying to get them all to create the folder's as well. Dealing with staff at a place that have low level IT Skills.

 

I did wonder if I could simply bung it in the login script using something like MKDIR or somesuch but I see it does not really support UNC Path's which leaves me stuffed there.

 

Any idea's fellas?




#2 +snaphat (Myles Landwehr)

snaphat (Myles Landwehr)

    Electrical & Computer Engineer

  • Tech Issues Solved: 29
  • Joined: 23-August 05
  • OS: Win/Lin/Bsd/Osx
  • Phone: dumb phone

Posted 19 April 2014 - 18:29

I'd try creating the directories locally then using xcopy with the UNC path. Supposedly, it works with UNC paths (I haven't checked though)



#3 Kami-

Kami-

    ♫ d(-_-)b ♫

  • Tech Issues Solved: 3
  • Joined: 28-July 08
  • Location: SandBox

Posted 23 April 2014 - 11:47

I'd try creating the directories locally then using xcopy with the UNC path. Supposedly, it works with UNC paths (I haven't checked though)

If xcopy can't do unc paths, use robocopy ;)