Solved

Remote Change SRV Comment with Powershell

Posted on 2013-01-02
2
821 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 78

Accepted Solution

by:
David Johnson, CD, MVP earned 500 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

What Security Threats Are You Missing?

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

Suggested Solutions

Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
When it comes to security, there are always trade-offs between security and convenience/ease of administration. This article examines some of the main pros and cons of using key authentication vs password authentication for hosting an SFTP server.
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…

744 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

10 Experts available now in Live!

Get 1:1 Help Now