Expand your skills. Get new features first. Was this information helpful? Yes No. Thank you! Any more feedback? The more you tell us the more we can help.
Can you help us improve? Resolved my issue. Clear instructions. Easy to follow. I just tried your code on both windows 7 x64 and R2. Even if you were coming from an x86 computer I don't think it should affect the value of the key. Very strange. Thanks for replying. It is very strange. But when I tried the script at work on numerous Windows and Windows R2 bit servers, all of them returned x86 folder.
You can also try your original code directly on the server as well. The more I think about it the more I'm wondering if it has to do with you coming from x86 process on the connecting computer.
I'm wondering if your getting data from the Wow Node of the registry. If the above works locally try it from one x64 server to another.
I didn't think remote registry calls worked this way, but it's the only thing that makes sense - that I can think of. So i can not fix this using code. I gave an answer to match the level of detail in the question. If you wanted specifics then you would have asked a specific question with details of your installation environment.
Since you did not, this is therefore a conceptual question. If your question is about group policy and sysadmin then this is the wrong place to ask. Remember that stack overflow is for programming questions. It sounds as though you should ask at serverfault. Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. Email Required, but never shown. The Overflow Blog.
Stack Gives Back I want to add that to registry. Butters - This would generate a path which you could generate a string which then you could place in the registry. Although checking the architecture of the operating system isn't required Environment. GetEnvironmentVariable "ProgramFiles x86 " ; will always return the correct system path.
But I'm just running a MyRegistryFile. Is there another way, or should I go back to creating those registry key values on the code, so that I can use Environment. Butters, you tend to mix 2 issues together. My answer is to answer your first concern, and then you get another. You'd better get a new post to raise your 2nd question. This will help you get answered quickly. GetFolderPath Environment. Todd Todd 4 4 silver badges 12 12 bronze badges. Not helpful in this context. Want to add it in registry and not in my code.
Sign up or log in Sign up using Google.
0コメント