Solved

Rename My Computer through Group Policy

Posted on 2006-11-09
11
1,344 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
 
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
Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

 
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

Suggested Solutions

Title # Comments Views Activity
Psexec - a script to use Psexec to copy a folder from one server to multiple PC's? 7 90
GPO Access denied in AD 12 39
Bizarre hard disk problem 15 107
AD Replications issues 12 86
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…
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.
Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
Both in life and business – not all partnerships are created equal. As the demand for cloud services increases, so do the number of self-proclaimed cloud partners. Asking the right questions up front in the partnership, will enable both parties …

911 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

21 Experts available now in Live!

Get 1:1 Help Now