RE: Redirect default folder for Windows Explorer



You shouldn't have to reboot because it is a user instead. Logon and logoff
should get it to work.

"Gaara" wrote:

Hi lforbes

I've added this script to my logon script to but i have to do a reboot for
the redirection to take affect... Do u know how can i fix it....? (i chose
not to apply it via gpo)

"lforbes" wrote:

Hi,

You are far better off to redirect the My Documents than remove it.

It is easy.

It is set on the Users OU under Windows Setting - Folder Redirection. Right
Click My Documents and redirect.

I also have it redirected in the users profile. I have a vbscript logon
script that redirects it in the users profile. Beware this tatoos it.
However, Folder Redirection relies heavily on DNS and sometimes it doesn't
always work so I have the profile as well.

<start VBscript>

Dim Path
Path =
"HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User
Shell Folders\"
set ws = WScript.CreateObject("WScript.Shell")
o=ws.RegWrite(Path & "Personal", "H:\", "REG_EXPAND_SZ")
v=ws.RegRead(Path & "Personal")
Set WSHShell = nothing

Path =
"HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell
Folders\"
set ws = WScript.CreateObject("WScript.Shell")
o=ws.RegWrite(Path & "Personal", "H:\", "REG_EXPAND_SZ")
v=ws.RegRead(Path & "Personal")
Set WSHShell = nothing

<end VBscript>

Cheers,
Lara

"Dave" wrote:

I have implemented Policies to remove users access to My Documents, etc. They
only see network drives and their own home drive. For some users this causes
an error message every time they open Windows Explorer as it is trying to
access My Documents and therefore returns the error "This operation has been
cancelled..etc, etc". Rather than this I would like to default Windows
explorer to start by looking at their 'H' drive instead. Can I do this
through Group Policy? I have looked but can't find how.

Thanks

Dave

.



Relevant Pages

  • Re: Run Script After Next Reboot (Not Next Login)
    ... > I'd like to write a script that schedules a program to run on the ... > first logon after the next reboot. ... > logon, even if the system has not rebooted. ... > Scheduler don't seem to give this option. ...
    (microsoft.public.scripting.wsh)
  • Re: Stoping a page from being a "Favorites"
    ... The script takes you to the page. ... from making the page a favorite...hence avoiding the logon page (and yes I ... > else redirect them back to the home page. ... >> It does stop someone from grabbing it from their favorites and I can ...
    (microsoft.public.frontpage.client)
  • Reboot XP via Logon Script
    ... I have a requirement to to reboot an xp machine via logon after the script has done what it needs to do. ... As the script deals with things such as offline folder syncs and such, the reboot needs to run before the shell starts, so it is not an option to schedule it or put the reboot in the startup folder. ...
    (microsoft.public.windowsxp.help_and_support)
  • Reboot XP via Logon Script
    ... I have a requirement to to reboot an xp machine via logon after the script has done what it needs to do. ... As the script deals with things such as offline folder syncs and such, the reboot needs to run before the shell starts, so it is not an option to schedule it or put the reboot in the startup folder. ...
    (microsoft.public.windows.server.scripting)
  • Rebooting Windows XP via Logon Script
    ... I have a requirement to to reboot an xp machine via logon after the script has done what it needs to do. ... As the script deals with things such as offline folder syncs and such, the reboot needs to run before the shell starts, so it is not an option to schedule it or put the reboot in the startup folder. ...
    (microsoft.public.windowsxp.general)