After experiencing a lot of down time, We decided to move this site to
CrystalTech.com. CrystalTech.com is powered by only the finest Windows servers providing the best performance, reliability, and value anywhere.
%comspec% Error
|
Author |
Message
|
dnomde44
-
Total Posts
:
2
- Scores: 0
-
Reward points
:
0
- Joined: 9/7/2010
-
Status: offline
|
%comspec% Error
Tuesday, September 07, 2010 8:01 AM
( permalink)
I am tryin to create a script to automatically add a user to the local machine for remote desktop. I keep receiving an error expected end of statement at the R in remote desktop users line. I have tried for several days now and I am running out of reasons why it wont work. I am new to vbscript writing sorry to bother with what may be a trivial problem. option explicit dim objshell set objshell = createobject("wscript.shell") objshell.run "%comspec% /k net localgroup "remote desktop users" domain\user /add" wscript.quit
|
|
|
|
rasimmer
-
Total Posts
:
2360
- Scores: 163
-
Reward points
:
0
- Joined: 3/19/2009
- Location: Cedar Rapids, IA
-
Status: offline
|
Re:%comspec% Error
Tuesday, September 07, 2010 2:32 PM
( permalink)
objshell.run "%comspec% /k net localgroup " & Chr(34) & "remote desktop users" & Chr(34) & " domain\user /add"
|
|
|
|
dnomde44
-
Total Posts
:
2
- Scores: 0
-
Reward points
:
0
- Joined: 9/7/2010
-
Status: offline
|
Re:%comspec% Error
Wednesday, September 08, 2010 2:37 AM
( permalink)
Thank you so much!!!!!! I would have never figured that out. now I am going to look up those concatenation commands to learn what they mean lol
|
|
|
|
Online Bookmarks Sharing: