Vbscript CPAU

Author Message
pvds

  • Total Posts : 7
  • Scores: 0
  • Reward points : 0
  • Joined: 11/30/2011
  • Status: offline
Vbscript CPAU Thursday, December 22, 2011 1:27 AM (permalink)
0
L.S.
I use this command:
strCmd = "%COMSPEC% /c cpau -u " & user & " -p " & pwd & " -ex " & chr(34) & "wscript.exe C:\Users\peters\Documents\ISMH\Login_Scripts\inlog_install.vbs" & Chr(34) 
 wShell.Run strCmd

 
: user is admin
: in the inlog_install.vbs is only a msgbox just for testpurposes.
Start with an HTA in the logon of a user with limited rights.
Anybody can give a hand on this ?
PVDS
 
#1
    ebgreen

    • Total Posts : 8227
    • Scores: 98
    • Reward points : 0
    • Joined: 7/12/2005
    • Status: offline
    Re:Vbscript CPAU Thursday, December 22, 2011 3:19 AM (permalink)
    0
    I have to be honest that I can't really tell what your problem that you need help with is.
    "... when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick
    Goog places to start:http://www.visualbasicscript.com/m_24727/tm.htm
    http://www.visualbasicscript.com/m_47117/tm.htm
     
    #2
      pvds

      • Total Posts : 7
      • Scores: 0
      • Reward points : 0
      • Joined: 11/30/2011
      • Status: offline
      Re:Vbscript CPAU Thursday, December 22, 2011 3:25 AM (permalink)
      0
      It's not working..
      i expect to see the mailbox on the called script.. but nothing to see.
       
       
      #3
        ebgreen

        • Total Posts : 8227
        • Scores: 98
        • Reward points : 0
        • Joined: 7/12/2005
        • Status: offline
        Re:Vbscript CPAU Thursday, December 22, 2011 3:39 AM (permalink)
        0
        Well I have never used the cpau utility, but I would suspect that your issue is with the quoting in your command. Try this:
         
        strCmd = "%COMSPEC% /c cpau -u " & user & " -p " & pwd & " -ex " & chr(34) & "wscript.exe C:\Users\peters\Documents\ISMH\Login_Scripts\inlog_install.vbs" & Chr(34)
        WScript.Echo strCmd  wShell.Run strCmd  
         
        And make sure that the command has the proper syntax.
        "... when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick
        Goog places to start:http://www.visualbasicscript.com/m_24727/tm.htm
        http://www.visualbasicscript.com/m_47117/tm.htm
         
        #4

          Online Bookmarks Sharing: Share/Bookmark

          Jump to:

          Current active users

          There are 0 members and 1 guests.

          Icon Legend and Permission

          • New Messages
          • No New Messages
          • Hot Topic w/ New Messages
          • Hot Topic w/o New Messages
          • Locked w/ New Messages
          • Locked w/o New Messages
          • Read Message
          • Post New Thread
          • Reply to message
          • Post New Poll
          • Submit Vote
          • Post reward post
          • Delete my own posts
          • Delete my own threads
          • Rate post

          2000-2012 ASPPlayground.NET Forum Version 3.9