Click here to Skip to main content
15,905,781 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: progress bar Pin
Ashfield17-Feb-09 1:32
Ashfield17-Feb-09 1:32 
QuestionDrag-arrow on usercontrol in designer Pin
vigylant16-Feb-09 23:43
vigylant16-Feb-09 23:43 
QuestionVBScript logoff Pin
JR21216-Feb-09 22:27
JR21216-Feb-09 22:27 
AnswerRe: VBScript logoff Pin
DaveAuld16-Feb-09 23:20
professionalDaveAuld16-Feb-09 23:20 
GeneralRe: VBScript logoff Pin
JR21216-Feb-09 23:34
JR21216-Feb-09 23:34 
AnswerRe: VBScript logoff Pin
Dave Kreskowiak17-Feb-09 3:49
mveDave Kreskowiak17-Feb-09 3:49 
GeneralRe: VBScript logoff Pin
JR21217-Feb-09 21:14
JR21217-Feb-09 21:14 
GeneralRe: VBScript logoff Pin
Dave Kreskowiak18-Feb-09 2:13
mveDave Kreskowiak18-Feb-09 2:13 
First, shouldn't that Win32Shutdown line be above the Next statement it's sitting under??

jan212r wrote:
Becourse I don't need that value(normely the pc must close)


Well, obviously you do, because it's returning an error that you can use to try and diagnose this. That error code is that the binding handle is invalid. This leads me to believe that either the account you're running this code under doesn't have sufficient permissions on the remote PC to shut it down (there is a privilege listed in the Win32_OperatingSystem documentation) or there is a problem with the WMI installation on those machines.


A guide to posting questions on CodeProject[^]



Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic
     2006, 2007, 2008




Questionhexa Pin
aswd16-Feb-09 21:11
aswd16-Feb-09 21:11 
AnswerRe: hexa Pin
DaveAuld16-Feb-09 23:23
professionalDaveAuld16-Feb-09 23:23 
GeneralRe: hexa Pin
aswd17-Feb-09 5:03
aswd17-Feb-09 5:03 
GeneralRe: hexa Pin
EliottA17-Feb-09 5:35
EliottA17-Feb-09 5:35 
GeneralRe: hexa Pin
DaveAuld17-Feb-09 5:55
professionalDaveAuld17-Feb-09 5:55 
GeneralRe: hexa Pin
aswd17-Feb-09 15:30
aswd17-Feb-09 15:30 
GeneralRe: hexa Pin
EliottA18-Feb-09 2:21
EliottA18-Feb-09 2:21 
QuestionInserting Graphs in VB using Visual Studio Pin
EvanSaunders16-Feb-09 20:00
EvanSaunders16-Feb-09 20:00 
AnswerRe: Inserting Graphs in VB using Visual Studio Pin
DaveAuld16-Feb-09 23:27
professionalDaveAuld16-Feb-09 23:27 
QuestionProblem with passing UDT array from Excel VBA to C++ dll Pin
eight16-Feb-09 19:51
eight16-Feb-09 19:51 
AnswerRe: Problem with passing UDT array from Excel VBA to C++ dll Pin
Dave Kreskowiak17-Feb-09 1:48
mveDave Kreskowiak17-Feb-09 1:48 
GeneralRe: Problem with passing UDT array from Excel VBA to C++ dll Pin
eight17-Feb-09 3:30
eight17-Feb-09 3:30 
GeneralRe: Problem with passing UDT array from Excel VBA to C++ dll Pin
Dave Kreskowiak17-Feb-09 3:40
mveDave Kreskowiak17-Feb-09 3:40 
QuestionHow can i get the reference file (dll) information from the other application (exe) file Pin
kvelu.d16-Feb-09 18:52
kvelu.d16-Feb-09 18:52 
AnswerRe: How can i get the reference file (dll) information from the other application (exe) file Pin
Steven J Jowett17-Feb-09 1:26
Steven J Jowett17-Feb-09 1:26 
AnswerRe: How can i get the reference file (dll) information from the other application (exe) file Pin
Dave Kreskowiak17-Feb-09 1:36
mveDave Kreskowiak17-Feb-09 1:36 
QuestionCheck Box Save Pin
cwscotty16-Feb-09 12:00
cwscotty16-Feb-09 12:00 

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.