Hallo Zusammen
Besteht die Möglichkeit mit AutoIT diese zwei Felder "msTSHomeDirectory" auszufüllen?
Ich habe nichts passendes gefunden, wäre um jeden Tipp Dankbar!
Danke
Einfügen von msTSHomeDirectory?
-
mauric -
8. September 2015 um 12:26 -
Erledigt
-
-
Sieh dir mal die Au3Info im Autoit installationsverzeichnis an, wenn du damit an die Felder kommst, sollte es möglich sein
Sonst nur mit Mausklicks, was nicht ganz so schön ist. -
eine Suche nach dem Attribute msTSProfilePath brachte folgendes
https://www.faq-o-matic.net/2010/01/13/ter…utzte-neuerung/
http://blogs.msdn.com/b/alejacma/arc…-ad-vb-net.aspxzum setzen sollte die AD Funktion _AD_ModifyAttribute gehen, falls es überhaupt geht
gruß gmmg
-
http://faq-o-matic.net/2010/01/13/ter…-die-ungenutzte-neuerung/
- Aus dem Bericht:
Wer nun aber versucht, diese neuen Attribute zu nutzen, stellt fest: Steht nix drin.
Auch ein direkter Versuch klappt nicht: Ein TS-Profil beim User anlegen, dann mit
ADSI Edit nachsehen: msTSProfilePath ist leer. -
Soweit ich weiss werden diese Infos in BLOBs im A gespeichert. Im engl. Forum wurde das schon diskutiert, wie man auf diese Attribute zugreift.
-
Hallo Mauri!
BashGet-ADUser Mauri | ForEach-Object { $User = [ADSI]"LDAP://$($_.DistinguishedName)" $User.psbase.invokeset("TerminalServicesProfilePath","\\Server\Share\HomeDir\Mauri") $User.psbase.invokeset("TerminalServicesHomeDrive","H:") $User.psbase.invokeset("TerminalServicesHomeDirectory","\\Server\Share\Mauri") $User.setinfo() }
Danke
Mauri