WMI tasks, how to launch one .EXE using Admin credentials
Hi there,
My goal is just start Sql Server Management Studio using ADMIN credentials.
This is my script:
Dim objWMIService, objProcess, objCalc
Dim strShell, objProgram, strComputer, strExe
strComputer = "."
strExe = "Ssms.exe"
set objWMIService = getobject("winmgmts://"_
& strComputer & "/root/cimv2")
Set objProcess = objWMIService.Get("Win32_Process")
Set objProgram = objProcess.Methods_( _
"Create").InParameters.SpawnInstance_
objProgram.CommandLine = strExe
Set strShell = objWMIService.ExecMethod( _
"Win32_Process", "Create", objProgram)
WSCript.Quit
Thanks for any input,
If you want to bore yourself here are the rules.
https://msdn.microsoft.com/en-us/library/aa826699%28v=vs.85%29.aspx?f=255&MSPPError=-2147217396
Handling Remote Connections Under UAC
Whether you are connecting to a remote computer in a domain or in a workgroup determines whether UAC filtering occurs.
If your computer is part of a domain, connect to the target computer using a domain account that is in the local Administrators group of the remote computer. Then UAC access token filtering will not affect the domain accounts in the local Administrators
group. Do not use a local, nondomain account on the remote computer, even if the account is in the Administrators group.
In a workgroup, the account connecting to the remote computer is a local user on that computer. Even if the account is in the Administrators group, UAC filtering means that a script runs as a standard user. A best practice is to create a dedicated local
user group or user account on the target computer specifically for remote connections.
David Candy
Similar Messages
-
How to execute one .exe file with as3 in air ?
Hi
How to execute one .exe file with as3 in air?
I want do this work without fscommand .
plize help me .itsdhanasaraa wrote:
But as this a web application ... By using Runtime i'm getting some probs ..
Let me guess, you want your web application to run a program on the client and to your surprise that's not working?
Ain't gonna happen.
its taking more time to execute .... that's y is there any other option to execute .exe file other than Runtime.getRuntime().exec("filename");Write proper English and you may be taken more seriously.
1) it's not "taking more time to execute", whatever that's supposed to mean.
2) there's no other way to execute something. Not that you should every use even that way anyway
3) whenever you start thinking of executing external programs from Java, start thinking of not using Java in the first place. -
How to connect one page using button and by link in BSP
how to connect one page using button and by link in BSP
hi,
use on 'onclick' functionality.
1. In layout, onclick = 'NEXT_PAGE' of the button
2. Capture the event in onInputprocessing,
DATA: event_id TYPE REF TO cl_htmlb_event.
case event_id.
when 'NEXT_PAGE'.
navigation->goto_page( 'URPAGE URL' ). -
Run specific published app in one collection using different credentials
Hi,
I have a collection of published apps using rdweb with apps accessed by and run by a user in a group. I was wondering how i can allow one of the apps in the users rdweb to be launched using alternate credentials.
I.e. i log on as userA. I get my list of allowed apps in RDWeb. Among those apps is an app, let's call it AppX. I want that app to be launched using credentials of a user account named userB.
I know this is possible using citrix xenapp on server 2008 R2. Can it be done on native RDS 2012 R2 (no citrix)?
This posting is provided "AS IS" with no warranties or guarantees and confers no rightsYou could create a custom rdp file as described here -> http://tech.jesseweeks.me/2013/07/configuring-custom-rdp-shortcuts-for.html
Add or change the "prompt for credentials on client:i:1" line to the rdp file in step 7.
distribute the rdp file to the user.
HTH,
JB -
How to launch an exe from LabVIEW VI
Hi,
I have made a few programs using LabVIEW and generated executables for each of these programs. I wish to generated a single launch program for these executables -- launch this wrapper program, select the (program) executable which you want to run and then finally run the executable.
If this possible to do that using LabVIEW? How should this be done?
Best Regards,
HarpreetI would much rather call a subvi than call an exe. But there might be a reason for using exe's instead of subvi's. Anyway, create a loop with an event structure with an event case for each button. In each event case, run the proper exe with SystemExec.
- tbob
Inventor of the WORM Global -
How to view one table used percentage in sqlplus?
if the table only one record in dba_free_space,then use
'select round(block_id/blocks,4)*100
from dba_free_space
where tablespace_name='xxx'"
could list used percentage,
but one table have many records in dba_free_space,
how to display this table's used percentage?DBA_FREE_SPACE displays free extents in all tablespaces: there is no direct relationship with any given table.
If you want to get free space in a existing table you should use DBMS_SPACE package. Here a a old but nice demo on AskTom. -
How to host one application using different database connection on OAS?
Hi,
Jdeveloper - 10.1.3.4
Application - ADF/BC
Oracle Application Server - 10.1.3
Above our the specifications for our application,
We have two database schemas different for development and production therfore we have different databse connections for the two,
we have one application which is in production and enhacements on the same application are done by the development team.
Since we have two different schemas for developement and prduction we use different database connections for the application on development and production.
The problem is our Model and View Controller project are same, only the database connection file changes that's why we are able to host only on application at a time on our OAS. This is probably because the URL generated by OAS for developemnt and prodyction application is same.
Is there a way we can host two instances of the same application with two different database connections on the a single OAS.
Thanks & Regards,
RakshaUse different deployment profiles each with a different context root for your application?
See: http://one-size-doesnt-fit-all.blogspot.com/2009/02/configuring-separate-dev-test-prod-urls.html -
How to launch a .exe with another exe
I use Labview 8.2
I would like to know if it is possible to launch an application (supplying the path for exemple)(created also by Labview) via a specifc Labview function inserted into another application.
Thanks a lot
Daniel.Is what you are looking for the "System Exec.vi" found under Connectivity\Libraries & Executables ? It allows the launching of an executable, with command line input if appropriate, from within LabVIEW.
Putnam
Certified LabVIEW Developer
Senior Test Engineer
Currently using LV 6.1-LabVIEW 2012, RT8.5
LabVIEW Champion -
How do i load .exe using java?
hi there......i'm a student currently working on a java project...... i'm wondering how to load .exe?
try{
String cmd = "the.exe" ;
Runtime runtime = Runtime.getRuntime();
Process p = runtime.exec(cmd);
catch (Exception e)
{}should work -
How to lock a folder using admin password??
hello,
i want to lock a folder with admin user name and password, and, i dont want to use Utilities->Disk Utility then Select File->New...->Blank Disk Image.
Can we lock a folder without creating an image???
plz help!!!
i have mountain lion, 27inch imac!!You can't. The OS doesn't support password protecting files and folders. The encrypted disk image route is superior to what you want to do. Why don't you?
-
How to Launch a "setup.exe" with LabVIEW app? No luck with System Exec.vi
I've got an application that I'm trying to update with a separate LabVIEW application (the "Updater"). It's the "Check for Updates" capability you see on other major apps.
Here's the glitch: When the Updater tries to launch "setup.exe" using "System Exec.vi", The installer seems to catch the attempt and pops a dialog titled "Windws XP Setup" saying "Please go to the Control Panel to install and configure system components". The install does not begin and the installer closes (if it was ever open!).
Running the same installer by double-clicking the "setup.exe" file from windows runs just fine.
Here's the question: "How can a LabView app launch an installer?"Could you show the code.
Look at the path where you want to run the code.
Ton
Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas
LabVIEW, programming like it should be! -
How to launch an Air desktop app from a second Air desktop app?
Hi,
Is there a way to launch an Air desktop app from a second Air desktop app?
I'm using Air 4 with Flash CS 6 on Windows.
ThanksAccording to Adobe documentation, AIR doesn't allow you to launch one application using another on desktop. The best bet that I could find at the moment would be to use the File.openWithDefaultAppilcation() function and open a file(like a .doc or .txt file) that has an AIR app set as the default application to use for X filetype. Unfortunately, launching app(.exe, .app, etc) files directly is not allowed. Probably for safety/security reasons. You might be able to get around that with a Native Extension though. Below is a link to the File.openWithDefaultApplication() method which includes a table of all the filetypes not allowed. Tried messing around with some ways around it, but the best I could do was open a new Finder window(testing on a Mac) and highlight the file. The code below assumes that both AIR apps are installed in the same app directory. Not sure how it would work on Windows but the result might be the same. For Mac, no special characters or anything was needed even though the app I was trying to open had spaces in the filename.
var filePath:String = "file://" + File.applicationDirectory.nativePath + "/App to highlight.app";
navigateToURL(new URLRequest(filePath));
File - Adobe ActionScript® 3 (AS3 ) API Reference -
Firefox Team,
I used the utility, MozBackup.exe, to create:
Firefox 3.6 (en-US) – 2013-02-10.pcv
Thunderbird 13.0.1 (en-US) – 2013-02-10.pcv
How do I import or use these files to update from AutoCADGuru to ProCADGuru?
Thanks in Advance,
KennyYou are giving conflicting information
Your question started with "How do I import or use these files to update from AutoCADGuru to ProCADGuru? "
Then you said:
"Autodesk's legal department threatened me with a law suit, because my domain name had “AutoCAD in it. So I change it to ProCADGuru. I created” Firefox 3.6 (en-US) – 2013-02-10.pcv and Thunderbird 13.0.1 (en-US) – 2013-02-10.pcv to back everything up. Now I need to know how to use them to restore all of that saved data and update it to my new domain. "
Then you said:
"How do I import or use these files to update from www.AutoCADGuru.com to www.ProCADGuru.com?"
So all that you have explained so far has been about closing down one webhost and moving to another, which has nothing to do with Firefox or Thunderbird.
Then today you say:
"I need to know how to use these to restore all of my Address books, email books, sent, saved, and settings for both Firefox and Thunderbird. "
What is the problem you are trying to solve here? is this about transferring Email settings in Thunderbird, Bookmarks in Firefox, moving a website from one host to another, or something totally different? -
Launching a exe as a WindowsXP user process using JSP
Hi,
I am trying to launch notepad.exe from a JSP. Whenever I deploy(tomcat 6.1) this JSP from an IDE, the process launched as a user process. but When I do the same from outside(no IDE and on tomcat 4.1), the process get launched as system process and never gets launched. the following is my code snippet that I use in my JSP.
try {
Process process = Runtime.getRuntime().exec("C:\\WINDOWS\\NOTEPAD.exe");
out.write("Launched...");
catch (IOException e) {
e.printStackTrace();
any ideas... ??Thanks for the reply,
I want it launched on the client side... YES. Using a applet or a web start... I am bit worried about the user experience... Notepad is the application, I want to launch... as a User Process(windows task manager)... as the priority for this type of process is higher than the System Process(decided by the OS based on its native scheduling policy and the available system resources)... -
How do I launch and exe. file?
I downloaded a youtube to mp3 converter. I have the exe. file but cannot figure out how to launch it to set up the program.
Install Windows with Boot Camp
Exe file only run with Windows
P.S. IMHO a very poor reason installing Windows. I would suggest doing some more ssearching for convertion programs because there are ones for Mac available.
P.S.S. But then I never think that is a good reason to install Windows.
Allan
Maybe you are looking for
-
How many use more than 1 smartphone
I home office and have a Verizon BlackBerry for work and until today when I got my new Iphone 4 was using the Iphone 3G for personal use. I keep them side by side all day and can honestly say I have had quite a few dropped calls with my BB and could
-
Reg: Creation of Table Types
Hi All, I have a small question regaridng the creation of Table type. Let us suppose I am creating Table type for a custom table zsample which is having 5 fields. I am generally creating a structure similar to custom table and using that structure as
-
Jdbc thin driver 8.1.7 and views from older versions of oracle
Config: Windows 2000 | jdk 1.3.1 | oracle's latest jdbc driver 8.1.7, also tried 9.0.1 (classes12.zip), using thin driver I try to select,using a PreparedStatment, from a view on Oracle 8.1.7, the view is linked to a table on Oracle 7.2.2.3. I get di
-
Hi Experts, I am facing a wiered problem. I am getting the date from the data base and converting the date into string (format MM/DD/YYY). Here is the method I am using to convert date to String. public static String expandedDate(java.sql.Date p
-
Apple Remote Desktop Agent (ARDAgent) Will not repair?
I had this problem before in 2010, which really annoyed me. It was thankfully resolved when I cleaned installed and upgraded to OS X Mountain Lion. Now I find the problem re-occuring on my daughter's MacBook Pro which is running the latest OS X Mount