Avatar of KC2TC
KC2TCFlag for United States of America

asked on 

Getting registry key value using powershell

I want a powershell script to retrieve a value from a registry key. I am using Get-Item property  $regkey -name $name

It gives me fewlines (6 lines) at the end .and then the value

Can you help me to take only the value of the particular valuename,so that I can check the value using if condition.
Microsoft Development.NET ProgrammingDB Dev Tools

Avatar of undefined
Last Comment
KC2TC
ASKER CERTIFIED SOLUTION
Avatar of Rainer Jeschor
Rainer Jeschor
Flag of Germany image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of KC2TC
KC2TC
Flag of United States of America image

ASKER

Thank you. It works!!
.NET Programming
.NET Programming

The .NET Framework is not specific to any one programming language; rather, it includes a library of functions that allows developers to rapidly build applications. Several supported languages include C#, VB.NET, C++ or ASP.NET.

137K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo