Jump to content
Strawberry Orange Banana Lime Leaf Slate Sky Blueberry Grape Watermelon Chocolate Marble
Strawberry Orange Banana Lime Leaf Slate Sky Blueberry Grape Watermelon Chocolate Marble

MSFN is made available via donations, subscriptions and advertising revenue. The use of ad-blocking software hurts the site. Please disable ad-blocking software or set an exception for MSFN. Alternatively, register and become a site sponsor/subscriber and ads will be disabled automatically. 


xehqter

OEMScan - Automated Multi Manufacture Pre-Activation Utility

Recommended Posts

Or you could search for a string that appears in every BIOS.

[SM]
CMD=".\PromptForChange.exe"

Trying this on WinXP Home

I have PromptKey.vbs in the same place as oemscan.exe/ini. (1.3.1)

I have this in oemscan.ini

[SM]
CMD=".\PromptKey.vbs"

Written at the end of oemscan.ini.

When I test it it say's;

Matched: SM

Running: PromptKey.vbs : Failed

I have tried to run a cmd file instead(test.cmd)...no go.

Why on :realmad: does it do that?

If I run PromptKey.vbs, it works.

In real life on a Dell pc it workes perfect.....

-----------------------------------------------------------------

Update

Sorry about this. The problem seems to be more complexed.

The CMD="" thing does not work at all, it worked like a charm earlier today, but not now.

I copied the hole oemscan directory over to another PC and tested there, but it does not work.

Same error : Failed.

Any ideas?

Edited by Floppy

Share this post


Link to post
Share on other sites

@Floppy

OEMSCAN uses the CreateProcess API to execute whatever is in the string.

PromptKey.vbs isn't an executable file, it’s a script. You need to run the interpreter wscript which will parse/run the script.

[SM]
CMD="wscript PromptKey.vbs"

Share this post


Link to post
Share on other sites
@Floppy

OEMSCAN uses the CreateProcess API to execute whatever is in the string.

PromptKey.vbs isn't an executable file, it’s a script. You need to run the interpreter wscript which will parse/run the script.

[SM]
CMD="wscript PromptKey.vbs"

No Go :wacko:

I tried this:

[SM]
CMD=".\test.cmd"

and test.cmd

Pause

No Go

Same error : Failed

Iam realy confused

Share this post


Link to post
Share on other sites

@Floppy

OEMSCAN uses the CreateProcess API to execute whatever is in the string.

PromptKey.vbs isn't an executable file, it’s a script. You need to run the interpreter wscript which will parse/run the script.

[SM]
CMD="wscript PromptKey.vbs"

No Go :wacko:

I'm not sure when you're running PromptKey.vbs, but if it's during Windows setup you'll need to use cscript as wscript is not available yet.

Share this post


Link to post
Share on other sites

The tihing is that nothing will run if I write like this;

[SM]
CMD=".\test.cmd"

It just fails :wacko:

Iam trying to prompt for changing the XP key if there is no match. :whistle:

Edited by Floppy

Share this post


Link to post
Share on other sites

Don’t know what to tell you, during what part of setup are you running oemscan.exe and secondly does it also fail if you run oemscan after the install is finished?

Share this post


Link to post
Share on other sites
Don’t know what to tell you, during what part of setup are you running oemscan.exe and secondly does it also fail if you run oemscan after the install is finished?

Ok, I will try to show you! Thank you for your respond :hello:

This is my

oemscan.ini

;
; Fujitsu Siemens OEMBIOS Files
; SLP = Fujitsu Siemens
;
[FUJITSU SIEMENS]
PATH=".\FUJITSU\"
RANGE=""
MATCHARG=""
CMD=".\FUJITSU\OEMCOPY.CMD"

;
; ASUS_FLASH OEMBIOS Files
; SLP = ASUS_FLASH
;
[ASUS_FLASH]
PATH=".\ASUS_FLASH\"
RANGE=""
MATCHARG=""
CMD=".\ASUS_FLASH\OEMCOPY.CMD"



[SM]
CMD=".\cscript PromptKey.vbs"
;CMD=".\test.cmd"

This is my

cmdlines.txt

[COMMANDS]

"useraccounts.cmd"

"RunOnceEx.cmd"

"./HomePreaktiver/oemscan.exe"

I have used this on sevral diff. PC's, but not with this part;

[SM]
CMD=".\cscript PromptKey.vbs"

I wanted to test it firts on Microsoft Virtual PC, and the [sM] trigs OK but the <<CMD=".\cscript PromptKey.vbs">> goes : FAILED.

It does not matter if I run the oemscan.exe durin install (cmdlines.txt) or from the desktop, after instal.

If I change

<<CMD=".\cscript PromptKey.vbs">>

To

CMD=".\test.cmd"

The result is the same : FAILED

This is my

test.cmd

Pause

Iam trying to prompt for changing the XP key if there is no match.

Is there another way tho promt the user to change the XP key, if oemscan doesen't do it's "thing"?

Edited by Floppy

Share this post


Link to post
Share on other sites
<<CMD=".\cscript PromptKey.vbs">>

To

CMD=".\test.cmd"

commands are ok, have you placed promptkey.vbs and test.cmd in the right place? (same dir as oemscan.exe)

Edited by FreeStyler

Share this post


Link to post
Share on other sites

<<CMD=".\cscript PromptKey.vbs">>

To

CMD=".\test.cmd"

commands are ok, have you placed promptkey.vbs and test.cmd in the right place? (same dir as oemscan.exe)

Yes, i have :whistle:

If I run;

oemscan.exe /d

I get ;

Matched: SM

Running: PromptKey.vbs : Failed

or with test.cmd in oemscan.ini;

Matched: SM

Running: test.cmd : Failed

Share this post


Link to post
Share on other sites
duh... :whistle:

remove the /d switch

The /d just makes oemscan show you what happens...right?

Or does it change how it works...... :}

Update

I tried it just running oemscan.exe...........success :thumbup

I have more grey hair now :blushing:

Thanks to the ones who helped me!!

Edited by Floppy

Share this post


Link to post
Share on other sites

Haven't really checked on this thread since i wrote those (modified the official microsoft) scripts...

What's the consensus? do they work? If so, i'll do a little more work and get some basic error checking and looping in em

TheUni

Share this post


Link to post
Share on other sites
Haven't really checked on this thread since i wrote those (modified the official microsoft) scripts...

What's the consensus? do they work? If so, i'll do a little more work and get some basic error checking and looping in em

TheUni

I have done Pro&Home on; DELL,HP,Compaq and FS--->No Problem :thumbup

Edited by Floppy

Share this post


Link to post
Share on other sites

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...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...