Save it as .vbs and just run it by either double clicking it or typing
its name at a command prompt. If you're using Outlook then it's possible
that it will have removed all the line breaks - "extra line breaks in
this message were removed" will appear at the top - tell it to put the
line breaks back and you should be OK.

It could be run as a machine startup script using group policy but I
think some of the other ideas are better - I suspect that some people
have such cluttered desktops that they won't find the correct icon (and
you can't say "look for the my computer icon" because it's no longer
there!!

Steve 

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Cothern Jeff D.
Team EITC
Sent: 15 February 2005 03:37
To: [email protected]
Subject: RE: [ActiveDir] Display Computer Name on Desktop

I don't know a lot about scripting or vbs.  But can I take the below
Lines of text starting at CONST and paste that into a notepad and save
it as .vbs does that work or do I need to use some vbs program?




-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Devan Pala
Sent: Friday, February 11, 2005 2:02 PM
To: [email protected]
Subject: RE: [ActiveDir] Display Computer Name on Desktop

The code would help right.....8-)

Const MY_COMPUTER = &H11&
Set objNetwork = CreateObject("Wscript.Network")
objComputerName = objNetwork.ComputerName
Set objShell = CreateObject("Shell.Application")
Set objFolder = objShell.Namespace(MY_COMPUTER)
Set objFolderItem = objFolder.Self
objFolderItem.Name = objComputerName


----Original Message Follows----
From: "Salandra, Justin A." <[EMAIL PROTECTED]>
Reply-To: [email protected]
To: <[email protected]>
CC: <[EMAIL PROTECTED]>
Subject: [ActiveDir] Display Computer Name on Desktop
Date: Fri, 11 Feb 2005 13:41:15 -0500

I have a question, is there a way to display the computer name on the
desktop either through a login script or via GPO?

Justin A. Salandra
MCSE Windows 2000 & 2003
Network and Technology Services Manager
Catholic Healthcare System
212.752.7300 - office
917.455.0110 - cell
[EMAIL PROTECTED]



List info   : http://www.activedir.org/List.aspx
List FAQ    : http://www.activedir.org/ListFAQ.aspx
List archive:
http://www.mail-archive.com/activedir%40mail.activedir.org/
List info   : http://www.activedir.org/List.aspx
List FAQ    : http://www.activedir.org/ListFAQ.aspx
List archive: http://www.mail-archive.com/activedir%40mail.activedir.org/

Reply via email to