cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with oNetLocation and vbs-script

BESR_7_01
Level 3
Hello,
have problems with my vbs-script.
After using:
   
....
Set oNetLocation = CreateObject("Symantec.VProRecovery.NetworkLocation")
    oNetLocation.Name = "network"
    oNetLocation.DisplayName = "&Netzwerkdatei"
    oNetLocation.Path = \\share\folder
    oNetLocation.FileSpec = WshNetwork.ComputerName
    oNetLocation.Extension = ".v2i"
    oNetLocation.NetworkUser = "abc\user1"
    oNetLocation.NetworkPassword = "password"
    v2iAuto.DefaultImageLocation = oNetLocation
.....

I can see in the gui the Location as a share, but it showen not as a network share. I see local Typ, and i'am not able to change this to a Network Typ with user and password.
Whats wrong with the vbs-script.
Does anyone can help me?

Andy
1 REPLY 1

Markus_Koestler
Moderator
Moderator
   VIP   
We do it this way:

  Set oLocation1 = CreateObject("Symantec.VProRecovery.NetworkLocation")
  oLocation1.Path = sFolder
  oLocation1.FileSpec = oNet.ComputerName & "_" & "C" & "_" & "Laufwerk"
  oLocation1.NetworkUser = "USER"
  oLocation1.NetworkPassword ="PASSWORD"  

Set oLocation = CreateObject("Symantec.VProRecovery.NetworkLocation")
  oLocation.Path = sFolder
  oLocation.FileSpec = oNet.ComputerName & "_" & "D" & "_" & "Laufwerk"
  oLocation.NetworkUser = "USER"
  oLocation.NetworkPassword ="PASSWORD"