Solved

Rename My Computer through Group Policy

Posted on 2006-11-09
11
1,373 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
ID: 17908981
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
ID: 17909134
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
ID: 17909198
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
Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

 
LVL 48

Expert Comment

by:Jay_Jay70
ID: 17909727
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
ID: 17909736
objFolderItem.Name = "My Computer " & strComputer

to achieve what you want change that line to this

objFolderItem.Name = "" & strComputer
0
 
LVL 20

Accepted Solution

by:
Lazarus earned 500 total points
ID: 17909750
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
ID: 17909776
Not to imply that Jay Jay's doesnt' he just beat me to it.. LOL
0
 
LVL 48

Expert Comment

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

Author Comment

by:dpahlman
ID: 17911432
Thanks!!  I tried both they work great!  
0
 

Author Comment

by:dpahlman
ID: 17911442
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
ID: 17912048
Thats ok mate, as long as you have a solution
0

Featured Post

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Numerous times I have been asked this questions that what is it that makes my machine log on so slow, there have been cases where computers took 23 minute exactly after taking password and getting to the desktop. Interesting thing was the fact th…
ADCs have gained traction within the last decade, largely due to increased demand for legacy load balancing appliances to handle more advanced application delivery requirements and improve application performance.
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

820 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