Solved

Rename My Computer through Group Policy

Posted on 2006-11-09
11
1,354 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
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 
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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Recently, I had the need to build a standalone system to run a point-of-sale system. I’m running this on a low-voltage Atom processor, so I wanted a light-weight operating system, but still needed Windows. I chose to use Microsoft Windows Server 200…
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.
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

831 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