Click here to Skip to main content
15,909,051 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: how to start a vbs script in a vbs script on a client computer Pin
Member 1191673525-Feb-16 0:58
Member 1191673525-Feb-16 0:58 
GeneralRe: how to start a vbs script in a vbs script on a client computer Pin
Dave Kreskowiak25-Feb-16 1:42
mveDave Kreskowiak25-Feb-16 1:42 
QuestionStarting the process as user will not work on Win2012 Pin
byka23-Feb-16 1:29
byka23-Feb-16 1:29 
AnswerRe: Starting the process as user will not work on Win2012 Pin
Dave Kreskowiak23-Feb-16 4:06
mveDave Kreskowiak23-Feb-16 4:06 
GeneralRe: Starting the process as user will not work on Win2012 Pin
byka23-Feb-16 5:13
byka23-Feb-16 5:13 
GeneralRe: Starting the process as user will not work on Win2012 Pin
Dave Kreskowiak23-Feb-16 5:16
mveDave Kreskowiak23-Feb-16 5:16 
GeneralRe: Starting the process as user will not work on Win2012 Pin
byka23-Feb-16 7:14
byka23-Feb-16 7:14 
GeneralRe: Starting the process as user will not work on Win2012 Pin
Dave Kreskowiak23-Feb-16 8:14
mveDave Kreskowiak23-Feb-16 8:14 
No, you're NOT accessing "CMD" as SID1 and as you've been told before, you don't need CMD.EXE. The process you are launching is done as the user you're impersonating. If that user doesn't have access to the shares you're going to get Access Denied.

The process is not created as SID1. It's created as the user you're impersonating. A security context is first created for the user you're impersonating, then CreateProcessAsUser is called in that context to load the executable and setup the process. The problem is that the user you're impersonating cannot load the executable because it doesn't have access to the share where the executable is stored. Access Denied.

You're going to have to grant access to the network location to the user you're impersonating for this to work.
A guide to posting questions on CodeProject

Click this: Asking questions is a skill.
Seriously, do it.

Dave Kreskowiak

GeneralRe: Starting the process as user will not work on Win2012 Pin
Eddy Vluggen23-Feb-16 8:35
professionalEddy Vluggen23-Feb-16 8:35 
GeneralRe: Starting the process as user will not work on Win2012 Pin
Dave Kreskowiak23-Feb-16 9:01
mveDave Kreskowiak23-Feb-16 9:01 
QuestionProblem with receiving UDP from AVR microcontroller Pin
Mototest22-Feb-16 7:35
Mototest22-Feb-16 7:35 
QuestionBCP or Bulk Insert Pin
byka19-Feb-16 5:51
byka19-Feb-16 5:51 
AnswerRe: BCP or Bulk Insert Pin
Eddy Vluggen19-Feb-16 6:00
professionalEddy Vluggen19-Feb-16 6:00 
QuestionVBS for next loop Pin
Member 1191673518-Feb-16 23:31
Member 1191673518-Feb-16 23:31 
AnswerRe: VBS for next loop Pin
Wombaticus19-Feb-16 0:04
Wombaticus19-Feb-16 0:04 
GeneralRe: VBS for next loop Pin
Member 1191673519-Feb-16 0:15
Member 1191673519-Feb-16 0:15 
GeneralRe: VBS for next loop Pin
Wombaticus19-Feb-16 0:26
Wombaticus19-Feb-16 0:26 
GeneralRe: VBS for next loop Pin
Member 1191673519-Feb-16 0:36
Member 1191673519-Feb-16 0:36 
GeneralRe: VBS for next loop Pin
Wombaticus19-Feb-16 0:51
Wombaticus19-Feb-16 0:51 
GeneralRe: VBS for next loop Pin
Member 1191673519-Feb-16 0:53
Member 1191673519-Feb-16 0:53 
GeneralRe: VBS for next loop Pin
Wombaticus19-Feb-16 0:55
Wombaticus19-Feb-16 0:55 
GeneralRe: VBS for next loop Pin
Member 1191673519-Feb-16 1:01
Member 1191673519-Feb-16 1:01 
GeneralRe: VBS for next loop Pin
Wombaticus19-Feb-16 1:24
Wombaticus19-Feb-16 1:24 
GeneralRe: VBS for next loop Pin
CHill6019-Feb-16 2:14
mveCHill6019-Feb-16 2:14 
GeneralRe: VBS for next loop Pin
Member 1191673523-Feb-16 22:26
Member 1191673523-Feb-16 22:26 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.