Sign in to follow this  
Followers 0
redfive19

Get computer name in WinPE

7 posts in this topic

My buddy wrote code to do this in WinBatch but I want to port it over to AutoIt. He basically loads the reghive from the local hdd and reads from that. I can't find a way to accomplish loading this hive in AutoIt. Any help would be great. Thanks!

-redfive

Share this post


Link to post
Share on other sites



thanks, I'll give this a try!

Share this post


Link to post
Share on other sites

Well it looks like this is not going to work for me. I need to load the "system" hive not ntuser.dat. I need to do this to look for the machine name of the actual machine NOT the PE machine name. Has anyone done this?

Share this post


Link to post
Share on other sites

does anyone know how to load the SYSTEM hive in WindowsPE? I'd greatly appreciate any help!!! Thanks!

Share this post


Link to post
Share on other sites

It looks like the same method should work for the SYSTEM hive. Just change the file name to C:\WINDOWS\system32\config\system. Note that you may need to include a "." after the name for the file name to be recognized (e.g., "C:\WINDOWS\system32\config\system.").

I've used the REG.EXE command for this sort of stuff in the past - worked great.


BlueBearrOddly enough, this is what I do for fun.

Share this post


Link to post
Share on other sites

You sir are awesome, worked a charm. Thanks!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0