Solved

Rename My Computer through Group Policy

Posted on 2006-11-09
11
1,334 Views
Last Modified: 2008-02-01
How can I create a group policy in Active Directory to rename all of my user's "my computer" icons to reflect their machine name?

0
Comment
Question by:dpahlman
  • 4
  • 3
  • 2
  • +1
11 Comments
 
LVL 33

Expert Comment

by:NJComputerNetworks
Comment Utility
You would have to create a custom script.  You can not do this natively inside GPO's.  But you can use a GPO to write a script to do this action and use the GPO to distribute the script.
0
 

Author Comment

by:dpahlman
Comment Utility
Would I have to write an ADM template?  That seems to be the only scripting information I can find about editing the registry.  I've never done that before and was hoping maybe someone here had written one.
0
 
LVL 33

Expert Comment

by:NJComputerNetworks
Comment Utility
no, you don't have to create an ADM template, you could create a bat sript, vbs script, kix tart script... anything..    

http://isweb2.memphis.edu/umad/documents/LogonScript.htm
0
 
LVL 48

Expert Comment

by:Jay_Jay70
Comment Utility
Here is an examply of the script that you can use - happened to see it some time back and googled for it when i saw this - good old IT pro Web site!

http://www.windowsitpro.com/Article/ArticleID/47603/47603.html
0
 
LVL 48

Expert Comment

by:Jay_Jay70
Comment Utility
objFolderItem.Name = "My Computer " & strComputer

to achieve what you want change that line to this

objFolderItem.Name = "" & strComputer
0
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 
LVL 20

Accepted Solution

by:
Lazarus earned 500 total points
Comment Utility
Actualy VBS script that works:


Const sKey = "HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\"

Dim oWSS,sTemp,sGarbage
On Error Resume Next
Set oWSS = WScript.CreateObject("WScript.Shell")
sTemp = oWSS.RegRead(sKey & "LocalizedString")
If Err.Number = 0 Then
  sGarbage = oWSS.RegRead(sKey & "LocalizedStringBackup")
  If Err.Number <> 0 Then
    oWSS.RegWrite sKey & "LocalizedStringBackup", sTemp, "REG_EXPAND_SZ"
  End If
End If
oWSS.RegWrite sKey & "LocalizedString", "My Computer %COMPUTERNAME%", "REG_EXPAND_SZ"
Set oWSS = Nothing

0
 
LVL 20

Expert Comment

by:Lazarus
Comment Utility
Not to imply that Jay Jay's doesnt' he just beat me to it.. LOL
0
 
LVL 48

Expert Comment

by:Jay_Jay70
Comment Utility
*grin* always keen for other script ideas, that ones just made the vault :)
0
 

Author Comment

by:dpahlman
Comment Utility
Thanks!!  I tried both they work great!  
0
 

Author Comment

by:dpahlman
Comment Utility
This was my first post.  I didnt' realize I couldn't accept more than one, my apologies JayJay70
0
 
LVL 48

Expert Comment

by:Jay_Jay70
Comment Utility
Thats ok mate, as long as you have a solution
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

The HP utility "HP Lights-Out Online Configuration Utility for Windows Server 2003/2008" could be of great use when it comes to remotely configure a HP servers ILO WITHOUT rebooting the server. We would only need to create and run scripts using thi…
Restoring deleted objects in Active Directory has been a standard feature in Active Directory for many years, yet some admins may not know what is available.
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now