|
I am using this to distribute a screensaver also (machine startup vbs script).
I am having a problem however. I think I know what it is, but I am not sure how to fix it.
I have the screensaver sitting in the NETLOGON folder of my DC, and I am trying to copy from that location to the users’ “%systemroot%\System32\”, but it doesn’t copy the file.
If I run the script manually (note, I am member of Domain Admin group) the file copies over, but it doesn’t copy during startup. Does the SYSTEM user have read rights to the NETLOGON folder? If not, and I place the file in the policy’s folder along with the .vbs (which is already there I should note), is there an environment variable that referrs to this location or an easy way to specify this location for the file copy? For instance, If I do not specify a location, does the script first check the directory it is located?
Here is the subroutine in my vbs:
'============================================================================= ' CheckScrSaver '============================================================================= public sub CheckScrSaver()
' On Error Resume Next
Dim strFile, strSrc, strDst strFile = "NBHSecuritySCR.scr" strSrc = strDC & "\NETLOGON\" & strFile strDst = strSysRoot & "\System32\"
If fso.FileExists (strDst & strFile) then 'Proceed else fso.CopyFile strSrc, strDst, true end if
end sub
Thank you, -----Original Message-----
MSI has the advantage of a) not running on every boot b) fixing anything that gets deleted, corrupted, etc. I'd spend the extra 5 minutes and make the MSI, personally.
--Brian
|
- [ActiveDir] GPO to copy a file to all machines Craig Gauss
- RE: [ActiveDir] GPO to copy a file to all machines joe
- RE: [ActiveDir] GPO to copy a file to all machines Robert Rutherford
- RE: [ActiveDir] GPO to copy a file to all machines Craig Gauss
- RE: [ActiveDir] GPO to copy a file to all machines Darren Mar-Elia
- RE: [ActiveDir] GPO to copy a file to all machines Craig Gauss
- RE: [ActiveDir] GPO to copy a file to all machines Depp, Dennis M.
- RE: [ActiveDir] GPO to copy a file to all machines Robert Rutherford
- RE: [ActiveDir] GPO to copy a file to all machines Brian Desmond
- RE: [ActiveDir] GPO to copy a file to all machines DL.ActiveDirectory
- RE: [ActiveDir] GPO to copy a file to all machines Darren Mar-Elia
- RE: [ActiveDir] GPO to copy a file to all machines DL.ActiveDirectory
- Re: [ActiveDir] GPO to copy a file to all mach... Brent Westmoreland
- RE: [ActiveDir] GPO to copy a file to all machines Darren Mar-Elia
- RE: [ActiveDir] GPO to copy a file to all machines DL.ActiveDirectory
