Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Copying files to "fonts" special folders

Status
Not open for further replies.
Aug 14, 2003
94
US
Hi All,

Need a vbscript that can copy files to "fonts" special folder in Windows XP.

I created a script but it will only add the file when i log in as admin not the user.

Help?!!!

Here's the script i have.

Const OverwriteExisting = TRUE

Set objFSO = CreateObject("Scripting.FileSystemObject")
objFSO.CopyFile "\\Server\folder\file.ttf Barcode.TTF" , "C:\WINDOWS\Fonts\", OverwriteExisting

 
does the user have rights to the destination folder?
 
not really sure how startup scripts work in Windows.
is it possible to have a script run under the system service account? is it possible to have a service which runs as a system account start this script for you?
how do you normally install software which requires elevated permissions? something like SMS?
perhaps you can package this change up as an MSI install, i heard that MSI can install with elevated priv..
 
can you run domain policies, or are they GPO's with elevated priv? i would hope so...
 
Yes i can run domain policies.The highest level startup script.

Weird that it doesn't take effect with the fonts folder.

I have the same script with a folder in program files and i have no problem. Same permissions on folder as well.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top