Quantcast
Channel: PowerShell.org » All Posts
Viewing all articles
Browse latest Browse all 13067

Reply To: Quick question regarding Terminal Services Home Folders

$
0
0

Hi,

i did this with ADSI

$ou = [adsi]“$($OU)”
$user = $ou.psbase.get_children().find($DN)

$user.psbase.invokeSet(“allowLogon”,1)
$user.psbase.invokeSet(“TerminalServicesHomeDirectory”,”$($HomeDirPathValue)”)
$user.psbase.invokeSet(“TerminalServicesProfilePath”,”$($ProfileDirPathValue)”)
$user.psbase.invokeSet(“TerminalServicesHomeDrive”,$HomeDriveValue)
$user.setinfo()


Viewing all articles
Browse latest Browse all 13067

Trending Articles