#new-object system.directoryservices.directoryEntry("LDAP://e02/CN=dr Holger Schwichtenberg,OU=Gf,DC=IT-Visions,DC=local", "hp", "xxx") | get-member *guid*
#new-object system.directoryservices.directoryEntry("LDAP://e02/CN=dr Holger Schwichtenberg,OU=Gf,DC=IT-Visions,DC=local") | get-member
#new-object system.directoryservices.directoryEntry("LDAP://e02/CN=dr Holger Schwichtenberg,OU=Gf,DC=IT-Visions,DC=local") 

$o = new-object system.directoryservices.directoryEntry("LDAP://xfilesserver/CN=Fox Mulder,OU=Agents,DC=FBI,DC=net")

$taknie = [system.directoryservices.directoryEntry]::Exists("LDAP://LDAP://xfilesserver/CN=Fox Mulder,OU=Agents,DC=FBI,DC=net")

"Nazwisko: "+ $o.sn
"Miasto: " + $o.l
"Telefon: " +$o.Telephonenumber
"Inne numery: " +$o.OtherTelephone
"Klasa: " + $o.get_SchemaClassName
"GUID: " + $o.get_GUID()

$o.set_UsePropertyCache($false)

$o.Telephonenumber = "+49 201 7490700"
$o.OtherTelephone = "+01 111 222222","+01 111 333333","+49 111 44444"
$o.CommitChanges()

#$o.get_NativeObject().adspath

