1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

dsmod -hmdir

Discussion in 'Windows Server 2003 / 2008 / 2012 Exams' started by dales, Mar 18, 2008.

  1. dales

    dales Gigabyte Poster

    1,997
    46
    97
    Hi all,

    I've got something thats bugging me and googling isnt helping at the moment. I'm playing around with ds commands.

    I've typed in the below but where I've specified the %username% variable it just dumps it into the already present administrator folder. I dont think its a NTFS issue as I've opened those up wide.

    dsquery user "ou=ict,ou=scrivnet users,dc=scrivnet,dc=co,dc=uk" | dsmod user -hmdir \\server\shares\%USERNAME% - hmdrv Z:\

    then it goes through all the users and says its suceeded but all the users are now pointing straight into the administrator folder.

    Is there something I'm doing wrong or does -hmdir not work that way?
     
    Certifications: vExpert 2014+2015+2016,VCP-DT,CCE-V, CCE-AD, CCP-AD, CCEE, CCAA XenApp, CCA Netscaler, XenApp 6.5, XenDesktop 5 & Xenserver 6,VCP3+5,VTSP,MCSA MCDST MCP A+ ITIL F
    WIP: Nothing
  2. Bluerinse
    Honorary Member

    Bluerinse Exabyte Poster

    8,871
    167
    256
    I don't think that you can modify the file system with DSMOD. I presume you are trying to create user folders using the %Username% token. DSMOD is for modifying existing *AD* objects.
     
    Certifications: C&G Electronics - MCSA (W2K) MCSE (W2K)
  3. dales

    dales Gigabyte Poster

    1,997
    46
    97
    Ah i see thanks for that, i kinda assumed it would work if i put a variable in and as it didnt throw up any funky error messages. I thought I might just have been out a bit. Its proberbly why I couldnt find any documentation on it. :biggrin
     
    Certifications: vExpert 2014+2015+2016,VCP-DT,CCE-V, CCE-AD, CCP-AD, CCEE, CCAA XenApp, CCA Netscaler, XenApp 6.5, XenDesktop 5 & Xenserver 6,VCP3+5,VTSP,MCSA MCDST MCP A+ ITIL F
    WIP: Nothing

Share This Page

Loading...