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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

GPO for a network share icon on desktop...

Status
Not open for further replies.

peteygnyc

IS-IT--Management
May 25, 2005
30
US
My problem is that I need to place a shared network drive folder on everyone's (all domain users) desktop. I need this by 11am tomorrow. HELP! I am desperate.
This drive share can be administered through AD from what I understand. Will a login script do this? Or, do I need a GPO for it? If a login script will work, what should it look like? (I have never done scripting before).

The path to the share will be \\MD-server\shared
Please tell me how to make this policy.
Any help is greatly appreciated!!!
Thanks!
-Pete
 
Problem has to be with the way you applied permissions to the GPO.

Just to verify:

1. You created a new GPO at the domain level?
2. You edited the permissions and put APPLY to Authenicated Users?
3. You added Administrator with DENY?
4. The machine you are testing on is at least Windows 2000?
5. You updated policies on the machine before testing?
To update polices:
Windows 2000 run two command from a command prompt:
secedit /refreshpolicy machine_policy /enforce
secedit /refreshpolicy user_policy /enforce


Windows XP it is one command:
gpupdate /force
6. Make sure you actually linked the policy and did not just create it.


I hope you find this post helpful.

Regards,

Mark
 
the scripts work fine mark at last i have a little bit of time to test them out and they are good and fun scripts..wife went barmythis morning when her cdrom drives open and her machine said good morning to her thanks!!!

"Ask not what your computer network can do for you - ask what you can do to the computer network to give you a quiet moment ."

 
Hi there, great discussion btw -
I am implementing this today hopefully but hoped your expertise could assist with a couple of issues.

When I run the Group Policy Results it shows that domain users have Default Domain Controllers Policy & Default Domain Policy being applied, but local policy being denied. How can I deny the Default Domain Controllers Policy for domain users but the Default Domain Policy & your excellent script instead?

Secondly, in my current BAT login script I have a JPG file copied from SERVER\NETLOGON to C:\Temp\file.jpg and then applied as desktop wallpaper. On many of our XP desktops this only loads the top 1/4 of the desktop image until I hit F5 a few times. Is tehre a way to add this image copy to the VBS file?

Thanx for your time on this, it is appreciated -
G
 
coment to your second query...i had this problem and i found the best way to solve it was to add the image to all clients c: drives

"Ask not what your computer network can do for you - ask what you can do to the computer network to give you a quiet moment ."

 
Mark,
Are those two commands the same on a Windows 2003 box?
-Pete
 
Hi again,
The image is already copied to local drives of XP machine. A GP is then applied to domain users that configures this image as desktop wallpaper ie;C:\MyImage.jpg. It only works if I hit F5 to refresh desktop!! Strange.
Whilst I am here is it possible to run an exe file through Marks VBS script above? I have an audit programme that runs from another LAN 2000 server but dont know how to call it without a BAT file?
\\server2000\audit.exe

Cheers
 
Wow, lots of posts to answer today.

schtek My wife freaked out too when I had her PC say good morning to her also.

gstarr1703 You can have the image copy as part of the script though I don't like doing that as it will slow down login and that partially defeats the idea of using vbscript as it is faster and more powerful than BAT files. Are you changing this file frequently that you want to copy it over and over? The below code will execute the copy for you. Note you can simply replace the commands with your inventory program as well.

Code:
[green]'remove the If and end If lines if you want the script to always copy, leave to ignore if file exists[/green]
If Not oFSO.FileExists("\\" & strComputer & "\c$\Temp\file.jpg") Then 
Call WSHShell.Run("cmd.exe /C copy C:\file.jpg \\" & strComputer & "\c$\Temp\file.jpg")
End If
wscript.sleep 200

Your problem sounds to me like it is actually related to the size of the jpg, what is the resolution of the image. Only needs to be 72 DPI for most monitors.

peteygnyc On Windows 2003 you would execute the gpupdate /force just like on XP.


I hope you find this post helpful.

Regards,

Mark
 
Nice one Mark, I see you are very busy on here -

This image only needs copying across to local C Drive once. When there it is simple applied to desktop by GP so I have reduced image size from 89kb to 29kb...hope that resolves!

As for the audit exe I have input this into the GPO also in "Run these programmes on start", which seems to work OK for now.

Lastly is there a good guide to VBS for a beginner that you know of? I have seen 100s on the web but sorting the good from the bad is tricky as i dont actually know what Im doing!!!

Thanx again
G
 
I would have to say that is a good place to start. Get a copy of the vbscript documentation and start with that. The script repository is also a good place to start as it is full of many examples.

I hope you find this post helpful.

Regards,

Mark
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top