Posts

Showing posts from March, 2009

Terminal Server Profile Path Woes

During a migration process I came accross this odd problem. I could not change a Terminal Server Profile Path for a couple of hundred users. I searched the microsoft site but I could not find anything that would help me quick. Yes I did find this link http://technet.microsoft.com/en-us/library/cc783578.aspx But my client did not have grouppolicies in place and I did not want to use the "Terminal Services Extension" I found several partly usefull scripts I combined the best of them in the script below. I really hope you will find this usefull. '****************************************************************************** Const ADS_SCOPE_SUBTREE = 2 Const ForAppending = 8 On Error Resume Next Set objFSO = CreateObject("Scripting.FileSystemObject") Set objTextFile = objFSO.OpenTextFile ("c:\myusers.txt", ForAppending, True) Set objConnection = CreateObject("ADODB.Connection") Set objCommand = CreateObject("ADODB.Command") objConnect