How do I check if a certain registry value is set to a valueWhat are reasons for local Windows named-pipes to...

Can the Count of Monte Cristo's calculation of poison dosage be explained?

Is there a way to help users from having to clicking emails twice before logging into a new sandbox

Has the Isbell–Freyd criterion ever been used to check that a category is concretisable?

Eww, those bytes are gross

How to approximate rolls for potions of healing using only d6's?

Why didn't Eru and/or the Valar intervene when Sauron corrupted Númenor?

Where is this triangular-shaped space station from?

I am on the US no-fly list. What can I do in order to be allowed on flights which go through US airspace?

Finding ratio of the area of triangles

Metadata API deployments are failing in Spring '19

A Wacky, Wacky Chessboard (That Makes No Sense)

Find the number of ways to express 1050 as sum of consecutive integers

Connecting top and bottom of adjacent circles

Inventor that creates machine that grabs man from future

Do commercial flights continue with an engine out?

What's the rationale behind the objections to these measures against human trafficking?

How to add multiple differently colored borders around a node?

Does Windows 10's telemetry include sending *.doc files if Word crashed?

What is the purpose of easy combat scenarios that don't need resource expenditure?

Why can I easily sing or whistle a tune I've just heard, but not as easily reproduce it on an instrument?

Do authors have to be politically correct in article-writing?

Which aircraft had such a luxurious-looking navigator's station?

Sometimes a banana is just a banana

Can I become debt free or should I file for bankruptcy? How do I manage my debt and finances?



How do I check if a certain registry value is set to a value


What are reasons for local Windows named-pipes to fail?Search and replace registry entry value using powershellParsing by Value / Referenceconfusing on registry valueGet cell value from powershell result setWindows 7 ping of 127.0.0.1 returns “General failure” for non-admin userspowershell script on shutdown doesn't work (win 8)Check if registry contains data from .reg fileHow to loop through files named in a text file? Windows Server 2012How do I turn my CSV formatting into a automatic “drag & drop” BAT file?













0















For example, I need to write an if loops that does this: (pseudocode)



if get-itemproperty -path HKLM:SYSTEMCurrentControlSetServicesDNSParameters -name EnableDnsSec returns an output containing the string EnableDnsSec : 1,



Add the line "DnsSec has been enabled" to the end of C:UsersironmanDesktopABC.html



Thanks! (This needs to be in PowerShell, for windows)










share|improve this question







New contributor




gup3 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

























    0















    For example, I need to write an if loops that does this: (pseudocode)



    if get-itemproperty -path HKLM:SYSTEMCurrentControlSetServicesDNSParameters -name EnableDnsSec returns an output containing the string EnableDnsSec : 1,



    Add the line "DnsSec has been enabled" to the end of C:UsersironmanDesktopABC.html



    Thanks! (This needs to be in PowerShell, for windows)










    share|improve this question







    New contributor




    gup3 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.























      0












      0








      0








      For example, I need to write an if loops that does this: (pseudocode)



      if get-itemproperty -path HKLM:SYSTEMCurrentControlSetServicesDNSParameters -name EnableDnsSec returns an output containing the string EnableDnsSec : 1,



      Add the line "DnsSec has been enabled" to the end of C:UsersironmanDesktopABC.html



      Thanks! (This needs to be in PowerShell, for windows)










      share|improve this question







      New contributor




      gup3 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.












      For example, I need to write an if loops that does this: (pseudocode)



      if get-itemproperty -path HKLM:SYSTEMCurrentControlSetServicesDNSParameters -name EnableDnsSec returns an output containing the string EnableDnsSec : 1,



      Add the line "DnsSec has been enabled" to the end of C:UsersironmanDesktopABC.html



      Thanks! (This needs to be in PowerShell, for windows)







      windows powershell code






      share|improve this question







      New contributor




      gup3 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      share|improve this question







      New contributor




      gup3 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      share|improve this question




      share|improve this question






      New contributor




      gup3 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      asked 15 mins ago









      gup3gup3

      1




      1




      New contributor




      gup3 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.





      New contributor





      gup3 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






      gup3 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






















          0






          active

          oldest

          votes











          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "3"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });






          gup3 is a new contributor. Be nice, and check out our Code of Conduct.










          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1411047%2fhow-do-i-check-if-a-certain-registry-value-is-set-to-a-value%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          gup3 is a new contributor. Be nice, and check out our Code of Conduct.










          draft saved

          draft discarded


















          gup3 is a new contributor. Be nice, and check out our Code of Conduct.













          gup3 is a new contributor. Be nice, and check out our Code of Conduct.












          gup3 is a new contributor. Be nice, and check out our Code of Conduct.
















          Thanks for contributing an answer to Super User!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1411047%2fhow-do-i-check-if-a-certain-registry-value-is-set-to-a-value%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Why not use the yoke to control yaw, as well as pitch and roll? Announcing the arrival of...

          Couldn't open a raw socket. Error: Permission denied (13) (nmap)Is it possible to run networking commands...

          VNC viewer RFB protocol error: bad desktop size 0x0I Cannot Type the Key 'd' (lowercase) in VNC Viewer...