Skip to content

Windows ADK? to inject a "PC name"

Featured Replies

So, I have a piece of medical software that needs to be a specific Windows PC name (a serial number) in order to make purchased options within that software be activated. If you change the PC name to anything other than the serial number, the options cease to work. I'm not sure if this is a registry or API call, but it doesn't work if the Windows PC name changes to anything else but the serial number of the product.

The issue is, my customer, a large hospital system, per their corporate IT naming convention, MUST change the name of the unit to match their AD setup.

I'm trying to find a way to shim the PC name to the .exe or program file to "believe" the PC computer name is still the serial number, but the customer can change the REAL PC name to conform to their policies.

I'm no expert in this at ALL, so I'd really need someone to 2nd grade explain this. I've tried the latest ADK download with the compatibility feature enabled, and some searches say to "fix" the software using GetComputerName or SetEnvironmentVars, but none of those seem to exist or work...

If someone has a better program or method, I'm attempting to get in front of this medical device to test with soon, and would love to try any/all suggestions. 

Again, I don't write code, scripts, or dlls, so I'd need some hand holding on this if it can be done.

Thank you! 

you need to contact that software vendor and explain your customers computer naming standards/requirements and ask for assistance, have you tried that ? any hack you do to convince that software that the hostname or registry key pointing to the computer name may cause other issues with lots more software, so i'd start with the software vendor first

  • Author

Well, I work for the software vendor... so my software engineers aren't "reachable" to ask such questions, and probably wouldn't tell anyway (I.P., secret recipes, etc...)

I'm not worried about other software, being this is a medical device running windows, and other software isn't supposed to be on there.

I did ask if this was an API call, or exactly how the software determines the PC name to validate it, so hoping that will help narrow an answer, but any other input on how to get started is appreciated. The customer wants to add our product to their domain for medical records, but since our name can't deviate, it's causing a major problem. I'm hoping this "shim" is a possible path to a solution...

Thanks for any guidance or starting points

Edited by reedster500

honestly, i think you'll need to go to the team that are in control of the ad naming scheme and get an exception for these devices

OR

contact the medical software manufacturer and ask them to modify their software to work with the companies AD naming scheme

 

anything else will ultimately fail

  • 3 weeks later...
  • Author

I work for the medical company, as stated earlier... I can't believe a simple DLL hook or shim can't be explained here... that's all I'm asking, like many of the other forums on here... I'll just look elsewhere. Thanks...

Edited by reedster500

the only way you'll be able to 'shim' the computer name into thinking it's the serial number, is if you know exactly what method (or methods) the medical software uses to determine the computer name, do you know how they are doing this ?

 

modern applications often don't just call GetComputerName(). They may query:

    WMI (Win32_ComputerSystem)
    Environment variables (COMPUTERNAME)
    Registry values
    Active Directory attributes
    Their own licensing service

If that's the case, a simple shim won't help. 

You could try this easier alternative depending on the architecture:

    Run the software in a VM whose hostname remains the serial number.
    Ask the vendor for a revised license tied to a hardware ID instead of hostname.
    Use a license server if the product supports one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.