detect roaming profile
How do I determine if a user profile is roaming (programaticallly)? Is there any flag in registry, or is it an AD property?
December 16th, 2009 8:11pm

Hi,check this out,it might helphttp://stackoverflow.com/questions/1200173/how-to-check-if-the-currently-logged-on-user-is-using-roaming-profile
Free Windows Admin Tool Kit Click here and download it now
December 16th, 2009 8:57pm

Hi,check this out,it might helphttp://stackoverflow.com/questions/1200173/how-to-check-if-the-currently-logged-on-user-is-using-roaming-profile I had a quick go atconverting that toVB.NET and came up with the following (note that Ihavent tested this on a roaming profile but it reports the correct profile type for me when I use a local profile and returns True which indicates it has been successful) :EDIT: Just tested this on a computer using roaming profiles and it worked perfectly :) Const PT_LOCAL As UInteger = 0 Const PT_TEMPORARY As UInteger = 1 Const PT_ROAMING As UInteger = 2 Const PT_MANDATORY As UInteger = 4 <System.Runtime.InteropServices.DllImportAttribute("Userenv.dll", EntryPoint:="GetProfileType")> _ Public Shared Function GetProfileType(ByRef pdwflags As UInteger) As Boolean End Function 'Then in a method you could call it like this for example: Dim ProfileType As UInteger GetProfileType(ProfileType) If ProfileType = PT_ROAMING Then MessageBox.Show("Using roaming profile") End If Hope that helps.Chris My blog: http://cjwdev.wordpress.com
December 16th, 2009 11:05pm

Hi There,There are different ways to determine , but when you say " (programaticallly)" what are you referring to a) APIb) Script For script please follow chirs suggestion
Free Windows Admin Tool Kit Click here and download it now
December 17th, 2009 4:08am

Hi ,Just want to check back with you regarding the post . If you have a chance to go through the suggestions ? and if you have any further questions please post it back.
December 21st, 2009 8:36am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics