WMI Process Call Create gives good feedback but doesn't work
I'm developing a VB.NET application able to control remotely other computers, send commands and retrieve information
Here's the code:
Dim connOptions As ConnectionOptions = New ConnectionOptions()
connOptions.Impersonation = System.Management.ImpersonationLevel.Impersonate
connOptions.Authentication = System.Management.AuthenticationLevel.Packet
connOptions.EnablePrivileges = True
Dim theScope As ManagementScope = New ManagementScope("\\" & IPAddressTextBox.Text & "\root\cimv2", connOptions)
Dim theClass As New ManagementClass(theScope, New ManagementPath("Win32_Process"), New ObjectGetOptions())
Dim iPe As ManagementBaseObject = theClass.GetMethodParameters("Create")
iPe("CommandLine") = CommandLineTextBox.Text
theClass.InvokeMethod("Create", iPe, Nothing)
The problem is that even if it gives a "0" ReturnValue, which means the operation is successful, the process doesn't actually starts on the remote machine (which is in the local network)
In reality, the process actually starts but doesn't show up, in the Task Manager of the remote machine, is visible ONLY under "Processes" -> "Show processes from all users", at this point, i can see the process i created from the other
main machine, the process "User Name" is the main computer username, and not the remote machine one, is that the problem?
I'm using Impersonate as the impersonation level and Packet as the Authentication level (as you can see from the code), is this what i'm doing wrong?
also it doesn't work with WMIC with "wmic /NODE:IPADDRESS process call create COMMANDLINE"
Thanks you for your time.
It doesn't matter whether you use VB, VBScript, or PowerShell. If you use any of these languages to create a process on a remote machine using WMI, the new process is always going to run in the background. You cannot make it run as a visible process. This
is by design and is explicitly stated in the Remarks section of the method's documentation:
http://msdn.microsoft.com/en-us/library/aa389388.aspx
For security reasons the Win32_Process.Create method cannot be used to start an interactive process remotely.
-- Bill Stewart [Bill_Stewart]
Similar Messages
-
The wifi at my school isn't very good. And I can't send iMessages through it. It works for some apps like score center and my radar app, but doesn't work for other apps like clash of clans and iMessage. How can I get it to work on my school wifi. I have an iPhone 4S on AT&T and iOS 7.04
In a roaming network, your "main" router is the device that would require port mapping/forwarding to be configured in order to access the IP camera from the Internet. This router is also the one that would be provide the private IP address for the camera which you will want to be a static one.
So as you described your network, the IP cameras should be getting an IP address or you assigned it a static one and this is the address that you would enter in the Private IP address (or equivalent depending on the router used) field when setting up port mapping.
If you are not able to access this camera from the local network, then this should be troubleshot first. -
I created an apple ID account to my Iphone, but the system doesn´t send the verification link to my email adress. I tried many times with the buton "send verification email" but doesn´t work. My mailbox doesn´t receive any mail.
My account work correctly.
please I need help.
Thank you.It's a really bad idea to post your email addresess - it's an invitation to spam - and I've asked the Hosts to remove them.
This is a user-to-user forum and no-one on here can take any direct action. If your Yahoo address is not working that's something you would need to take up with Yahoo - have you checked it by sending yourself an email to it?
Otherwise you will need to contact Support: go to https://expresslane.apple.com/ and click on 'iTunes' in the center column and then 'iTunes Store' in the right-hand column and proceed from there. -
Create Slideshow Display sequence property doesn't work
Create Slideshow Display sequence property doesn't work,
I have selcted random but the slideshow always plays in order. I searched the scripts for any logi related to this and other properties set, but cannot find any refernce to any of these propoerties:
transType='Random' transTime='1' firstImage='1' dispSequence='1'>
How can I make the slideshow start with a random image each time?
thanks
sHello,
I am back on this question, about how to get the non-flash version of the Creatr Slideshow v1.6 to display the images in a random sequence. Can anyone point me in the right direction, please?
thanks
juno -
I updated my iphone 5 to ios 6.0.2. my wifi says its connected but doesn't work now. It doesn't matter what wifi network I connect to. It worked before updating my phone. I can no longer use facetime or use wifi at all. I'm not sure what to do to fix it.
I'm having similar issues with my phone. I got my first iPhone recently, only had an iPod touch gen4 for a little over a year. Updated to 6.0.2 when we got the phone (iPhone 5) a few days before Christmas. When I got home on the evening of January 11, my phone would not connect the router anymore. I was able to get it to connect after resetting the phone and the router, updating the router, and manually connecting. That laste for a few minutes and then wouldn't work anymore. I live in an area with very limited service, we have a network extender installed to help, and I am barely getting a 3G signal at times.
My wife's iPad 4, my touchiPod 4, and all of our laptops are working just fine on the router. When I dropped my kid off at school today, I noticed that I am not even seeing the school network anymore from the parking lot where before I got 3 or 4 bars and could connect to their wifi when I was there. Today my phone goes back and forth between seeing my home network but not connecting, to not even seeing the network at all even from the same room that the router is in.
Hope Apple fixes this problem soon.............. -
Hi i need help please i been playing clash of clans over 13 months. And today o realise what someone using my game Centra. Someone playing on my game Clash of Clans. I been change my Apple ID password, email, but doesn't work. Then I playing game I can see what someone else trying connecting to my game And I don't know what to do.So if you can help me please? I don't wanna lose my game.
Contact iTunes
Contact iTunes -
Hi i need help please i been playing clash of clans over 13 months. And today o realise what someone using my game Centra. Someone playing on my game Clash of Clans. I been change my Apple ID password, email, but doesn't work. When I playing game I can see what someone else trying connecting to my game And I don't know what to do.So if you can help me please? I don't wanna lose my game.
Hello Vaidas Vaidas,
It sounds like you are noticing someone else is accessing your Clash of Clans data by playing the game and you have tried to reset your Apple ID password. If you are following the steps outlined in this article:
Apple ID: Changing your password
http://support.apple.com/kb/ht5624
What is preventing you from changing your password? Any error messages or prompts?
Thank you for using Apple Support Communities.
All the best,
Sterling -
I have a VGA adapter and an iPad2. Tried projecting my iPad2 to projector using the VGA but doesn't work. Tried it with friend's iPad1 and it works. Why?? Pls help.
Yup - nothing happens. I then took the same VGA cable and plugged it into my friend's iPad1 and it worked perfectly when she opened Keynote. My understanding is that the iPad2 mirrors the entire screen, so no need to go into any specific application in order to project to the screen, right? Do I need to download any specific app or change any settings in order to be able to project the screen using VGA?
Sorry - novice at this. Not very tech minded either... -
In day 4, video # Creating "pages" with Flex states doesn't work
i can't open video training http://www.adobe.com/devnet/flex/videotraining in day 4. it's name( Creating "pages" with Flex states ) doesn't work, it report error. supporter can look it and solve problem
Hi,
I'm also pacing the same issue. if click on the video in the Day 4 exercises. i don't know, what is the issue with that particular videos. and also pacing one more issue that design mode is not showing in my flash builder 4. if u have any ans plz help me out. PFA -
after i update the 10.10.2 OS X Yosemite my iPhoto stops working. In the warning that appears when I try to open the app says that happened a mistake because of this update. I reinstalled the app but doesn't work anyway. Please, HELP!
I already tried that but it doesn't work. Appears a warning saying: "See the developer to make sure that iPhoto works with this version of OS X. You may need to reinstall the application. Be sure to install all available updates in the application and OS X."
-
I accidently turned voice over on,I've tried triple clicking the home button to bring up voice over options but doesn't work. I can't scroll down to get to Accesibility in genereal even with three fingers.
This article can show you how to disable it through iTunes on a PC/Mac:
iOS: Configuring accessibility features -
I was wondering if there's a way to connect to my work server from my home iMac i7. I can't seem to get Share Screen to work. I have tried connecting to server using the vnc but doesn't work.
The easiest way would be to use Back to My Mac, but that will only work if the server is a Mac running OS X 10.7 or later and you have the cooperation of the network administrator.
OS X: Using and troubleshooting Back to My Mac with your iCloud account -
Since I updated, Firefox is crashing daily. The finger scroll feature on my PC works with other browsers, but doesn't work on Firefox. It is also very, very slow, but other browsers aren't. I can't use it anymore until it's fixed.
To open the <i>about:config</i> page, type <b>about:config</b> in the location (address) bar and press the "<i>Enter</i>" key, just like you type the url of a website to open a website.<br />
If you see a warning then you can confirm that you want to access that page.<br />
*Use the Filter bar at to top of the about:config page to locate a preference more easily.
*Preferences that have been modified show as bold (user set).
*Preferences can be reset to the default via the right-click context menu if they are user set
*Preferences can be changed via the right-click context menu: Modify (String or Integer) or Toggle (Boolean)
*http://kb.mozillazine.org/about:config -
I have internet optic fiber connection and I'm trying to configure it with my Airport Express but doesn't works, appears that I have IP and DNS, as I'm a computers dummy , who could help me to configuration it, please?
You're welcome.
Voicemail is left at your carrier's server. That will continue to work unless you report your iPhone as lost or stolen with your carrier.
You may never find it again and you can't if the iPhone remains offline or out of service which means the iPhone is powered off or doesn't have cellular reception. -
I'm unable to connect my iphone 5s to the Dlink router. I tried all the apple support suggestions. But doesn't work. Please let me know.
I'm having this problem now with my 2 weeks old iPhone 6+. in the beginning everything going great and managed to connect every wifi around me. Then suddenly 1 week ago, All the wifi from my office, home, hotel and coffee house saying either incorrect password or can't join the wifi. But when i switch on my hotspot from my iPhone 5 it can be connect. i also try with my friend iPhone hotspot. So is it because of hardware problem or software problem. And i just restore my iPhone6+ and still can't connect to wifi and manage to join hotspot (also wifi right?) regret as all my downloaded stuff vanish and now can't download back using wifi.....
Thanks for assisting
Maybe you are looking for
-
Delivery completed indicator is not tick on generic article
Hello Expert, I create a normal purchase order with generic article and variants. Then, I do goods receipt with full quantity. Delivery completed indicator is automatic set 'X' on variant items. But with generic article, Delivery completed indicator
-
Specifying a circle with 2 mouse presses
Hi, I'm trying to create an applet that allows the user to specify a circle with 2 mouse presses. I'd like the 1st point to represent the circle's centre and the 2nd to be any point on the periphery. Creating a mouse press event handler is a given ob
-
Can the Audigy 2 ZS support 2 speakers systems at on
I have my new media center PC set up with the 5. analog system up, running and sounding great. Does anyone know if it is possible to run a second set of speakers (digital speakers via the digital output) at the same time in adjacent room?
-
Hi all, I've a demo database (OEC Computers) 2007 B compatible. Can anyone please guide me how to restore the database. Since I don't have knowledge regarding SQL Server, I'm not able to restore the demo database. Please guide me to restore the de
-
Applescript Support for Airplay?
Does anyone know if there is direct support for controlling Airplay speakers in iTunes via Applescript? I know there are hacks to select the desired Airplay speaker using keypreses and manipulation of the speakers via the iTunes UI. However, this isn