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)
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
|
|
|
|
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)
I have to be honest that I can't really tell what your problem that you need help with is.
|
|
|
|
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)
It's not working.. i expect to see the mailbox on the called script.. but nothing to see.
|
|
|
|
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)
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.
|
|
|
|