MSFN Forum: Send files to all domain computers? - MSFN Forum

Jump to content



Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Send files to all domain computers? Rate Topic: -----

#1 User is offline   alias747 

  • Group: Members
  • Posts: 4
  • Joined: 31-May 07

  Posted 31 May 2007 - 07:46 AM

Basically my company is looking to set a company screensaver and background for everyone through group policy and make it so they can't change it. What I need help with now is getting the company background and screensaver files out to everyones computer so that it will be able to to set those in group policy. Is there is a way to push out these two files to say the windows/system32 folder on ALL of the computers on our domain? That way we can can specify the target file to those files in the group policy when we set it? I hope this makes sense, ask any questions you need to. Thanks I appreciate it alot!


#2 User is offline   jondercik 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 445
  • Joined: 15-January 04

Posted 31 May 2007 - 09:22 AM

Yes, you can use vbscript to crawl through your domain and copy the file to the correct location. Or, cant you set the screensaver to use a file located on a network share?

Jim

#3 User is offline   alias747 

  • Group: Members
  • Posts: 4
  • Joined: 31-May 07

Posted 31 May 2007 - 09:31 AM

OK those are some good ideas. However, with the network share idea, we have quite a few lapotps that aren't always connected to the domain, so they wouldn't be able to load the screensaver/background if they weren't connected. That kind of presents a problem. Do you know where I could find like a template for that vbscript or maybe a batch file, i have been searching.

#4 User is offline   IcemanND 

  • MSFN Junkie
  • Group: Super Moderator
  • Posts: 3,249
  • Joined: 24-September 03
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 31 May 2007 - 11:34 AM

have a startup script check for the files on the local machine and if not there copy them from the network share to the local machine. Then use the GPO to set the display settings to those files. That way even the laptops that are not always on the domain will get them the next time they are in the office and connect to the domain. If you wanted to know who got the files you could also have it logg the computer name to a text file on the share.

#5 User is offline   alias747 

  • Group: Members
  • Posts: 4
  • Joined: 31-May 07

Posted 31 May 2007 - 02:26 PM

Iceman, would you happen to have a template to help me create this startup script? I have never written one and I don't really know where to begin.I have been searching around and i cant find all that much information about it.

#6 User is offline   IcemanND 

  • MSFN Junkie
  • Group: Super Moderator
  • Posts: 3,249
  • Joined: 24-September 03
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 31 May 2007 - 07:48 PM

startup.cmd:
 
Const OverwriteExisting = TRUE

Set objFSO = CreateObject("Scripting.FileSystemObject")

if not objFSO.FileExists(getENV("%SYSTEMROOT%") & "\system32\myscreenssaver.scr") then
	objFSO.CopyFile "\\myfiles.mydomain.com\screensaver\*.*", getENV("%SYSTEMROOT%") & "\system32\",  OverwriteExisting
end if
set objFSO=nothing
wscript.quit

Function getENV(ENV)
  On Error Resume Next
  Dim objWSS
  Set objWSS = CreateObject("WScript.Shell")
  getENV = objWSS.ExpandEnvironmentStrings(ENV)

  Set objWSS = Nothing
End Function 


#7 User is offline   alias747 

  • Group: Members
  • Posts: 4
  • Joined: 31-May 07

Posted 01 June 2007 - 02:47 PM

Thanks iceman! You rule dude! That cmd should be all i need i think.

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy