Migration of french PC |
Post Reply |
Author | |
zmad
Newbie Joined: 04 Nov 2009 Location: Canada Status: Offline Points: 28 |
Post Options
Thanks(0)
Posted: 03 Feb 2010 at 6:17am |
Hi, I tried to join the domain and migrate profiles of a French PC (OS: XP French) with migrate.exe...but I had an error: THIS SCRIPT REQUIRES WINDOWS SCRIPT HOST 5.6 It fails in Migrate.vbs in the following routine: 'Check WSH version If not CDbl(WScript.Version)>=5.6 then MsgBox "This script requires Windows Script Host 5.6", vbCritical, "Script Error" WScript.Quit End If And the version in French has a different digit grouping; ex: German:"1.234,9" or French "1 234,9" style digit grouping My question is what the best workarround to fix this situation. OUR SCRIPT HOST VERSION IS 5.7 Thank you Regards, |
|
Support
Moderator Group Joined: 09 Nov 2006 Location: United Kingdom Status: Offline Points: 1844 |
Post Options
Thanks(0)
|
Hi, Yes you are quite right. The Windows Scripting Host (WSH) is implemented in English, even on a French language machine. So when you ask WSH for its version number it returns ‘5.6’ not ‘5,6’ Of course, if you are confident that all your machines are running 5.7, you can just delete this check altogether.
Edited by Support - 03 Feb 2010 at 6:57am |
|
zmad
Newbie Joined: 04 Nov 2009 Location: Canada Status: Offline Points: 28 |
Post Options
Thanks(0)
|
OK! since I run the silent version Migrate.exe for the migration, Do I need when I change the migrate.vbs to generate the migrate.exe?
Thanks
|
|
Support
Moderator Group Joined: 09 Nov 2006 Location: United Kingdom Status: Offline Points: 1844 |
Post Options
Thanks(0)
|
Yes you do. Edit the migrate.vbs file, then when you're done open the "Deployment Kit" and drag and drop the migrate.vbs file on the Deployment Kit window. A new migrate.exe file will be created in the same location as the migrate.vbs script.
|
|
zmad
Newbie Joined: 04 Nov 2009 Location: Canada Status: Offline Points: 28 |
Post Options
Thanks(0)
|
Hi I used the following code...with GetLocal() we deal with a lot of options
Cheers
'Check WSH version
Decimal = ReadReg("HKCU\Control Panel\International\sDecimal")if Decimal = "." thenversion=WScript.Version Else version=Replace(WScript.Version, ".", ",")End IfIf not CDbl(Version)>=5.6 thenMsgBox "This script requires Windows Script Host 5.6", vbCritical, "Script Error"WScript.Quit End If'Functions Function ReadReg(RegPath) Dim objRegistry, Key Set objRegistry = CreateObject("Wscript.shell")Key = objRegistry.RegRead(RegPath) ReadReg = Key End Function |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |