Announcement

Collapse
No announcement yet.

TSCMD Problem - no homedirs mapped

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • TSCMD Problem - no homedirs mapped

    hi,

    i have got a problem with the command line programm TSCMD.
    When I start TSCMD in a script, I set the Homedirdrive, Homedirpath and profilpath.
    In Hyena all is shown right. But, when I log on the Terminal Server the Homedirdrive is not mapped.
    What can it be?

  • #2
    Re: TSCMD Problem - no homedirs mapped

    What is the exact command you are typing in to set the Homedirdrive?

    Comment


    • #3
      Re: TSCMD Problem - no homedirs mapped

      The commands are:

      CMD.EXE /C
      tscmd $domainserver $username TerminalServerProfilePath $profildir\$username

      CMD.EXE /C
      tscmd $domainserver $username TerminalHomeDir $homedir\$username

      CMD.EXE /C
      tscmd $domainserver $username TerminalHomeDirDrive $homedirdrive

      I am using the commands in a script to set user rights for wts.
      The "$words" are variables in the script.

      Comment


      • #4
        Re: TSCMD Problem - no homedirs mapped

        When you pass the $homedirdrive variable to your script, are you passing as D: or D?

        Comment


        • #5
          Re: TSCMD Problem - no homedirs mapped

          I set it as "Z". In Hyena the Drive is shown correct.
          I will try it with a punctation marc.

          Comment


          • #6
            Re: TSCMD Problem - no homedirs mapped

            Hi, with quatation marks does it work. Thanx.
            But now there is a problem with the ProfilPath

            The Setting ist correct. But, when I log off as a user the system does not save in the directory.

            The eventmanager shows the following message:
            Windows cannot unload your registry class file. If you have a roaming profile, your settings are not replicated. Concact your administrator.

            DETAIL Access is denied. ,Build number ((2195)).

            When I set the Terminalpath in Hyena it works, but not in the script with the help of TSCMD

            Comment


            • #7
              Re: TSCMD Problem - no homedirs mapped

              Access denied would indicate that the permissions are being set differently when you use your script versus when running Hyena. Neither will set permissions, so Windows is probably doing this based on the account you are running the script under.

              I would recommend testing both methods and comparing how the security is being set.

              Comment


              • #8
                Re: TSCMD Problem - no homedirs mapped

                Should the Homedirdrive letter be set with or without the : and or ""

                Which is the correct variable to pass:
                H
                H:
                "H"
                "H:"

                Comment

                Working...
                X