I can run this powershell to set the term svc path, if I’m on the domain controller, but I need to be able to run
this from a machine that’s a member of a different domain (it’s part of a student domain user creation app run on the staff domain)
cls import-module ActiveDirectory $user = [ ADSI ] "LDAP://CN=aaaddd.aaaddd,OU=Alaska Users,OU=Alaska,OU=XXXXX,DC=XXX,DC=XXXX,DC=org"; $user.psbase.Invokeset( "terminalservicesprofilepath", "\\ad\rds\ProfileAlaska\abab.ababf" ); $user.setinfo(); $user $user.psbase.InvokeGet( "terminalservicesprofilepath" );
I know I wrote a script years ago that could update account names from off the domain, but I can’t find it or figure out how
I did it last time…
The powershell script will be being called from within a webApp that does the rest of character creations.
I’m an old coder, but a noob at powershell. So please feel free to include any links you think I should read to get necessary background info to understand your answer.