Group policy - Communications folder

G

Guest

Is there a way to remove the communications folder under
Accessories menu? I am using group policy (Windows 2000
domain) to 'secure' XP desktops. I can't find a way to remove
the communications folder (or simply remove hyperterminal
and remote desktop connection) either from group policy
or local group policy. Any ideas? Thanks in advance.
B
 
T

Torgeir Bakken \(MVP\)

Boman said:
Is there a way to remove the communications folder under
Accessories menu? I am using group policy (Windows 2000
domain) to 'secure' XP desktops. I can't find a way to remove
the communications folder (or simply remove hyperterminal
and remote desktop connection) either from group policy
or local group policy. Any ideas? Thanks in advance.
B
Hi

You could do it in a computer startup script (with a GPO, using
VBScript/JScript or batch file) that runs as part of the boot up
process (before the user logs in).

This batch script command will delete the folder:

rd /s /q "%ALLUSERSPROFILE%\Start Menu\Programs\Accessories\Communications"


assuming that the ALLUSERSPROFILE environment variable is available
for a computer startup script (I would think it is).


If not, here is a VBScript that will work regardless:

'--------------------8<----------------------
Set oShell = CreateObject("WScript.Shell")

sAllUsersProgDir = oShell.RegRead("HKLM\SOFTWARE\Microsoft\Windows" _
& "\CurrentVersion\Explorer\Shell Folders\Common Programs")

sCommDir = sAllUsersProgDir & "\Accessories\Communications"

sCmd = "%comspec% /c rd /s /q """ & sCommDir & """"
oShell.Run sCmd, 0, True
'--------------------8<----------------------


WSH 5.6 documentation (local help file) can be downloaded
from here if you haven't got it already:
http://msdn.microsoft.com/downloads/list/webdev.asp
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top