AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / server / 问题 / 9672
Accepted
arathorn
arathorn
Asked: 2009-05-19 14:13:53 +0800 CST2009-05-19 14:13:53 +0800 CST 2009-05-19 14:13:53 +0800 CST

如何为 Windows Server 2003 中新创建的域用户自动配置漫游配置文件路径?

  • 772

如何将 Windows Server 2003 设置为默认新创建的域用户以配置漫游配置文件路径?

假设我在路径 \server\profiles 中存储了漫游配置文件。是否有一些密钥或策略可以将默认配置文件路径设置为:

\server\profiles\$用户名

我不必记住手动为每个新创建的用户配置配置文件路径?

windows-server-2003 active-directory profile roaming
  • 2 2 个回答
  • 4406 Views

2 个回答

  • Voted
  1. Best Answer
    Zoredache
    2009-05-19T14:24:37+08:002009-05-19T14:24:37+08:00

    对于旧系统Windows XP/2003,您可以创建几个模板帐户并简单地复制模板。当您复制帐户时,许多字段将以复制的值开头。在您的模板中使用%USERNAME%之类的变量而不是用户名。

    另一种选择是使用 Powershell 或 vbscript 编写帐户创建脚本。环顾四周,有许多很好的脚本示例,它们可以将帐户添加到目录并设置大多数选项。

    适用于Vista/Windows 2008计算机。如果配置文件将在其上漫游的计算机位于您也可以应用组策略的 OU 或组中,那么您可以设置每台计算机的漫游配置文件路径。

    打开您的组策略编辑器并转到此处。

    Computer Configuration \ Administrative Templates \ System/User Profiles \ Set roaming profile path for all users on this computer.
    
    • 7
  2. KAPes
    2009-06-29T06:07:50+08:002009-06-29T06:07:50+08:00

    如果您使用像 dsadd.exe 这样的命令行工具,那么您可以为用户名字段指定通用变量。

    C:\tools>dsadd user /?
    Description:  Adds a user to the directory.
    Syntax:  dsadd user <UserDN> [-samid <SAMName>] [-upn <UPN>] [-fn <FirstName>]
            [-mi <Initial>] [-ln <LastName>] [-display <DisplayName>]
            [-empid <EmployeeID>] [-pwd {<Password> | *}] [-desc <Description>]
            [-memberof <Group ...>] [-office <Office>] [-tel <Phone#>]
            [-email <Email>] [-hometel <HomePhone#>] [-pager <Pager#>]
            [-mobile <CellPhone#>] [-fax <Fax#>] [-iptel <IPPhone#>]
            [-webpg <WebPage>] [-title <Title>] [-dept <Department>]
            [-company <Company>] [-mgr <Manager>] [-hmdir <HomeDir>]
            [-hmdrv <DriveLtr:>] [-profile <ProfilePath>] [-loscr <ScriptPath>]
            [-mustchpwd {yes | no}] [-canchpwd {yes | no}]
            [-reversiblepwd {yes | no}] [-pwdneverexpires {yes | no}]
            [-acctexpires <NumDays>] [-disabled {yes | no}]
            [{-s <Server> | -d <Domain>}] [-u <UserName>]
            [-p {<Password> | *}] [-q] [{-uc | -uco | -uci}]
    
    Parameters:
    
    Value                   Description
    <UserDN>                Required. Distinguished name (DN) of user to add.
                            If the target object is omitted, it will be taken
                            from standard input (stdin).
    -samid <SAMName>        Set the SAM account name of user to <SAMName>.
                            If not specified, dsadd will attempt
                            to create SAM account name using up to
                            the first 20 characters from the
                            common name (CN) value of <UserDN>.
    -upn <UPN>              Set the upn value to <UPN>.
    -fn <FirstName>         Set user first name to <FirstName>.
    -mi <Initial>           Set user middle initial to <Initial>.
    -ln <LastName>          Set user last name to <LastName>.
    -display <DisplayName>  Set user display name to <DisplayName>.
    -empid <EmployeeID>     Set user employee ID to <EmployeeID>.
    -pwd {<Password> | *}   Set user password to <Password>. If *, then you are
                            prompted for a password.
    -desc <Description>     Set user description to <Description>.
    -memberof <Group ...>   Make user a member of one or more groups <Group ...>
    -office <Office>        Set user office location to <Office>.
    -tel <Phone#>           Set user telephone# to <Phone#>.
    -email <Email>          Set user e-mail address to <Email>.
    -hometel <HomePhone#>   Set user home phone# to <HomePhone#>.
    -pager <Pager#>         Set user pager# to <Pager#>.
    -mobile <CellPhone#>    Set user mobile# to <CellPhone#>.
    -fax <Fax#>             Set user fax# to <Fax#>.
    -iptel <IPPhone#>       Set user IP phone# to <IPPhone#>.
    -webpg <WebPage>        Set user web page URL to <WebPage>.
    -title <Title>          Set user title to <Title>.
    -dept <Department>      Set user department to <Department>.
    -company <Company>      Set user company info to <Company>.
    -mgr <Manager>          Set user's manager to <Manager> (format is DN).
    -hmdir <HomeDir>        Set user home directory to <HomeDir>. If this is
                            UNC path, then a drive letter that will be mapped to
                            this path must also be specified through -hmdrv.
    -hmdrv <DriveLtr:>      Set user home drive letter to <DriveLtr:>
    

    特殊标记$username$(不区分大小写)可用于将 SAM 帐户名放在参数值中。例如,如果目标用户 DN 是 CN=Jane Doe,CN=users,CN=microsoft,CN=com 并且 SAM 帐户名称属性是“janed”,则 -hmdir 参数可以具有以下替换:

    -hmdir \users\$用户名$\home

    • 0

相关问题

  • 在登录期间打开 URL 的现代方法是什么?

  • IIS 6.0 (Windows Server 2003) 上的 HTTP 压缩

  • 从 2003 年迁移到 2008 年 Microsoft 群集技术

  • 有什么理由使用 Windows Server 2003 而不是 Server 2008?

  • 在 Windows Server 2003 下使用 wscipt 从 .asp 文件运行 .exe

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    SFTP 使用什么端口?

    • 6 个回答
  • Marko Smith

    从 IP 地址解析主机名

    • 8 个回答
  • Marko Smith

    如何按大小对 du -h 输出进行排序

    • 30 个回答
  • Marko Smith

    命令行列出 Windows Active Directory 组中的用户?

    • 9 个回答
  • Marko Smith

    Windows 中执行反向 DNS 查找的命令行实用程序是什么?

    • 14 个回答
  • Marko Smith

    如何检查 Windows 机器上的端口是否被阻塞?

    • 4 个回答
  • Marko Smith

    我应该打开哪个端口以允许远程桌面?

    • 9 个回答
  • Marko Smith

    什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同?

    • 3 个回答
  • Marko Smith

    如何确定bash变量是否为空?

    • 15 个回答
  • Martin Hope
    MikeN 在 Nginx 中,如何在维护子域的同时将所有 http 请求重写为 https? 2009-09-22 06:04:43 +0800 CST
  • Martin Hope
    Tom Feiner 如何按大小对 du -h 输出进行排序 2009-02-26 05:42:42 +0800 CST
  • Martin Hope
    0x89 bash中的双方括号和单方括号有什么区别? 2009-08-10 13:11:51 +0800 CST
  • Martin Hope
    kch 如何更改我的私钥密码? 2009-08-06 21:37:57 +0800 CST
  • Martin Hope
    Kyle Brandt IPv4 子网如何工作? 2009-08-05 06:05:31 +0800 CST
  • Martin Hope
    Noah Goodrich 什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同? 2009-05-19 18:24:42 +0800 CST
  • Martin Hope
    Brent 如何确定bash变量是否为空? 2009-05-13 09:54:48 +0800 CST
  • Martin Hope
    cletus 您如何找到在 Windows 中打开文件的进程? 2009-05-01 16:47:16 +0800 CST

热门标签

linux nginx windows networking ubuntu domain-name-system amazon-web-services active-directory apache-2.4 ssh

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve