Vb.net DirectoryServices.AccountManagement用户配置文件路径

Vb.net DirectoryServices.AccountManagement用户配置文件路径,vb.net,Vb.net,我正在尝试使用VB.NETDirectoryServices.AccountManagement在Active Directory中添加用户配置文件路径信息,但似乎无法做到这一点。我可以添加我需要的所有其他字段,包括与概要文件路径位于同一选项卡中的登录脚本 我一直在看,但我看不到任何与配置文件路径相关的内容 相关代码: Dim ctx As New PrincipalContext(ContextType.Domain, "sometext", "OU=Domain Objects,DC

我正在尝试使用VB.NET
DirectoryServices.AccountManagement
在Active Directory中添加用户配置文件路径信息,但似乎无法做到这一点。我可以添加我需要的所有其他字段,包括与概要文件路径位于同一选项卡中的登录脚本

我一直在看,但我看不到任何与配置文件路径相关的内容

相关代码:

    Dim ctx As New PrincipalContext(ContextType.Domain, "sometext", "OU=Domain Objects,DC=sometext,DC=local")

    Dim user As New UserPrincipal(ctx, "NewUser", "pass@1w0rd01", True)

    user.GivenName = "GivenName"
    user.Surname = "Surname"
    user.HomeDirectory = "\\MyHomeDirectory\"
    user.HomeDrive = "Z:"

    user.ExpirePasswordNow()

    user.Save()