cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Jono
Champion Sweeper II
I like how LS5 shows the home folder and the logon script. I want to create a custom action on the User pages that will open the home folder in Windows explorer. Is there an Action Parameter that will allow me to do this easily? If not, what's the best way to do this?

Thanks,
Jono
2 REPLIES 2
LewisJPeters
Engaged Sweeper II
Yes!! I have been looking for this. Thank you so much
Jono
Champion Sweeper II
I found a solution.

Here's the action:
{actionpath}homeDir.vbs "{cn}"


Here's the VBS named homeDir.vbs:
If WScript.Arguments.Count = 1 Then
struser= WScript.Arguments(0)
Set objUser = GetObject("LDAP://" & struser)
strHD = objUser.Get("homeDirectory")
Set shell = wscript.CreateObject("Shell.Application")
shell.Open strHD
end if


I hope it's useful to some.

Jono