Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Remote Change SRV Comment with Powershell

Posted on 2013-01-02
2
Medium Priority
?
873 Views
Last Modified: 2013-01-07
I would like to be able to change the SRV Comment(Computer Description) on remote computers (Win7 AND XP) using powershell. I have built several scripts, but either it only works locally OR I need to install a plug-in(PSRemoteRegistry) that is only effective againt Windows 7 Machines.
Can anyone help me with the best course of action for this?
Here are some links I have been using to reference:

http://www.computerperformance.co.uk/powershell/powershell-change-computer-description-registry.htm#PowerShell_Task_2:_To_View_Computer_Descriptions_on_Network

http://blogs.technet.com/b/heyscriptingguy/archive/2012/03/16/use-powershell-to-edit-the-registry-on-remote-computers.aspx
0
Comment
Question by:ProUAdmin
2 Comments
 
LVL 84

Accepted Solution

by:
David Johnson, CD, MVP earned 2000 total points
ID: 38739469
1. remote registry needs to be enabled
2. You need to run the script using the proper user account that has permissions to the remote registry
3. PSRemoteRegistry only needs to be loaded on the machine that is running the script and not on the client machines and only if you are using powershell 3.0.

A simple way of testing if you have the right user account permissions is to load regedit on the machine that you want to run the registry change script.. and then connect to the remote machine and see if you can access the key. It needs to be a local administrator account
0
 

Author Comment

by:ProUAdmin
ID: 38751742
Thank you very much, this has helped me a great deal.
0

Featured Post

Learn Veeam advantages over legacy backup

Every day, more and more legacy backup customers switch to Veeam. Technologies designed for the client-server era cannot restore any IT service running in the hybrid cloud within seconds. Learn top Veeam advantages over legacy backup and get Veeam for the price of your renewal

Question has a verified solution.

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

This article will inform Clients about common and important expectations from the freelancers (Experts) who are looking at your Gig.
During and after that shift to cloud, one area that still poses a struggle for many organizations is what to do with their department file shares.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

916 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