More information can be found at bottom of this post on old blog be aware that the wrapper has changed a bit as this in a beta version, you need to add PsObject before the invoke :
You can see this is stored in a DirectoryString named userParameters that is not really readable , but again there are special Methods here for setting this in the ADSI COM object you can Use with the invoke function , for a Complete list look here on MSDN : IADsTSUserEx Property MethodsIADsTSUserEx Property Methods
http://mow001.blogspot.com/2006/07/powershell-and-active-directory-part-3.html
"John Yarborough" wrote:
[Quoted Text] > I've been looking at using PowerShell to help me manage my users in Active > Directory and so far I like everything that I am seeing. I have ran into an > issue though where I can not figure out how to access the users' Terminal > Services attributes. > > > > Here is the command I am using to get the user information from Active > Directory: > > > > > Code Snippet > Get-WMIObject -class ds_user -namespace root\directory\ldap -computername . > | Select-Object DS_SAMAccountName > > > > > > > If I pipe it to Get-Member instead of Select-Object, I see a property called > ds_terminalServer but I don't know how to access it (if that is even an > option). I am new to PowerShell so I may just be missing something simple or > I may be on the completely incorrect path. > > > > What I would like to see is when I do a Select-Object, to have a column for > the TS Profile Path, one for the TS Home Path, and then one for the TS Home > Drive Letter. > > > > Thanks in advance for any advice. > > > > John > >
|