Ok I tried copy and paste of the code there to notepad and saved it as a
.vbs  tried to run it and got an end statement error.  I am totally lost
when it comes to scripting really so are there returns or other type of
formatting that needs to be added?



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

Ok, I tested this script in VBS and it changes the My Computer Icon to
the computer name.

Now should I run this during a startup script or a login script?

-----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/


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/

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