Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Set User = GetObject("WinNT://Domain/" & username & ",user") User.HomeDirectory = "\\server\homeshare" User.SetInfo
$User=Win32::OLE-> GetObject("WinNT://wsi/$username", "user"); #Reports error - not allowed $User->HomeDirectory="\\server\homeshare" +; #Doesn't Work $update=$User->HomeDirectory("\\server\homeshare"); $set=$update->SetInfo;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Update HomeDirectory Using Win32::Ole
by ikegami (Patriarch) on Jun 07, 2005 at 01:01 UTC | |
by bart (Canon) on Jun 07, 2005 at 05:16 UTC | |
|
Re: Update HomeDirectory Using Win32::Ole
by johnnywang (Priest) on Jun 07, 2005 at 06:11 UTC | |
|
Re: Update HomeDirectory Using Win32::Ole
by DaWolf (Curate) on Jun 07, 2005 at 09:06 UTC | |
|
Re: Update HomeDirectory Using Win32::Ole
by Anonymous Monk on Jun 07, 2005 at 16:38 UTC |