logoff script losing permissions to share

M

Mike Brearley

I'm setting up a vb script that run at logoff (using local group policy
settings). The vbs script launches a command line xcopy routine that copies
files from the users laptop to thier home directory on a Windows 2000 file
server using \\servername\username$\Documents.

If I run the script while logged in, it runs fine. When it runs during the
logoff script process, it doesn't copy anything.

Any ideas?

--
Posted 'as is'. If there are any spelling and/or grammar mistakes, they
were a direct result of my fingers and brain not being synchronized or my
lack of caffeine.

Mike Brearley
 
M

Mike

logoff scripts are processed after authentication tickets are closed.

have you considered using offline files instead?
 
M

Mike Brearley

The thing is... if I use a cmd file it works fine. It's only after I
switched to using a vbs file that launches a command line that it hasn't
been working. I would like to stick with the vbscript purely for the
flexability.

Offline files are not an option. There's too many things they don't handle
properly.
 
T

Torgeir Bakken \(MVP\)

Mike said:
The thing is... if I use a cmd file it works fine. It's only
after I switched to using a vbs file that launches a command line
that it hasn't been working. I would like to stick with the
vbscript purely for the flexability.
Hi,

If you use the Run method to launch the command line, be sure to set
the third parameter to True to let the script wait for the command to
finish:

objShell.Run "xcopy.exe something", 0, True

(the 0 value for the second parameter will hide the console window)


WSH 5.6 documentation (local help file) can be downloaded
from here if you haven't got it already:
http://msdn.microsoft.com/downloads/list/webdev.asp
 
M

Mike Brearley

Torgeir Bakken (MVP) said:
Hi,

If you use the Run method to launch the command line, be sure to set
the third parameter to True to let the script wait for the command to
finish:

objShell.Run "xcopy.exe something", 0, True

(the 0 value for the second parameter will hide the console window)


WSH 5.6 documentation (local help file) can be downloaded
from here if you haven't got it already:
http://msdn.microsoft.com/downloads/list/webdev.asp
Thanks... that worked. I changed the 0 to a 1 though so that it would show
the what was going on.

--
Posted 'as is'. If there are any spelling and/or grammar mistakes, they
were a direct result of my fingers and brain not being synchronized or my
lack of caffeine.

Mike Brearley
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top