Powershell script - how to read a registry hive and store the value in text file and then again read the text file to write the values back in registry

Hi All,
powershell script Method required to read a value from registry and then taking the backup of that values in some text file.
For example the hive is
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment\Path
and under path i need to take back up  of values in some text file and then put some value in the registry after back is taken in text file.
Also how to read the text file values so that we can again write to registry hive  back from the back up text file.
Your help is much appreciated.
Umeed4u

I think you need to read this first:
http://social.technet.microsoft.com/Forums/scriptcenter/en-US/a0def745-4831-4de0-a040-63b63e7be7ae/posting-guidelines?forum=ITCG
Don't retire TechNet! -
(Don't give up yet - 12,830+ strong and growing)

Similar Messages

  • I need to take a lot of notes in my daily customer/sales meetings. The very reason for buying an ipad is to try how I can avoid taking notes and then again typing them in emails etc. What are the market leading apps which can help me to avoid this?

    Are there any apps which helps resolving this? Say as for example it can turn my wiriting to some ascii text and then it becomes highly reusable.
    Advanced features can be that it understands drawings and convert them into separate jpegs which can be reused as well
    I need some suggestions. I think sales perople who use ipad a lot can give really good avice

    Hi AReyes42,
    Given you had just purchased this phone 20 days before it became defective, I of course can understand you being upset by the described experience. I honestly wish the representatives you spoke to had been clearer in their advice to you.
    Our return or exchange period for contract based phones is 14 days from the date of purchase. After that timeframe has past any defects or damage would need to be addressed by any coverage on the phone. Your phone has two types of coverage. It has its manufacturer’s warranty and the Geek Squad Protection (GSP) plan.
    The manufacturer’s warranty should cover any defects within the first year of owning the phone; while your GSP would cover beyond that time, and any covered damage within the first year. Since you are claiming the unit is defective it should be covered by LG’s warranty, and you will need to work with them to get the phone repaired or replaced.
    We could request a refurbished replacement under your GSP, but per the terms of your GSP you would be charged a service fee, and for a smartphone the service fee is $150. Since LG should not be charging to repair or replace your phone, under their warranty, I once again highly recommend you work with them towards getting this resolved.
    I have filed a formal complaint on your behalf, and if you do have any questions for me please post back to this thread.
    Thanks for posting,
    Allan|Senior Social Media Specialist | Best Buy® Corporate
     Private Message

  • How can i hide a JFrame and then Show it again in runtime

    How can i hide a JFrame and then Show it again in runtime??
    Please, please help me
    Its URGENT

    Here's even an example:
    import javax.swing.*;
    public class HideAndShow extends JFrame
         public HideAndShow()
              super("Hello");
              setSize(200, 200);
              setVisible(true);
              try
                   Thread.sleep(2000);
              } catch(InterruptedException e) {}
              setVisible(false);
              try
                   Thread.sleep(2000);
              } catch(InterruptedException e) {}
              setVisible(true);
         public static void main(String[] args)
              new HideAndShow();
    The JFrame will show, then hide, then show again. This is at runtime.

  • How do I add a shape and then add gradient inside of it ?

    how do I add a shape and then add gradient inside of it ?

    Reader commenting and markup tools do not support gradients.

  • How do I create a signature,and then add it to an e ailed document?

    How can I create a signature and then use it to sign a document in e mail?

    Not sure I understand the question correctly.
    Open Mail and click on Preferences under the Mail menu. Click on the Signatures icon in the toolbar. You can set up your signatures there.
    But if you are talking about adding a written signature, then you cannot do that within Mail. You would need to scan in an image of your written signature then manually add it to a signature you create in mail as a graphic image. That seems to work.

  • How many different binary search trees can store the keys {1,2,3}

    I am having a hard time answering this question:
    How many different binary search trees can store the keys {1,2,3} or how about {1,2,3,4} and how did u figure this out?
    Any responses helpful
    Thanks!

    the.maltese.falcon wrote:
    practissum, shame on you for doing this chap's homework for him. @ the OP, this is a Java forum, not a basic data structures forum.
    Also, you forgot the cases
    3
    1
    2and
    1
    3
    2
    the.maltese.falcon, I was just trying to help him get started with the base case. Notice that I didn't enumerate all of the possibilities, but was trying to help the OP get on the right track. You, however, have done this. So shame to you, sir!

  • TS3899 I upgraded to IOS 6, I am unable to get into my Yahoo mail.  It accepts pw, and pops up and tells me how many e-mails I have and then goes right back to the sign on screen. verified that I can get in from laptop & wireless is functioning.any sugges

    I upgraded to IOS 6, I am unable to get into my Yahoo mail.  It accepts pw, and pops up and tells me how many e-mails I have and then goes right back to the sign on screen. verified that I can get in from laptop & wireless is functioning.any suggestions?

    Purplehiddledog wrote:
    I do backup with iCloud.  I can't wait until the new iMac is available so that I can once again have my files in more than 1 location without needing to rely solely on the cloud. 
    I also rely on iTunes and my MacBook and Time Machine as well as backing up to iCloud. I know many users know have gone totally PC free, but I chose to use iCloud merely as my third backup.
    I assume that the restore would result in my ability to open Pages and Numbers and fix the problem with deleting apps, but this would also mean that if my Numbers documents still exist solely within the app and are just not on iCloud for some reason that they would be gone forever.  Is that right?
    In a word, yes. In a little more detail.... When you restore from an iCloud backup, you must erase the device and start all over again. There is no other way to access the backup in iCloud without erasing the device. Consequently, you are starting all over again. Therefore, it would also be my assumption that Pages and Numbers will work again and that the deleting apps issues would be fixed as well.
    If the documents are not in the backup, and you do not have a backup elsewhere, the documents could be gone forever.

  • I need to revert my timeline back to where it was before it was saved. I made a compound clip and then trimmed it and exported it and then shut down fcp. So, when I opened it back up there was only the compound clip. Can someone help me and tell me how?

    I need to revert my timeline back to where it was before it was saved. I made a compound clip and then trimmed it and exported it and then shut down fcp. So, when I opened it back up there was only the compound clip. Can someone help me and tell me how to revert back it back to the last time before it was saved? HELP??

    Select the compound clip and do Clip->Break Apart Clip Items (or Cmd-Shift-G).

  • TS1424 i bought a book and itunes charged me three times for the same book, how do i submit a claim to get the money back and where do i find then form

    i bought a book and itunes charged me three times for the same book, how do i submit a claim to get the money back and where do i find then form

    Welcome to the Apple community.
    Select the content which is causing a problem and use the 'Report a problem' button in Your Purchase History.

  • How to uninstall iTunes in mac and then install again

    how to uninstall iTunes in mac and then install again

    You should be able to simply visit: http://www.apple.com/itunes/download/ to download iTunes, and run the installer to overwrite your previous version...
    Lamborghini98 wrote:
    I want this because i can't restore my iphone 4 with my mac
    I don't think this will fix your problem with restoring your iPhone 4 though. That is likely a seperate issue.
    but i can do it with any windows?
    Yes, you can theoretically restore your iPhone with any computer running the most current version of iTunes (10.6.3) unless there is some other issue.
    I get error code(21)
    According to this support article: http://support.apple.com/kb/TS3694#error21:
    "These errors typically occur when security software interferes with the restore and update process. FollowTroubleshooting security software issues to resolve this issue. In rare cases, these errors may be a hardware issue. If the errors persist on another computer, the device may need service."
    Do you run any anti-virus or third-party firewalls on your computer? Try disabling them and trying the restore process again. It may be possible that one of these security applications is interfering with the iPhone's ability to authenticate with Apple's servers.

  • How to remove xcode 4.1 and then install xcode 3.2.6?

    how to remove xcode 4.1 and then install xcode 3.2.6?

    Just an FYI I had xcode 3.2 installed on my snow leopard system and have today just installed Lion and I just cleaned and rebuilt an App I had developed prior to the Lion install to test to see if it would work. I was told it would but wanted to make sure and it successfully rebuilt and works in the simulator.
    My issue is a bit different I need to install 4.1 WITHOUT corrupting my 3.2 installation as I may have to go back to rebuild a 3.2 App as we had a fairly unique setup for our xcode. The problem as I see it currently is I do not know how LION installs things in LION xcode is an App downloaded from the App store but I need to be able to download to something other than the default directories and I am not sure if I have that option in LION when installing an App(xcode) from the App Store

  • How can I enable FTP on the DMP and How can I FTP to it and then remove the files that were deployed to the DMP flash?

    How can I enable FTP on the DMP and How can I FTP to it and then remove the files that were deployed to the DMP flash? My platform of DMS is 5.2.2

    Hi Temur, ok. I do the above procedure and it worked fine
    Now, I have other question?
    How can I reproduce any file (for example: a video, an url page, an image), that is in the flash of DMP?
    Índice de ftp://172.17.15.22/tmp/ftproot/tmp/ftproot/tmp/ftproot/usb_1/
    Subir al directorio superior.
    Nombre Tamaño Última modificación
    Sample Videos.lnk
    1 KB
    17/06/2011
    06:25:00 a.m.
    deployment
    29/06/2010
    04:14:00 a.m.
    lost+found
    25/02/2010
    12:00:00 a.m.
    video futbol en la playa.mp4
    1390 KB
    29/06/2010
    01:08:00 a.m.
    videofutbol.mp4
    1390 KB
    29/06/2010
    01:38:00 a.m.
    I like, that el DMP when loss conectivity with DMM, It display at the LCD screen, the video named videofutbol.mp4, this video As I show in the picture above, already in the flash of DMP.
    I appreciate your early response.
    Thanks

  • Powershell script to set custom attribute on mailuser returns WARNING: The command completed successfully but no settings of user have been modified.

    I am trying to write a script to enable a mailuser (I do know the difference between mailuser and mailbox) and set a custom attribute for that mailuser.  Every time I run the script I get "WARNING: The command completed successfully but no settings
    of <User DN> have been modified."  Both commands being invoked work when typed manually into the exchange management shell on the exchange server itself.  I am using the same administrator account in the script, and when I login to the
    exchange server to manually run the commands, so it shouldn't be a permission issue.  Here is my script so far.  If anyone can shed some light on what I'm doing wrong, I'd appreciate it.
    $excel = new-object -com excel.application
    $wb = $excel.workbooks.open("c:\temp\testmail8.xlsx")
    $ws = $wb.Worksheets.Item(1)
    $row = 1
    $s = New-PSSession -ConfigurationName microsoft.exchange -ConnectionUri http://<Exchange Server Name>/powershell -Credential [email protected]
    Do {
    $Email = $ws.Cells.Item($row, 1).Value()
    $Cat = $ws.Cells.Item($row, 2).Value()
    invoke-command -Session $s -ScriptBlock {Enable-MailUser -ExternalEmailAddress $($args[0][0] + "@domain.com") -Identity $($args[0][0])} -ArgumentList (,$Email, $Cat)
    invoke-command -Session $s -ScriptBlock {Set-MailUser -Identity $($args[0][0]) -CustomAttribute1 $($args[0][1])} -ArgumentList (,$Email, $Cat)
    $row++
         } While ($ws.Cells.Item($row,1).Value() -ne $null)
    $excel.quit    
    Exit-PSSession

    Hi,
    I'm not sure where is wrong in your script. If you want to get more help about the script troubleshooting, I recommand you to ask a question in Script Center forum for more professional answers:
    http://social.technet.microsoft.com/Forums/scriptcenter/en-US/home?forum=ITCG
    As a workaround, please directly create a mail user in EAC and set related custom attribute to have a try.
    Thanks,
    Winnie Liang
    TechNet Community Support

  • In UCSD custom script, how to get information on POD and LOVs ?

    Hello
    I am new in this community and I am not sure that it is the good place to post this.
    We are searching information / examples for UCSD custom tasks scripts and mainly on following topics:
    how to get data displayed in converged view starting with name of the POD ?
    how to get data in LOV starting with the name of LOV ?
    Any help / example / document will be welcome.
    Many thanks

    Hi Denis,
    Take a look at the man page for proc. This describes the API to obtain such information.
    Hope that helps,
    Ralph
    SUN DTS

  • How do I save a photo and then find it again?

    Hi,
    I have 70 photos in my library. All I want to do is save one photo to put on ebay. I have tried everything to save it and then try to find it later, but I can't figure it out. You know how easy it is to just save a word document and then hit browse and instantly find what you're looking for. That's what I want to do.
    I called Apple care and they always just tell me to go to Support and read. I've read for 2 hours and still don't know the answer. They are never any help to me, and to think I paid all that money!!!
    Can I save a photo in my documents so it is easy to find? The answer to this is probably very simple, but I am old and have a hard time figuring out things.
    Please, someone, enlighten me!!

    Hi penny,
    Select the photo in iPhoto
    Go to Share>export
    In the export window you can input the size dimensions and choose your naming scheme.
    Export to the desktop
    Use the photo on the desktop to upload to ebay.
    When you are done uploading you can delete the photo on the desktop.

Maybe you are looking for