Jump to content

Recommended Posts

Posted

Just a quick one, I have redirected desktop for all staff users, but when I have installed Adobe X using my accound ( I have admin rights ) its put the Icon on the desktop so now even though staff have redirected desktop the icon comes up, other then going round each pc, which I dont want to do, how can I sort this?

 

 

Thanks

Posted

Probably the easiest is to make a little bat file to erase all files from the allusers desktop directory and run it on logon ...

This is probably where the icon resides. Make sure theres nothing in there that you want to keep of course .... Mine are empty as like yourself I control the desktops using redirection ...

 

Cheers

Posted

You can also make a change in Group Policy to get rid of anything on the public desktop, but it also hides the public start menu as well. If your staff are using the start menu on the machine (as opposed to a fully re-directed start menu) then it's probably best to leave it alone.

 

If you want to change it, or just test it, go to User Config->Admin Templates->Start Menu and Taskbar->Enable the setting "Remove Common Program Groups From Start Menu".

Posted
Probably the easiest is to make a little bat file to erase all files from the allusers desktop directory and run it on logon ...

This is probably where the icon resides. Make sure theres nothing in there that you want to keep of course .... Mine are empty as like yourself I control the desktops using redirection ...

 

Cheers

 

Thanks for the info. What I would have to put in the BAT file to get rid of this?

Posted
You can also make a change in Group Policy to get rid of anything on the public desktop, but it also hides the public start menu as well. If your staff are using the start menu on the machine (as opposed to a fully re-directed start menu) then it's probably best to leave it alone.

 

If you want to change it, or just test it, go to User Config->Admin Templates->Start Menu and Taskbar->Enable the setting "Remove Common Program Groups From Start Menu".

 

Staff Startmenu isn't redirected so as said probably best to leave it alone.

Posted
Thanks for the info. What I would have to put in the BAT file to get rid of this?

 

Something like...

 

Del c:\users\public\desktop\*.*

 

would do it nice and easily. That's just a simple dos command that deletes everything on the public desktop.

Posted

I have just tried to delete a shortcut using the folling

 

 

 

 

Del "C:\Users\Public\Desktop\SuccessMaker Enterprise" /s

 

end

 

But doesnt work

Posted
The way I do it here is to have the bat file in the netlogon share of the domain controller, and added a line into the login script to call the bat file every time someone logs in. Do you know how to edit your logon script to put it in?
Posted

Okay, my VBS knowledge is old and rusty, so I'd test this on a test account first if you have one, but I think you need to add something like this to your logon script...

 

Set oShell = CreateObject("Wscript.Shell") 

'Your .Reg file and path goes here as in the example below

sRegFile = "\\servername\netlogon\MyFile.Reg" 

'This line runs Regedit in silent mode

oShell.Run "regedit.exe /s " & Chr(34) & sRegFile & Chr(34), 0, True

Posted
I thought about that, but I believe you can only use GP Preferences to delete specific files. With a batch script designed to delete anything on the public desktop, you don't have to worry about adding new GP Preferences every time some new installation adds another shortcut to the desktop.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...