![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
|
Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
br> br> |
| |||||||
![]() |
| | Thread Tools | Display Modes |
| | #1 (permalink) |
| Guest | Ad and TerminalServicesProfilePath Hi I have problemes with reading a AD property on a user: This is my script: $objUser = [ADSI]"LDAP://cca1dc0003:389/cn=petter,OU=Terminal Server,OU=Server Accounts Test,dc=cca1,dc=root4,dc=pri" $objUser.get("TerminalServicesProfilePath") If I run this I get a error saying: the directory property cannot be found in the local chache. But When I create this VB script everything is working perfect: Set objUser = GetObject("LDAP://cca1dc0003:389/cn=petter,OU=Terminal Server,OU=Server Accounts Test,dc=cca1,dc=root4,dc=pri") WScript.Echo "User Principal Name: " & objUser.TerminalServicesProfilePath Can someone see a error in my powerscript file? |
My System Specs![]() |
| | #2 (permalink) |
| Guest | Re: Ad and TerminalServicesProfilePath On Tue, 9 Jan 2007 01:29:00 -0800, Petter Huseby <Petter Huseby@discussions.microsoft.com> wrote: >Hi > >I have problemes with reading a AD property on a user: This is my script: > >$objUser = [ADSI]"LDAP://cca1dc0003:389/cn=petter,OU=Terminal >Server,OU=Server Accounts Test,dc=cca1,dc=root4,dc=pri" >$objUser.get("TerminalServicesProfilePath") The property TerminalServicesProfilePath does not exist within the DirectoryEntry.Properties. Try this: $objUser.psbase.InvokeGet("terminalservicesprofilepath") Reinhard |
My System Specs![]() |