Invoke-QuickStart : Cannot find container specified

Hi Folks, 
I am almost done setting up my FIM password reset tool, but I am stuck on almost final step,which is "QuickStart tool" synch with AD. PS command that I use looks like this:
Invoke-QuickStart –Container “OU=test,OU=City,OU=Users,OU=Workstations,OU=branch Office,DC=Domain,DC=Net” –DatabaseName FIMpassword –DatabaseServer Server2 –ForefrontIdentityManagerServiceBaseAddress http://localhost:5725 -Forest Forest.Net –ActiveDirectoryManagementAgentCredential Domain\SA_USR –ForefrontIdentityManagerManagementAgentCredential Domain\SA_FIM_USR –RunInitialLoad $true –verbose
And I get following error:
VERBOSE: Verifying the forest and account
VERBOSE: Verifying the container
Invoke-QuickStart : Cannot find container 'OU=ARJS test,OU=Kaunas,OU=Users,OU=Workstations,OU=COWI Lithuania,DC=COWI,DC
=Net'.
At line:1 char:18
+ Invoke-QuickStart <<<< -Container "OU=test,OU=City,OU=Users,OU=Workstations,OU=branch Office,DC=Domain,DC=Net"
-DatabaseName FIMpassword -DatabaseServer Server2 -ForefrontIdentityManagerServiceBaseAddress http://localhost:5725 -
Forest Forest.net -ActiveDirectoryManagementAgentCredential Domain\SA_USR -ForefrontIdentityManagerManagementAgentCre
dential Domain\SA_FIM_USR -RunInitialLoad $true -verbose
+ CategoryInfo : InvalidArgument: (:) [Invoke-QuickStart], PSArgumentException
+ FullyQualifiedErrorId : Invoke-QuickStart,Microsoft.IdentityManagement.QuickStart.InvokeQuickStart
Can anyone help me with that? If you need any additional info, please let me know.

Hi. It seems that you have wrong container address. Please verify if you have: "OU=ARJS test,OU=Kaunas,OU=Users,OU=Workstations,OU=branch Office,DC=Domain,DC=Net" Please remember that it would be something like: Domain.Net ->Branch Office -->Workstations
--->Users ... so you have specified that "ARJS test" is inside OU Kaunas, which is inside OU=Users, which is inside Workstations etc. Make sure all of them are OUs and not CNs (Org Units not Containters) If you wanted to specify more than one OU/CN at once
- it is not possible using script. You have to specify only one container/OU now and later change it inside agent.
If you found my post helpful, please give it a Helpful vote. If it answered your question, remember to mark it as an Answer.

Similar Messages

  • Cannot find the specified instance ???

    "If the instance has recently been initiated, the invocation data may not have been delivered to the engine yet. Refresh your browser window or try again in a few seconds."
    I am getting the above error when i try to execute a BPEL process that does some DML operation on the database.
    I doubt whether this relates to the database.
    Please suggest.
    Thanks,
    Rosh

    Hi Marcelo!
    I'm having the exact same problem. I've upgraded AS and BPEL PM from 10.1.3.1 to 10.1.3.3 As I found out in another thread (Cannot find the specified instance the problem could be in not running the upgrade sql script, but I did that.
    When I initiate my process the number of Open Instances and closed instances remains 0. I've tried by deploying my process to default domain and a new domain I've created but it doesn't matter.
    The message in my domain.log file is this:
    <2008-01-22 13:52:32,976> <WARN> <MyTestDomain.collaxa.cube> <BaseCubeSessionBean::logWarning> Error while invoking bean "finder": [com.collaxa.cube.engine.core.InstanceNotFoundException: Instance not found in datasource.
    The process domain was unable to fetch the instance with key "fa5790576a57cd77:-67b0033:117a188c804:-7fea" from the datasource.
    Please check that the instance key "fa5790576a57cd77:-67b0033:117a188c804:-7fea" refers to a valid instance that has been started and not removed from the process domain.
    ORABPEL-02152
    Instance not found in datasource.
    The process domain was unable to fetch the instance with key "fa5790576a57cd77:-67b0033:117a188c804:-7fea" from the datasource.
    Please check that the instance key "fa5790576a57cd77:-67b0033:117a188c804:-7fea" refers to a valid instance that has been started and not removed from the process domain.
         at com.collaxa.cube.engine.data.AdminFinder.lookupInstanceByConversationId(AdminFinder.java:287)
         at com.collaxa.cube.ejb.impl.FinderBean.lookupInstanceByConversationId(FinderBean.java:200)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at com.evermind.server.ejb.interceptor.joinpoint.EJBJoinPointImpl.invoke(EJBJoinPointImpl.java:35)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.JAASInterceptor$1.run(JAASInterceptor.java:31)
         at com.evermind.server.ThreadState.runAs(ThreadState.java:646)
         at com.evermind.server.ejb.interceptor.system.JAASInterceptor.invoke(JAASInterceptor.java:34)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.TxNotSupportedInterceptor.invoke(TxNotSupportedInterceptor.java:43)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.InvocationContextPool.invoke(InvocationContextPool.java:55)
         at com.evermind.server.ejb.StatelessSessionEJBObject.OC4J_invokeMethod(StatelessSessionEJBObject.java:87)
         at FinderBean_RemoteProxy_4bin6i8.lookupInstanceByConversationId(Unknown Source)
         at com.oracle.bpel.client.Locator.lookupInstance(Locator.java:448)
         at displayInstance.jspService(_displayInstance.java:123)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:462)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
         at oracle.security.jazn.oc4j.JAZNFilter$1.run(JAZNFilter.java:396)
         at java.security.AccessController.doPrivileged(Native Method)
         at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
         at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:410)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:623)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
         at com.evermind.server.http.ServletRequestDispatcher.unprivileged_forward(ServletRequestDispatcher.java:259)
         at com.evermind.server.http.ServletRequestDispatcher.access$100(ServletRequestDispatcher.java:51)
         at com.evermind.server.http.ServletRequestDispatcher$2.oc4jRun(ServletRequestDispatcher.java:193)
         at oracle.oc4j.security.OC4JSecurity.doPrivileged(OC4JSecurity.java:283)
         at com.evermind.server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:198)
         at com.collaxa.cube.fe.DomainFilter.doFilter(DomainFilter.java:131)
         at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)
         at oracle.security.jazn.oc4j.JAZNFilter$1.run(JAZNFilter.java:396)
         at java.security.AccessController.doPrivileged(Native Method)
         at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
         at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:410)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:621)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
         at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
         at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:302)
         at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:190)
         at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Thread.java:595)
    I'd appreciate any suggestions on this.
    Thanks!
    BB

  • Cannot find the specified Infoprovider

    Hi All,
    When executed Tcode in BI : RSPLAN and clicked on Start Modeler Button,
    We are able to see the portal screen (username & Password). But we are unable to see the Real - Time Info cubes and Multi Providers on which the Aggregation Levels also. It is displaying the following message with green button.
    Cannot find the specified Infoprovider
    and
    Cannot find aggregation levels for selection specified .
    We have checked the Jco connections BI_METADATA and BI_MODELDATA and it is saying that the connections are OK.
    Thanks ,
    Kaleem

    HI All,
    After restarted BI server and reactivated the infocubes, problem has been soved.
    Thanks & Regards,
    Kaleem.

  • "The system cannot find the specified"

    When I try to install HP Photosmart Full Feature Software and Drivers - fulling.exe
    I get an error "The system cannot find the specified"
    What is the fix?

    Hi,
    Follow the steps below and check if that resolve the issue:
    1. Open Mcafee software, from the Virus and Spyware Protection section click on Schedule and run scans. Click on Real time scanning and then on Turn Off. select till I restart the PC and confirm by clicking the Turn Off button.
    Now try reinstalling the HP Software and check if the installation goes as expected.
    If the issue persists continue following the next steps below:
    2. Open the run dialog by clicking both the Windows key and the R key on your keyboard. Type %windir% and click on OK.
    3. Type hpoins*.dat into the top search bar, if there are any results rename the extention into old instead of dat. (e.g. hpoins1.old)
    4. Type hpwins*.dat into the top search bar, if there are any results rename the extention into old instead of dat. (e.g. hpwins1.old)
    5. Launch the Run dialog by clicking both the Windows key and the R key on your keyboard. Type MSIEXEC /UNREGISTER into the Run dialog and click on OK.
    6. Launch the Run dialog by clicking both the Windows key and the R key on your keyboard. Type MSIEXEC /REGSERVER into the Run dialog and click on OK.
    7. Run the installation file and check for any difference.
    Regards,
    Shlomi
    Say thanks by clicking the Kudos thumb up in the post.
    If my post resolve your problem please mark it as an Accepted Solution

  • Error "The System cannot find the specified" when installing XI3.1 FP1.3

    Error "The System cannot find the specified" happened when installing XI3.1 FP1.3 to client machine, however the installation is OK to server.
    After the error, go to Control Panel -> Add or Remove Programs, and observe.
    BusinessObjects Enterprise XI 3.1 Client Tools is installed,
    but BusinessObjects Enterprise XI 3.1 Client Tools Japanese Language Pack is not.
    And Language Pack install log is not written.
    The same error happened when installing .net2.0.
    The installation for FP1.2 is OK.
    Would you tell me what reason probablely this issue is?
    Thanks.

    Hello Sarah,
    I recommend to post this query to the [BusinessObjects Enterprise Administration|BI Platform; forum.
    This forum is dedicated to topics related to administration and configuration of BusinessObjects Enterprise, BusinessObjects Edge, and Crystal Reports Server.
    It is monitored by qualified technicians and you will get a faster response there.
    Also, all BOE Administration queries remain in one place and thus can be easily searched in one place.
    Best regards,
    Falk

  • The system cannot find the specified file

    I have tried to download and install a driver for hp officejet 4500 wireless on 2 different computers, one windows 7
    the other windows 8, with no sucess.  I keep getting a message saying  " The system cannot find the specified file".
    I even paid for a driver on a disk and got the same message.    
    HELP ME PLEASE
    Sincerely 
    meyerret

    Hi,
    Follow the steps below and check if that resolve the issue:
    1. Open Mcafee software, from the Virus and Spyware Protection section click on Schedule and run scans. Click on Real time scanning and then on Turn Off. select till I restart the PC and confirm by clicking the Turn Off button.
    Now try reinstalling the HP Software and check if the installation goes as expected.
    If the issue persists continue following the next steps below:
    2. Open the run dialog by clicking both the Windows key and the R key on your keyboard. Type %windir% and click on OK.
    3. Type hpoins*.dat into the top search bar, if there are any results rename the extention into old instead of dat. (e.g. hpoins1.old)
    4. Type hpwins*.dat into the top search bar, if there are any results rename the extention into old instead of dat. (e.g. hpwins1.old)
    5. Launch the Run dialog by clicking both the Windows key and the R key on your keyboard. Type MSIEXEC /UNREGISTER into the Run dialog and click on OK.
    6. Launch the Run dialog by clicking both the Windows key and the R key on your keyboard. Type MSIEXEC /REGSERVER into the Run dialog and click on OK.
    7. Run the installation file and check for any difference.
    Regards,
    Shlomi
    Say thanks by clicking the Kudos thumb up in the post.
    If my post resolve your problem please mark it as an Accepted Solution

  • Error Message "the system cannot find the specified file"

    Hi,
    I built my website with iWeb, but when I want to publish it on my own domain (not .mac) I've always this error message (the system cannot find the specified file) with many files. I've tryed many ftp host but I still have the same problem. I ask my host domain manager and everything is ok with them. Si I guess that the problem comes from iWeb.
    Please help me.
    Thanks

    I get the error: Cannot Copy 08 the curse in on my house: Cannot find the specified file. Make sure you specify the correct path and file name.
    The song "the curse in on..." is on the "into the woods" soundtrack. I deleted the entire soundtrack from my iTunes Library, shut down and tried again. Same error. I did a search of all three hd (2 external and c) nothing found. I searched for song name and "into the woods" I even searched for the artist "Nicholas Parson Company" nothing on any of the 3 HDs. I also went into explorer and manually searched for the song under soundtracks, misc, various and I could not find it. I consolidated my library and restarted. I tried again and same error message. Can a level 4 or 5 offer any help. I am at a loss...
    The error won't let me copy one library to another HD.

  • NCO3 Error: cannot find STRUCTURE specified by LEDID_IDOC_TYPE

    Hi all,
    I am trying to get an IDoc defininition by IDOC_TYPE_COMPLETE_READ.
    When I create the function with:
    IRfcFunction rfcFunction = destination.Repository.CreateFunction("IDOC_TYPE_COMPLETE_READ");
    there is an Exception thrown:
    SAP.Middleware.Connector.RfcInvalidStateException: cannot find STRUCTURE specified by LEDID_IDOC_TYPE
       bei SAP.Middleware.Connector.RfcRepository.LocateDataType(RfcDataType dataType, String typeName, String fieldName, IRfcTable dataTypes, IRfcTable indirectTypes, Dictionary`2 typeToRowIndexMap)
       bei SAP.Middleware.Connector.RfcRepository.FindStructureMetadata(String typeName, String fieldName, IRfcTable dataTypes, IRfcTable indirectTypes, Dictionary`2 typeToRowIndexMap)
       bei SAP.Middleware.Connector.RfcRepository.FindTypeMetadata(String typeName, String fieldName, RfcDataType dataType, Boolean isTablesParam, IRfcTable dataTypes, IRfcTable indirectTypes, Dictionary`2 typeToRowIndexMap)
       bei SAP.Middleware.Connector.RfcRepository.ProcessRfcMetadataGetResult(RfcFunction rfcMetadataGet, String[] functions, String[] structures, String[] tables)
       bei SAP.Middleware.Connector.RfcRepository.LookupFunctionMetadataNew(String name)
       bei SAP.Middleware.Connector.RfcRepository.LookupFunctionMetadata(String name)
       bei SAP.Middleware.Connector.RfcRepository.GetFunctionMetadata(String name)
       bei SAP.Middleware.Connector.RfcRepository.CreateFunction(String name)
    does anyone know, what I am doing wrong?
    Kind regards
    christian

    Solved

  • System cannot find file specified during install officejet 6500

    I started my HP solution center software today to do some scanning over my wireless connection.  I received a message box indicating I needed to reinstall the original software that came with my OfficeJet 6500 wireless 709n printer.  when I started the software it recieved the message 'system cannot find file specified'.  No information was given on what file it was looking for.  I then downloaded the software from the HP site (OJ_AIO_6500_E709_Full_Win_WW_140_408.exe) and encountered the same result.  I hookup up my printer via USB and it appeared to go looking for driver updates.  After that the HP solution center software would run but would only connect to my printer if the USB was connected.  Still cannot run the printer software set.
    I recently upgraded my windows 8 64-bit to window 8.1.  It worked before that.  This is not the only software that was broken by the process.  Any help on how I can re-establish my wireless connection to my Officejet 6500 would be appreciated.  
    I also tried the Microsoft 'Fixit' solutions but they are not available for windows 8.1 :-)...

    Hello All,
    Try using the scrubber built into the CD or download.
    From original CD installation:
    1. Insert CD into drive, and then cancel the installer.
    2. Open  "Computer", and then right click on the CD drive and choose open.
    3. Open folder Util
    4. Open folder CCC
    5. Run the L3uninstall.exe (near the bottom of the list).
    6. When the uninstall has completed restart the computer
    7. Download and install the latest version of Adobe flash player
    http://www.adobe.com/support/flashplayer/downloads.html
    8. Restart the computer.
    9. Download and run the HP Printer Install Wizard.
    10. When it comes to the screen asking to accept the terms, don't yet. There will be a few options near the top of the Window. I need you to choose "Connection settings" or "Internet connection usage settings" (It will be something similar to what I just stated). It will give you the options to turn off automatic updates, I will need you to change all of these options to "Off" / "No".
    11. Once they're set to "Off" / "No", continue with the installation like you did before.
    If software was downloaded and extracted to your system:
    1. Type %temp% in the run field
    2. Look for, and open the folder starting with 7z (Example: 7zS2356)
    3. Open folder Util
    4. Open folder CCC
    5. Run the L3uninstall.exe (near the bottom of the list).
    6. When the uninstall has completed restart the computer
    7. Download and install the latest version of Adobe flash player
    http://www.adobe.com/support/flashplayer/downloads.html
    8. Restart the computer.
    9. Download and run the HP Printer Install Wizard.
    10. When it comes to the screen asking to accept the terms, don't yet. There will be a few options near the top of the Window. I need you to choose "Connection settings" or "Internet connection usage settings" (It will be something similar to what I just stated). It will give you the options to turn off automatic updates, I will need you to change all of these options to "Off" / "No".
    11. Once they're set to "Off" / "No", continue with the installation like you did before.
    Also, make sure all of the Windows Updates have been completed.
    Let me know if this works.
    Thank you,
    I worked on behalf of HP.

  • Cannot find file specified!!!

    To anyone that can help.
    Server 2012 R2
    Trying to run a .wsf file and the system tells me that it cannot find the file specified.
    Opened command prompt as admin and running cscript.exe shoreware_backup.wsf
    I am losing my mind
    Jared

    ' Backup Script for ShoreWare Server
    <job id="ShorewareBackup">
     <script language="VBScript" src="common.vbs" />
     <script language="VBScript">
    writeToLog "********** Starting Shoreware Backup Process **********"
    '----- load ini file, this should always be the first thing to do -----
    loadINI
    Dim backupDrive : backupDrive = BACKUP_DRIVE
    Dim backupRootDir : backupRootDir = BACKUP_ROOT_DIR
    Dim scriptsRootDir : scriptsRootDir = SCRIPTS_ROOT_DIR
    Dim scriptsDVMRootDir : scriptsDVMRootDir = SCRIPTS_DVM_ROOT_DIR
    Dim backupVMBRootDir : backupVMBRootDir = BACKUP_VMB_ROOT_DIR
    Dim backupUCBRootDir : backupUCBRootDir = BACKUP_UCB_ROOT_DIR
    Dim backupDVSRootDir : backupDVSRootDir = BACKUP_DVS_ROOT_DIR
    Dim ShoretelRootDir : ShoretelRootDir = SERVER_DIR
    Dim ShoretelDVMRootDir : ShoretelDVMRootDir = DVM_SERVER_DIR
    writeToLog "Backup Directory: " & backupDrive & backupRootDir
    If(serverType = SERVER_TYPE_HQ) Then
     writeToLog "Scripts Directory: " & scriptsRootDir
    ElseIf(serverType = SERVER_TYPE_DVM) Then
     writeToLog "Scripts Directory: " & scriptsDVMRootDir
    End If 
    Dim objShell, serverType, action, cmd_error
    Set objShell = WScript.createObject("wscript.shell")
    cmd_error = 0
    Dim  inIBMLF
    inIBMLF = False
    On Error Resume Next
    Dim lfMode : lfMode = objShell.RegRead(REG_LF_MODE)
    Select Case Err
    Case 0:
      writeToLog "Registry key RunningOnLFMode exist"
      if(lfMode) Then
       writeToLog "RunningOnLFMode is not 0, we are in LF mode"
       inIBMLF = True
      End If
    Case Else
      writeToLog "Registry key RunningOnLFMode does not exist"
    End Select
    On Error Goto 0
    '----- Check for errors in the command line -----
    If (WScript.Arguments.Length > 0) Then
     serverType = LCase(WScript.Arguments.Item(0))
     if(serverType = SERVER_TYPE_HQ or serverType = SERVER_TYPE_DVM or serverType = SERVER_TYPE_VMB or serverType = SERVER_TYPE_UCB or serverType = SERVER_TYPE_DVS) Then
      writeToLog "Server Type: " & serverType
     Else
      writeToLog "ERROR! Invalid server type: " & serverType
      cmd_error = 1 
     End If
    Else
     writeToLog "ERROR! Syntax error, check the command line."
     cmd_error = 1
    End If
    If (cmd_error = 1) Then
     WScript.Echo "Usage Error: shoreware_backup.wsf [" &_
           SERVER_TYPE_HQ & "," &_
           SERVER_TYPE_DVM & "," &_
           SERVER_TYPE_VMB & "," &_
           SERVER_TYPE_UCB & "," &_
           SERVER_TYPE_DVS & "] [" &_
           OPTION_ALL & " | " &_
           OPTION_DB & " | " &_
           OPTION_VM & " | " &_
           OPTION_LOG & "]"
     WScript.Quit -1
    End If
    '----- Verify this server is the server the user is expecting -----
    If ((serverType = SERVER_TYPE_HQ) and isRemoteServer) Then
     WScript.Echo TEXT_ERROR_NOT_HQ
     WScript.Quit -1
    ElseIf ((serverType = SERVER_TYPE_DVM) and Not isRemoteServer) Then
     WScript.Echo TEXT_ERROR_NOT_DVM'
     WScript.Quit -1
    Else
    End If
    '----- Parse the command line -----
    Dim index, doConfig, doVM, doCDR, doLogs
    index = 0
    doConfig = False
    doVM = False
    doCDR = False
    doLogs = False
    For Each action in WScript.Arguments
     If (index = 0) Then
      'Do nothing, this is the server type
     Else
      select case LCase(action)
       case OPTION_ALL
        doConfig = True
        doVM = True
        doCDR = True
        doLogs = True
       case OPTION_CONFIG
        doConfig = True
       case OPTION_VM
        doVM = True
       case OPTION_CDR
        doCDR = True
       case OPTION_LOG
        doLogs = True
       case OPTION_DB
        doConfig = True
        doCDR = True
       case ARG_SWITCH_VERBOSE
        VERBOSE_MODE = True
       case Else
        writeToLog "ERROR! Invalid option: " & action
        WScript.Echo "Warning: Unrecognized type " & action
      end select
     End If
     index = index + 1
    Next
    Dim dataRootDir : dataRootDir = objShell.RegRead(REG_SWDATA_DIR)
    writeToLog "SW Data Directory: " & dataRootDir
    '----- Stop services and perform backup -----
    If(serverType = SERVER_TYPE_HQ) Then
     writeToLog "---> cleaning current backup folder"
     rotateBackupFolder backupDrive, backupRootDir
     writeToLog "---> stopping hq services"
     stopHQ scriptsRootDir
     writeToLog "---> backing up hq data"
     backUpHQ dataRootDir, backupDrive, backupRootDir, doConfig, doVM, doCDR, doLogs
    ElseIf(serverType = SERVER_TYPE_DVM) Then
     writeToLog "---> cleaning current backup folder"
     rotateBackupFolder backupDrive, backupRootDir
     writeToLog "---> stopping dvm services"
     stopDVM scriptsDVMRootDir
     writeToLog "---> backing up dvm data"
     backUpDVM dataRootDir, backupDrive, backupRootDir, doConfig, doVM, doCDR, doLogs
    ElseIf(serverType = SERVER_TYPE_VMB) Then
     Dim vmbIp
     writeToLog "---> cleaning current backup folder"
     rotateBackupFolder backupDrive, backupVMBRootDir
     For Each vmbIp In VMB_LIST
      writeToLog "---> stopping vmb (" & vmbIp & ") services"
      stopVMB vmbIp
      writeToLog "---> backing up vmb data"
      backupVMB backupDrive, backupVMBRootDir, vmbIp
     Next
    ElseIf(serverType = SERVER_TYPE_UCB) Then
     Dim ucbIp
     writeToLog "---> cleaning current backup folder"
     rotateBackupFolder backupDrive, backupUCBRootDir
     For Each ucbIp In UCB_LIST
      writeToLog "---> stopping ucb (" & ucbIp & ") services"
      stopUCB ucbIp
      writeToLog "---> backing up ucb data"
      backupUCB backupDrive, backupUCBRootDir, ucbIp
     Next
    ElseIf(serverType = SERVER_TYPE_DVS) Then
     Dim dvsIp
     writeToLog "---> cleaning current backup folder"
     rotateBackupFolder backupDrive, backupDVSRootDir
     For Each dvsIp In DVS_LIST
    '  writeToLog "---> stopping dvs (" & dvsIp & ") services"
    '  stopDVS dvsIp
      writeToLog "---> backing up dvs data"
      backupDVS backupDrive, backupDVSRootDir, dvsIp
     Next
    End If
    '----- Save off current version of shoreware -----
    setDataVersion backupDrive, backupRootDir, serverType
    '----- Backup complete, so re-start services -----
    If(serverType = SERVER_TYPE_HQ) Then
     writeToLog "---> starting hq services"
     startHQ scriptsRootDir
    ElseIf(serverType = SERVER_TYPE_DVM) Then
     writeToLog "---> starting dvm services"
     startDVM scriptsDVMRootDir
    ElseIf(serverType = SERVER_TYPE_VMB) Then
     For Each vmbIp In VMB_LIST
      writeToLog "---> starting vmb (" & vmbIp & ") services"
      startVMB vmbIp
     Next
    ElseIf(serverType = SERVER_TYPE_UCB) Then
     For Each ucbIp In UCB_LIST
      writeToLog "---> starting ucb (" & ucbIp & ") services"
      startUCB ucbIp
     Next
    'ElseIf(serverType = SERVER_TYPE_DVS) Then
    ' For Each dvsIp In DVS_LIST
    '  writeToLog "---> starting dvs (" & dvsIp & ") services"
    '  startDVS dvsIp
    ' Next
    End If
    writeToLog "********** Completed Shoreware Backup Process **********"
    If(Not inIBMLF) Then
     WScript.Echo TEXT_BACKUP_COMPLETE
    End If
    '----- Script Done -----
    ' SubProcedure to backup the data on the HQ server
    ' Backs up the following:
    ' 1. \Inetpub\mailroot
    ' 2. \Inetpub\ftproot
    ' 3. \Windows\my.ini
    ' 4. \Shoreline Data\MessageFiles
    ' 5. \Shoreline Data\Prompts
    ' 6. \Shoreline Data\Scripts
    ' 7. \Shoreline Data\SoftSwitch
    ' 8. \Shoreline Data\Templates
    ' 9. (optional) \Shoreline Data\Database
    ' 10. (optional) \Shoreline Data\Vms
    ' 11. (optional) \Shoreline Data\Call Records 2
    ' 12. (optional) \Shoreline Data\Logs
    ' Input
    '  rootDir - (String) path of root directory containing Shoreline Data
    '  backupDrive - (String) disk drive of backup destination
    '  backupDir - (String) path of backup destination
    '  doConfig - (Boolean) if to backup "\Database"
    '  doVM - (Boolean) if to backup "\Vms"
    '  doCDR - (Boolean) if to backup "\Call Records 2"
    '  doLogs - (Boolean) if to backup "\Logs"
    sub backUpHQ (rootDir, backupDrive, backupDir, doConfig, doVM, doCDR, doLogs)
     'WScript.Echo "Backing up HQ..."
     'back-up mailroot
     folderCopy WINDOWS_DRIVE & MAILROOT_ROOT_DIR, backupDrive, backupDir & MAILROOT_ROOT_DIR, True
     ftpRootDirAsInRegistry = objShell.RegRead(REG_FTPROOT_DIR)
     writeToLog "ftp root Directory: " & ftpRootDirAsInRegistry
     'lngPos = Instr(ftpRootDirAsInRegistry, ",")
     'ftpRootDir = Left(ftpRootDirAsInRegistry, lngPos-1)
     ftpRootDir = ftpRootDirAsInRegistry
     lngPos1 = Instr(ftpRootDir, ":")
     ftpdirlength  =Len(ftpRootDir)
     ftpRootDirWithoutDriveName = Right(ftpRootDir, ftpdirlength-lngPos1)
     backupDirWithSlash = backupDir & "\"
     'back-up ftproot
     'folderCopy WINDOWS_DRIVE & FTPROOT_ROOT_DIR, backupDrive, backupDir & FTPROOT_ROOT_DIR, True
     'back-up ftproot directory
     folderCopy ftpRootDir, backupDrive, backupDirWithSlash & ftpRootDirWithoutDriveName, True
     writeToLog "ftproot directory backup done: " & backupDirWithSlash & ftpRootDirWithoutDriveName
     'back-up mysql configuration
     fileCopy SHOREWARE_DRIVE & ShoretelRootDir & "\MySQLCDR\MySQL Server\" & MYSQL_CONFIG_FILE, backupDrive, backupDir & ShoretelRootDir & "\MySQLCDR\MySQL Server\", True
     fileCopy SHOREWARE_DRIVE & ShoretelRootDir & "\MySQLConfig\MySQL Server\" & MYSQL_CONFIG_FILE, backupDrive, backupDir & ShoretelRootDir & "\MySQLConfig\MySQL Server\", True
     'back-up HQ data 
     Dim objFSO : Set objFSO = Wscript.CreateObject("Scripting.FileSystemObject")
     If objFSO.FolderExists(rootDir) Then
      Dim objFolder, objSubfolders, doCopy
      Set objFolder = objFSO.GetFolder(rootDir)
      Set objSubfolders = objFolder.SubFolders
      For Each objFolder in objSubfolders
       doCopy = False
       select case objFolder.Name
        case FOLDER_NAME_CONFIG
         if(doConfig) Then
          doCopy = True
         End If
        case FOLDER_NAME_VM
         if(doVM) Then
          doCopy = True
         End If
        case FOLDER_NAME_CDR
         if(doCDR) Then
          doCopy = True
         End If
        case FOLDER_NAME_LOGS
         if(doLogs) Then
          doCopy = True
         End If
        case Else
         doCopy = True
       end select
       if(doCopy) Then
        folderCopy objFolder.Path, backupDrive, backupDir & "\" & BACKUP_SW_DIR & objFolder.Name, True
       End If
      Next
     End If
    end sub
    ' SubProcedure to backup the data on the DVM server
    ' Backs up the following:
    ' 1. \Inetpub\mailroot
    ' 2. \Inetpub\ftproot
    ' 3. \Windows\my.ini
    ' 4. \Shoreline Data\MessageFiles
    ' 5. \Shoreline Data\Prompts
    ' 6. \Shoreline Data\Scripts
    ' 7. \Shoreline Data\SoftSwitch
    ' 8. \Shoreline Data\Templates
    ' 9. (optional) \Shoreline Data\Database
    ' 10. (optional) \Shoreline Data\Vms
    ' 11. (optional) \Shoreline Data\Call Records 2
    ' 12. (optional) \Shoreline Data\Logs
    ' Input
    '  rootDir - (String) path of root directory containing Shoreline Data
    '  backupDrive - (String) disk drive of backup destination
    '  backupDir - (String) path of backup destination
    '  doConfig - (Boolean) if to backup "\Database"
    '  doVM - (Boolean) if to backup "\Vms"
    '  doCDR - (Boolean) if to backup "\Call Records 2"
    '  doLogs - (Boolean) if to backup "\Logs"
    sub backUpDVM (rootDir, backupDrive, backupDir, doConfig, doVM, doCDR, doLogs)
     'WScript.Echo "Backing up DVM..."
     'back-up mailroot
     folderCopy WINDOWS_DRIVE & MAILROOT_ROOT_DIR, backupDrive, backupDir & MAILROOT_ROOT_DIR, True
     ftpRootDirAsInRegistry = objShell.RegRead(REG_FTPROOT_DIR)
     writeToLog "ftp root Directory: " & ftpRootDirAsInRegistry
     ftpRootDir = ftpRootDirAsInRegistry
     lngPos1 = Instr(ftpRootDir, ":")
     ftpdirlength  =Len(ftpRootDir)
     ftpRootDirWithoutDriveName = Right(ftpRootDir, ftpdirlength-lngPos1)
     backupDirWithSlash = backupDir & "\"
     'back-up ftproot directory
     folderCopy ftpRootDir, backupDrive, backupDirWithSlash & ftpRootDirWithoutDriveName, True
     writeToLog "ftproot directory backup done: " & backupDirWithSlash & ftpRootDirWithoutDriveName
     'back-up mysql configuration
     fileCopy SHOREWARE_DRIVE & ShoretelDVMRootDir & "\MySQLConfig\MySQL Server\" & MYSQL_CONFIG_FILE, backupDrive, backupDir & ShoretelDVMRootDir & "\MySQLConfig\MySQL Server\", True
     'back-up DVM data 
     Dim objFSO : Set objFSO = Wscript.CreateObject("Scripting.FileSystemObject")
     If objFSO.FolderExists(rootDir) Then
      Dim objFolder, objSubfolders, doCopy
      Set objFolder = objFSO.GetFolder(rootDir)
      Set objSubfolders = objFolder.SubFolders
      For Each objFolder in objSubfolders
       doCopy = False
       select case objFolder.Name
        case FOLDER_NAME_CONFIG
         if(doConfig) Then
          doCopy = True
         End If
        case FOLDER_NAME_VM
         if(doVM) Then
          doCopy = True
         End If
        case FOLDER_NAME_CDR
         if(doCDR) Then
          doCopy = True
         End If
        case FOLDER_NAME_LOGS
         if(doLogs) Then
          doCopy = True
         End If
        case Else
         doCopy = True
       end select
       if(doCopy) Then
        folderCopy objFolder.Path, backupDrive, backupDir & "\" & BACKUP_SW_DIR & objFolder.Name, True
       End If
      Next
     End If
    end sub
    ' SubProcedure to backup the data on the VMB switch
    ' Backs up the following:
    ' 1. \etc\ShoreTel.cfg
    ' 2. \etc\cfg.dat
    ' 3. \cf
    ' Input
    '  backupDrive - (String) disk drive of backup destination
    '  backupDir - (String) path of backup destination
    '  vmbIP - (String) ip address of vmb switch
    sub backupVMB(backupDrive, backupDir, vmbIP)
     Dim tarCF, copyCF, copyShorCFG, copyCfgDat, cleanUp
     Dim backUpPath : backUpPath = backupDrive & backupDir & "\" & BACKUP_VMB_DIR & "_" & vmbIP
     'create folder if doesn't exist
     Dim objFSO : Set objFSO = Wscript.CreateObject("Scripting.FileSystemObject")
     If Not objFSO.FolderExists(backUpPath) Then
      buildPath backUpPath
     End If
     tarCF = """" & PLINK_CMD & """"  & " -pw " & VMB_PASSWD & " " &_
        VMB_USER & "@" & vmbIP &_
        " ""tar -czf " & VMB_CF_TAR_FOLDER & VMB_CF_TAR_FILE & " " & VMB_CF_SHORELINEDATA_DIR & """"
     copyCF = """" & PSCP_CMD & """" & " -pw " & VMB_PASSWD & " " &_
        VMB_USER & "@" & vmbIP & ":" & VMB_CF_TAR_FOLDER & VMB_CF_TAR_FILE &_
        " """ & backUpPath & """"
     copyShorCFG = """" & PSCP_CMD & """"  & " -pw " & VMB_PASSWD & " " &_
        VMB_USER & "@" & vmbIP & ":" & VMB_SHORE_CFG_FOLDER & VMB_SHORE_CFG_FILE &_
        " """ & backUpPath & """"
     copyCfgDat = """" & PSCP_CMD & """" & " -pw " & VMB_PASSWD & " " &_
        VMB_USER & "@" & vmbIP & ":" & VMB_CGF_DAT_FOLDER & VMB_CGF_DAT_FILE &_
        " """ & backUpPath & """"
     cleanUp = """" & PLINK_CMD & """" & " -pw " & VMB_PASSWD & " " &_
        VMB_USER & "@" & vmbIP &_
        " ""rm -f " & VMB_CF_TAR_FOLDER & VMB_CF_TAR_FILE & """"
     runCmd tarCF
     runCmd copyCF
     runCmd copyShorCFG
     runCmd copyCfgDat
     runCmd cleanUp
    end sub
    ' SubProcedure to backup the data on the UCB switch
    ' Backs up the following:
    ' 1. \etc\ShoreTel.cfg
    ' 2. \etc\cfg.dat
    ' 3. \cf
    ' Input
    '  backupDrive - (String) disk drive of backup destination
    '  backupDir - (String) path of backup destination
    '  ucbIP - (String) ip address of ucb switch
    sub backupUCB(backupDrive, backupDir, ucbIP)
     Dim tarCF, copyCF, copyShorCFG, copyCfgDat, cleanUp
     Dim backUpPath : backUpPath = backupDrive & backupDir & "\" & BACKUP_UCB_DIR & "_" & ucbIP
     'create folder if doesn't exist
     Dim objFSO : Set objFSO = Wscript.CreateObject("Scripting.FileSystemObject")
     If Not objFSO.FolderExists(backUpPath) Then
      buildPath backUpPath
     End If
     tarCF = """" & PLINK_CMD & """"  & " -pw " & UCB_PASSWD & " " &_
        UCB_USER & "@" & ucbIP &_
        " ""tar -czf " & UCB_CF_TAR_FOLDER & UCB_CF_TAR_FILE & " " & UCB_CF_SHORELINEDATA_DIR & """"
     copyCF = """" & PSCP_CMD & """" & " -pw " & UCB_PASSWD & " " &_
        UCB_USER & "@" & ucbIP & ":" & UCB_CF_TAR_FOLDER & UCB_CF_TAR_FILE &_
        " """ & backUpPath & """"
     copyShorCFG = """" & PSCP_CMD & """"  & " -pw " & UCB_PASSWD & " " &_
        UCB_USER & "@" & ucbIP & ":" & UCB_SHORE_CFG_FOLDER & UCB_SHORE_CFG_FILE &_
        " """ & backUpPath & """"
     copyCfgDat = """" & PSCP_CMD & """" & " -pw " & UCB_PASSWD & " " &_
        UCB_USER & "@" & ucbIP & ":" & UCB_CGF_DAT_FOLDER & UCB_CGF_DAT_FILE &_
        " """ & backUpPath & """"
     cleanUp = """" & PLINK_CMD & """" & " -pw " & UCB_PASSWD & " " &_
        UCB_USER & "@" & ucbIP &_
        " ""rm -f " & UCB_CF_TAR_FOLDER & UCB_CF_TAR_FILE & """"
     runCmd tarCF
     runCmd copyCF
     runCmd copyShorCFG
     runCmd copyCfgDat
     runCmd cleanUp
    end sub
    ' SubProcedure to backup the data on the DVS switch
    ' Backs up the following:
    ' 1. \etc\ShoreTel.cfg
    ' 2. \etc\cfg.dat
    ' 3. \cf
    ' Input
    '  backupDrive - (String) disk drive of backup destination
    '  backupDir - (String) path of backup destination
    '  dvsIP - (String) ip address of dvs switch
    sub backupDVS(backupDrive, backupDir, dvsIP)
    ' Dim tarCF, copyCF, copyShorCFG, copyCfgDat, cleanUp
     Dim backUpPath : backUpPath = backupDrive & backupDir & "\" & BACKUP_DVS_DIR & "_" & dvsIP
     Dim backupcascmd
     'create folder if doesn't exist
     Dim objFSO : Set objFSO = Wscript.CreateObject("Scripting.FileSystemObject")
     If Not objFSO.FolderExists(backUpPath) Then
      buildPath backUpPath
     End If
    ' tarCF = """" & PLINK_CMD & """"  & " -pw " & DVS_PASSWD & " " &_
    '    DVS_USER & "@" & dvsIP &_
    '    " ""tar -czf " & DVS_CF_TAR_FOLDER & DVS_CF_TAR_FILE & " " & DVS_CF_SHORELINEDATA_DIR & """"
    ' copyCF = """" & PSCP_CMD & """" & " -pw " & DVS_PASSWD & " " &_
    '    DVS_USER & "@" & dvsIP & ":" & DVS_CF_TAR_FOLDER & DVS_CF_TAR_FILE &_
    '    " """ & backUpPath & """"
    ' copyShorCFG = """" & PSCP_CMD & """"  & " -pw " & DVS_PASSWD & " " &_
    '    DVS_USER & "@" & dvsIP & ":" & DVS_SHORE_CFG_FOLDER & DVS_SHORE_CFG_FILE &_
    '    " """ & backUpPath & """"
    ' copyCfgDat = """" & PSCP_CMD & """" & " -pw " & DVS_PASSWD & " " &_
    '    DVS_USER & "@" & dvsIP & ":" & DVS_CGF_DAT_FOLDER & DVS_CGF_DAT_FILE &_
    '    " """ & backUpPath & """"
    ' cleanUp = """" & PLINK_CMD & """" & " -pw " & DVS_PASSWD & " " &_
    '    DVS_USER & "@" & dvsIP &_
    '    " ""rm -f " & DVS_CF_TAR_FOLDER & DVS_CF_TAR_FILE & """"
    ' backupcascmd = "rdiff-backup.exe -v7  --force --no-eas --remote-schema "plink -pw ShoreTel  %%s rdiff-backup --server" 
    [email protected]::/rdiff/back1  c:\mywindowsdata > c:\out.txt 2>&1"
     backupcascmd = "rdiff-backup.exe -v7  --force --no-eas --remote-schema " &_
        """" & PLINK_CMD & " -pw " & DVS_PASSWD & " %%s rdiff-backup --server" & """" &_
        DVS_USER & "@" & dvsIP & "::" & DVS_CF_DIR & " " & """" & backUpPath & """"
     runCmd backupcascmd
    ' runCmd tarCF
    ' runCmd copyCF
    ' runCmd copyShorCFG
    ' runCmd copyCfgDat
    ' runCmd cleanUp
    end sub
    ' SubProcedure to rotate the backup folder.  It will archive the
    '  current backup folder based on the BACKUP_ARCHIVE_SIZE value.
    ' Input
    '  backupDrive - (String) disk drive of backup destination
    '  backupDir - (String) path of backup destination
    sub rotateBackupFolder (backupDrive, backupDir)
     Dim objFSO, objFolder, newBackupFolderName
     Dim backupFolder : backupFolder = backupDrive & backupDir
     Set objFSO = Wscript.CreateObject("Scripting.FileSystemObject")
     For i=BACKUP_ARCHIVE_SIZE to 0 Step -1
      If(i = 0) Then
       newBackupFolderName = backupFolder
      Else
       newBackupFolderName = backupFolder & i
      End If
      If objFSO.FolderExists(newBackupFolderName) Then
       Set objFolder = objFSO.GetFolder(newBackupFolderName)
       If(i = BACKUP_ARCHIVE_SIZE) Then
        objFolder.Delete True
       Else
        newBackupFolderName = backupFolder & i+1
        objFolder.Move newBackupFolderName
       End If
      End If
     Next
    end sub
    ' SubProcedure to perform a folder copy.  Utilizes the Windows xcopy
    '  command.  The xcopy switches used:
    '    /E Copies directories and subdirectories, including empty ones.
    '    /I If destination does not exist and copying more than one file,
    '       assumes that destination must be a directory.
    '    /K Copies attributes. Normal Xcopy will reset read-only
    '       attributes.
    '    /C Continues copying even if errors occur.
    '    /Y Suppresses prompting to confirm you want to overwrite an
    '       existing destination file.
    ' Input
    '  src - (String) path of source folder
    '  dstDrive - (String) disk drive of destination
    '  dstFolder - (String) path of destination
    '  force - (Boolean) if false, will prompt before overwriting
    '          existing files
    sub folderCopy (src, dstDrive, dstFolder, force)
     Dim objFSO
     Dim dst : dst = dstDrive & dstFolder
     Set objFSO = Wscript.CreateObject("Scripting.FileSystemObject")
     If objFSO.FolderExists(src) Then
      Dim objFolder, objDrive
      'Check for available disk space first
      Set objFolder = objFSO.GetFolder(src)
      Set objDrive = objFSO.GetDrive(dstDrive)
      If isThereAvailableSpace(objDrive, objFolder.Size) Then
       Dim command : command = "xcopy """ & src & """ """ & dst & """ /E /I /K /C"
       If (force) Then
        command = command & " /Y"
       End If
       runCmd command
      Else
       writeToLog "ERROR! Insufficient Disk Space to copy folder: " & src
       WScript.Echo "Error! Insufficient Disk Space!"
      End If
     Else
      writeToLog "ERROR! Folder not found: " & src
      WScript.Echo "ERROR: Folder doesn't exist (" & src & ")"
     End If
    end sub
    ' SubProcedure to perform a file copy. Utilizes the Windows xcopy
    '  command. The xcopy switches used:
    '    /I If destination does not exist and copying more than one file,
    '       assumes that destination must be a directory.
    '    /K Copies attributes.
    '    /C Continues copying even if errors occur.
    '    /Y Suppresses prompting to confirm you want to overwrite an
    '       existing destination file.
    ' Input
    '  src - (String) path of source file
    '  dstDrive - (String) disk drive of destination
    '  dstFile - (String) path of destination
    '  force - (Boolean) if false, will prompt before overwriting
    '          existing files
    sub fileCopy (src, dstDrive, dstFile, force)
     Dim objFSO
     Dim dst : dst = dstDrive & dstFile
     Set objFSO = Wscript.CreateObject("Scripting.FileSystemObject")
     If objFSO.FileExists(src) Then
      Dim objFile, objDrive
      'Check for available disk space first
      Set objFile = objFSO.GetFile(src)
      Set objDrive = objFSO.GetDrive(dstDrive)
      If isThereAvailableSpace(objDrive, objFile.Size) Then
       Dim command : command = "xcopy """ & src & """ """ & dst & """ /I /K /C"
       If (force) Then
        command = command & " /Y"
       End If
       runCmd command
      Else
       writeToLog "ERROR! Insufficient Disk Space to copy file: " & src
       WScript.Echo "Error! Insufficient Disk Space!"
      End If
     Else
      writeToLog "ERROR! File not found: " & src
      WScript.Echo "ERROR: File doesn't exist (" & src & ")"
     End If
    end sub
    ' Function to check if there's sufficient disk space for the
    ' requested size
    ' Input
    '  objDrive - (Object) the disk drive to check for space
    '  spaceNeeded - (Integer) number of bytes being requested
    ' Return
    '  (Boolean) if the requested space is available
    function isThereAvailableSpace(objDrive, spaceNeeded)
     If (objDrive.AvailableSpace > spaceNeeded) Then
      isThereAvailableSpace = True
     Else
      isThereAvailableSpace = False
     End If
    end function
    ' SubProcedure to write current version of Shoreware to a file
    ' Input
    '  backupDrive - (String) disk drive of backup destination
    '  backupDir - (String) path of backup destination
    sub setDataVersion (backupDrive, backupDir, serverType)
     Dim version
     Dim fileName : fileName = backupDrive & backupDir & "\" & SW_VERSION_FILE
     If(serverType = SERVER_TYPE_HQ) Then
      version = objShell.RegRead(REG_HQ_VERSION)
     ElseIf(serverType = SERVER_TYPE_DVM) Then
      version = objShell.RegRead(REG_DVM_VERSION)
     ElseIf(serverType = SERVER_TYPE_VMB) Then
      'For now, VMB doesn't do any version checking
      Exit sub
     ElseIf(serverType = SERVER_TYPE_UCB) Then
      'For now, UCB doesn't do any version checking
      Exit sub
     ElseIf(serverType = SERVER_TYPE_DVS) Then
      'For now, DVS doesn't do any version checking
      Exit sub
     End If
     writeToLog "SW Data Version: " & version
     writeToFile fileName, 2, version
    end sub
     </script>
    </job>
    Jared

  • Sytsem cannot find the specified file

    I installed apo2011 to clean my registry and when I tried to log back into firefox it was gone, I tried to download it and I keep getting this message once it unzip (system cannot find the file specified)

    See:
    *http://kb.mozillazine.org/Windows_error_opening_Internet_shortcut_or_local_HTML_file_-_Firefox

  • C4599 printer cannot find file specified

    Downloaded PS_AIO_04_C4500_USW_Full_Win_WW_130_140.exe and tried to install c4599 printer.  Get error System cannot find specified file "BlockSysUserInstall.exe which located in the Temp directory.  I have noted it keeps referring to a hardcoded "7zS2F4B".  Have tried renaming  file in Temp directory to "7zS2F4B" but still no install.
    This question was solved.
    View Solution.

    Hi foberg,
    Follow the steps below to update the software to the latest version.
    Step one: Clear temp directory
    1. Type %temp% in the run or search for programs and files field
    2. Highlight all the files in this folder, and then press the delete key to delete. If you get a message that the file is in use you will need to skip this file(s).
    3. Continue with Step 2 below
    Step two: Downloaded and extracted to your system:
    1. Download the full feature software and drivers
    http://h10025.www1.hp.com/ewfrf/wc/softwareDownloa​dIndex?softwareitem=mp-74912-1&cc=us&dlc=en&lc=en&​...=
    2. Once the download is finished double click on the file to extract the software.
    3. When the installation window opens press the cancel button to stop the installation
    4. Type %temp% in the run or search for programs and files field
    5. Look for, and open the folder starting with 7z (Example: 7zS2356)
    6. Right click on the folder, and select Copy
    7. Close that window, and all your open windows, and then in the middle of the desktop right click your mouse, and select Paste. This will move the 7z folder to your desktop.
    8. Open the 7z folder you just copied to your desktop
    9. Open folder Util
    10. Open folder CCC
    11. Run the uninstall_L4
    12. When the uninstall has completed restart the computer
    13. Run Disk cleanup from Accessories\ System Tools folder under all programs
    14. Download and install the latest version of Adobe flash player
    http://www.adobe.com/support/flashplayer/downloads​.html
    15. Open the 7z folder, and then double click on the Setup.exe file which will be toward the bottom of the open window. Follow the on screen instructions to reinstall your printer.
    Let me know what you find out?
    I am an HP employee.
    Say Thanks by clicking the Kudos Star in the post that helped you.
    Please mark the post that solves your problem as "Accepted Solution"

  • System cannot find path specified.please advise

    hi, i can run my previously saved programs in console mode but i cannot compile anything
    as the system cannot find the path.i have douwnloaded the latest-jdk 6 update 6.
    i have the file where my programs are and then i type c:\jdk1.6.0_06\bin\javac Calculator.java
    but it cant find it...please help?

    include c:\jdk1.6.0_06\bin\ in your path environment variable, and then call "javac" instead of trying to call directly it with its absolute path

  • Invoke-CMReport cannot find the report server

    I'm having trouble getting the invoke-cmreport commandlet to run properly.  I know there are some challenges with the parameters, but I keep getting an error "Could not find a Reporting Services Point on site DV0 and server iodwdbs091.dev.#####.org".
     Here is the command I am trying to run:
    Invoke-CMReport -ReportPath '/ConfigMgr_DV0/Alerts/Alerts Generated Most Often' -SiteCode DV0 -SrsServerName iodwdbs091.dev.#######.org
    Is there any reference material or examples of how to run this?

    The reference documentation is located here:
    http://technet.microsoft.com/en-us/library/jj870923(v=sc.20).aspx
    Also, I just ran a quick test and I have no problems with connecting to the reporting services. That's pretty straight forward, the problems start after that. After connecting to the reporting services it seems to connect to the "old" formed URL
    from pre-reporting services. It might be an idea to log this on Microsoft Connect. In the mean time see:
    http://www.reddit.com/r/PowerShell/comments/1mlxc7/how_should_i_extract_sccm_2012_information_via/
    My Blog: http://www.petervanderwoude.nl/
    Follow me on twitter: pvanderwoude

  • Cannot find the specified instance exception

    Hello,
    I am having a problem with my Bpel process.
    when I post to XML, i am getting the following:
    <Fault env="http://schemas.xmlsoap.org/soap/envelope/" >
    <faultcode>env:Server</faultcode>
    <faultstring>java.lang.IllegalStateException: Cannot call setRollbackOnly() current thread is NOT associated with a transaction</faultstring>
    </Fault>
    what does this mean ?
    why is it happening ?
    How can resolve this issue ?
    This is urgent,
    Thanks everyone,
    AJ

    sorry, it took a while to respond. are you still facing the issue? this sounds like, there was some system exception where the j2ee container terminated/ended the jta transaction but the exception reached to bpel engine layer where bpel engine trying to set rollback only on an already ended transaction hence this error. the root issue is why the j2ee container ended that jta transaction, is there any other exceptions before this exception in the log file. i assume some kind of timeout or system exceptions happened before reaching the setRollbackOnly call.

Maybe you are looking for

  • ?split-by-page-break:?

    Hi i am trying to use the command <?split-by-page-break:?> to skip a page in my XmlPublisher report if a certain condition is true. The Command doesn't work.( it works only in a loop...) I tried the commands <xsl:attribute name="break-before">page</x

  • Lightroom 5.5 is not cataloging all images in some folders

    Version: Lightroom 5.5 CC 2014 System: Windows Pro 8.1 R2 64 bit When I last updated my catalog in Lightroom, I discovered that in at least two folders, Lightroom did not catalog all of the images in the actual folder on my computer. Because of the n

  • The movement type 261 is greyed out in MIGO

    HI Experts, We have a scenario where we want to use the copy of movement type 261 to post goods issue against a process order. In MIGO even if I change it in the initial screen and execute, system takes only 261. System is not allowing to change it i

  • Problem with alv edit and save

    hi all,        can anyone find me a solution for alv edit and save...the issue is that i will be editing and just clicking on save button withot any row selction and the data changed should be updated in database.                                     

  • ITunes Music Library file cannot be saved.  An unknown error occurred (-54)

    I just went through the problem of not being able to access my iTunes library and think I got that fixed. It is on an external drive because it is about 55gb's of HD space. I have it linked via an alias on my internal drive of my powerbook. Now I get