Windows XP Community - XPHeads



RE: error 80070034

microsoft.public.windowsxp.wmi


Reply
  #1 (permalink)  
Old 12-18-2007, 08:56 PM
guzarva
 
Posts: n/a
RE: error 80070034


"Paul" wrote:

> See below for the code I am running-
>
> The script run and displays a dialog window which reads "completed
> successfully" but then I get another with the error code 80070034, "You were
> not connected because a duplicate name exists on the network. Go to Control
> panel to change the computer name." I'm not sure which computer it is
> referencing.
> The error references line 72 (noted below).
> I know there is one machine per name on the network. Any idea what causes
> this dialog box?
>
> Thanks for the help,
> Paul
>
> ********************
> 'This script:
>
> 'Reads computer names from a text file
>
> 'Copies the installation and configuration scripts,
> 'from a network location to the local machine
>
> 'Connects to the computers in turn
>
> 'Launches install.cmd to start the installation process
>
> 'Before running the script change the scripts folder path, the computer.txt
> path and
> 'the install.cmd path to be correct for the environment
>
> 'Edit the value of CompTxtFile to configure the path to Computers.txt if
> required
> CompTxtFile = "\\remote servername\Disk1\_scan.ePO\scripts\computers.txt"
>
> 'The executable, *.*, needs to be present in the scripts folder
> 'Edit the value of SrcSrv to include the path to the scripts folder on the
> source server
> SrcSrv = "\\remote servername\Disk1\_scan.ePO\scripts"
>
> 'Edit the value of DestPath to include the destination path on the client if
> required
> DestPath = "\c$\temp"
>
> 'Edit the value of ScriptPath to include the path to Install.cmd if required
> ScriptPath = "\c$\temp\install.cmd"
>
> Set FileSys = CreateObject("Scripting.FileSystemObject")
>
> Set File = FileSys.GetFile(CompTxtFile)
>
> Set Words = File.OpenAsTextStream
>
> Do Until Words.AtEndOfStream
> StrComputer = Words.ReadLine
>
> 'The executable, *.*, needs to be present in the scripts folder.
> 'Edit this line to include the path to the scripts folder on the source
> server and the
> 'destination path on the client if required. Note: lines below here do not
> need to be altered.
> **LINE 72 FileSys.CopyFolder SrcSrv, "\\" & strComputer & DestPath, true
>
> Set objWMIService = GetObject("winmgmts:" &
> "{impersonationLevel=impersonate}!\\" _
> & strComputer & "\root\cimv2:Win32_Process")
>
> errReturn = objWMIService.Create("\\" & strComputer & ScriptPath, null,
> null, intProcessID)
>
> If errReturn = 0 Then
> Wscript.Echo "Script ran successfully"
> Else
> Wscript.Echo "The script failed due to error " & errReturn & "."
> End If
> Loop

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 02:05 PM.








Design by Vjacheslav Trushkin for phpBBStyles.com.
Powered by vBulletin® Version 3.6.7
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74