All.....
Has anyone else ever come across this - I am creating an unattended XP install.....
I am using a cmdlines.txt file to call a batch file - this batch file has two lines:
*************************************************
CScript "C:\Install\Share_Upgrade.vbs"
CScript "C:\Install\Share_log.vbs"
**************************************************
should I run this batch file, when it gets to the lines above I get an:
SWbemObjectEx: "Critical Error" message.....
****************************************************
If I run these files from within windows they work fine - doe for files as follows:
File 1:
****************************************************
Const FILE_SHARE = 0
Const MAXIMUM_CONNECTIONS = 25
strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" _
& strComputer & "\root\cimv2")
Set objNewShare = objWMIService.Get("Win32_Share")
errReturn = objNewShare.Create _
("C:\Program Files\Controller\controller\upgrade", "Upgrade", FILE_SHARE, _
MAXIMUM_CONNECTIONS, "Upgrade Folder Share")
*******************************************************
File 2:
*****************************************************
Const FILE_SHARE = 0
Const MAXIMUM_CONNECTIONS = 25
strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" _
& strComputer & "\root\cimv2")
Set objNewShare = objWMIService.Get("Win32_Share")
errReturn = objNewShare.Create _
("C:\Program Files\controller\controller\log", "tlog", FILE_SHARE, _
MAXIMUM_CONNECTIONS, "Log Folder Share")
******************************************************
Anyone any ideas why I get this message?
Help much appreciated
ChrisCj21
MCSE, A+, N+
Has anyone else ever come across this - I am creating an unattended XP install.....
I am using a cmdlines.txt file to call a batch file - this batch file has two lines:
*************************************************
CScript "C:\Install\Share_Upgrade.vbs"
CScript "C:\Install\Share_log.vbs"
**************************************************
should I run this batch file, when it gets to the lines above I get an:
SWbemObjectEx: "Critical Error" message.....
****************************************************
If I run these files from within windows they work fine - doe for files as follows:
File 1:
****************************************************
Const FILE_SHARE = 0
Const MAXIMUM_CONNECTIONS = 25
strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" _
& strComputer & "\root\cimv2")
Set objNewShare = objWMIService.Get("Win32_Share")
errReturn = objNewShare.Create _
("C:\Program Files\Controller\controller\upgrade", "Upgrade", FILE_SHARE, _
MAXIMUM_CONNECTIONS, "Upgrade Folder Share")
*******************************************************
File 2:
*****************************************************
Const FILE_SHARE = 0
Const MAXIMUM_CONNECTIONS = 25
strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" _
& strComputer & "\root\cimv2")
Set objNewShare = objWMIService.Get("Win32_Share")
errReturn = objNewShare.Create _
("C:\Program Files\controller\controller\log", "tlog", FILE_SHARE, _
MAXIMUM_CONNECTIONS, "Log Folder Share")
******************************************************
Anyone any ideas why I get this message?
Help much appreciated
ChrisCj21
MCSE, A+, N+