Your not supplying much information. What errors do you get, and from which modules/code?
Posting the script in question, if it isn''t too big, would help a lot.
I suspect that you aren't untying the registry, and hence your changes aren' being commited before you try to move on to the second step, but that's a guess.
You might try using the Flush method, though the docs say that it isn't usually necessary.
Flush( $bFlush ) Flushes all cached information about the Registry key so that future u +ses will get fresh data from the Registry. If the optional $bFlush is specified and a true value, then RegFlushKe +y() will be called, which is almost never necessary.
In reply to Re: Refreshing the Windows Registry
by BrowserUk
in thread Refreshing the Windows Registry
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |