Reading locale system properties like set-variables of a windows Client

Hello,
is there a possibility to read locale system properties like set-variables of a windows Client?
We want to read path-Info and user-info. Can I perhaps user javascript?
Best regards
Oliver Prodinger

Hi Oliver,
This code will work (assuming the client approves running of ActiveX)
<html>
<script>
  var shell = new ActiveXObject("WScript.Shell");
  var env = shell.Environment("process");
  alert(env("COMPUTERNAME"));
  alert(env("USERNAME"));
</script>
</html> 
You can't really run it from WD, but what you can do is run this code from a portal component (DynPage/JspDynPage) that is running in the same page as your WD application and pass data by using portal eventing.
The portal component iview can have size of 1 pixel so it won't be seen...
Regards,
Omri

Similar Messages

  • Scheduled Task to run as Local System cannot access the Netlogon Share in Windows 8.1

    I've created a Scheduled Task that is setup to run as the local System Account which uses cscript.exe to execute a VBScript residing on the Domain Netlogon Share. It works perfectly on Windows 7, but fails miserably on Windows 8.1. When I open a command
    prompt as the System account and try to run the script from the Netlogon share manually, I get the following error:
    CScript Error: Loading script \\<FullyQualifiedomainName>\Netlogon\xyz.vbs failed (The account used is a computer account. Use your global user account or local user account to access this server. ).
    Is there something different I need to set in Windows 8 to get this to run?
    Thank you!!
    Eric Myers

    Hi Eric,
    What's the result of Arnav's question?
    How did you set it? Please set it as the following steps:
    1.Go to Start > Administrative Tools > Task Scheduler
    2.In the Task Scheduler window double click your task, and on the "General" tab, under "Security options" section,  click the "Change User or Group" button.
    4.Make sure "From this location" is set to the local machine name (to change click "Locations" button and select the local computer name)
    5.Type "SYSTEM" in the text box and press ok . Under "When running the task, use the following user account:" you should see "NT AUTHORITY\SYSTEM".
    Karen Hu
    TechNet Community Support

  • Add system properties (like _version, _createdAt) to existing Database

    Hello,
    I have a SQL-Database with 1200 entries. I created this database 2 years ago for an Windows phone 8 application. Now I started to develop a new Application and wanted to use this database in it. Now I wanted to use the Feature of OfflineSync.
    The Problem seems the table Needs to have the columns _Version, _createdAt and _updatedAt,  but my table doesn't have it. Is there any possibility to add this?
    Thank you and best regards
    Thomas

    Are you using the .NET backend?  If so, you can set up automapper to map to default values. The version field is optional, and for createdAt and updatedAt, you can hardcode a value. See this blog post for more details:
    http://blogs.msdn.com/b/azuremobile/archive/2014/05/19/mapping-between-database-types-and-client-type-in-the-net-backend-using-automapper.aspx

  • WebForms - Accessing Environment Variable on a Windows Client

    Hi. We access a Windows Environment Variable using Client-Server Forms 6i. We do this as follows:
    Tool_Env.GetVar('ALLUSERSPROFILE', myPath);
    message(myPath);This returns the value 'c:\documents and settings\all users' on Windows XP.
    This returns the value 'c:\programdata' on Windows 7.
    We'd like to keep similar logic in this form once it's migrated to Web Forms. Is there a way to access this 'allusersprofile' environment variable (or any environment variable to determine whether the user is XP or Win7) from a web form running our UNIX server? Maybe somehow using WebUtil or something?
    Any suggestions would be greatly appreciated. Thanks.

    WebUtil enable your form then do this:
    message (CLIENT_WIN_API_ENVIRONMENT.Get_Environment_string('allusersprofile'));To get the Windows version, do this:
    message(CLIENT_WIN_API_ENVIRONMENT.Get_Windows_Version);.
    Edited by: Michael Ferrante on May 23, 2012 5:06 PM

  • How can I get system properties?

    Hello,
    How can I get the system properties like %JAVA_HOME% in my java codes, for example, I want to print it like this.
    System.out.println("%JAVA_HOME%");
    but it doesn't work!
    Please give me a hand!

    To pass the Operating system environment variable to the Java "environment variables", you have to explicitely pass them on the command line eg.
    java -Dmyjava.home=%JAVA_HOME% myClass
    then, in your code use
    String JAVA_HOME = System.getProperty ( "myjava.home" );regards,
    Owen

  • Question about System Properties?

    Can anyone shed some light apon this, if i have my midlet running in the background
    i.e. display set to null.... can j2me read the state of the phone system?
    Can j2me read any 'system property' like active/idle/keylocked??
    ..../fg

    Well generically the answer is NO.
    There is always a chance that some device manufacturer have supplied (if at all) some API to do this. But I am yet to heard about any device in the market to have this. Only what I heard that Nokia is in its way to supply some API like this with there Series 40 3'rd edition phones (ref. http://developers.sun.com/learning/javaoneonline/sessions/2006/TS-4447/index.html?). But they haven't yet announced anything on the release of it.

  • How to provide system properties to embedded oc4j

    hi,
    I want to provide some system properties like
    -Dlog4j.configuration to the embedded oc4j server. How can I do that in Jdev 9.03
    Thanks
    Ashwani

    Select the project you are running in the navigator then
    set Java option in Project -> Properties -> Runner -> Java Options (-Dlog4j.configuration=your.value)
    Cheers,
    Kim

  • OBIEE 10g - Can I use logical SQL to set variable?

    I am trying to set value of a session variable in the Advanced tab Prefix box of a request.
    Assigment of absolute value like this is working good:
    SET VARIABLE MYVAR=1;
    Can I set the variable using logical SQL? Something like:
    SET VARIABLE MYVAR = (SELECT table1.col1 from catname where table1.col2=1)
    Thanks in advance.

    Hi,
    You can create a session variable or dynamic variable in the RPD and try using it in here at the Advanced Tab prefix.
    But still check yourself if you need multiple values returning in the SQL statement.
    Hope this is helpful/ useful.
    Regards
    MuRam

  • HT1925 Message after removing and trying to reinstall itunes 'The system administrator has set policies preventing this installation'. Can anybody help?

    After removing and reinstlling iTunes .....message reads 'the system administrator has set policies preventing this installation'

    Try the following user tip:
    "The administrator has set policies to prevent this installation" error messages when installing iTunes for Windows on Windows Vista and Windows 7 systems

  • How to disable system keys like alt+ctrl+delete...

    Hi,
    I was wondering if there is any way to disable system keys like alt+ctrl+delete and windows logo key etc... I would like it to get disabled when ever my java application is visible and I want it in pure java.
    Thanks,
    regards,
    Jay

    Thanks for all your replies but hey I've seensome
    program ( downloaded from google ) do suchthing.
    What they do is some kinda image thing appearsin
    the
    full screen mode and do all the tasks what I'veopt
    for. So, I'm confused what is being done in
    those
    programs.
    Even if it is doable (Ctrl, Alt Delete I don't
    think
    will be, Windows Key should be) It will not via
    Java,
    but JNI. So you would be better off hunting overthe
    MSDN.137256 speaks the truth. Ctrl-Alt-Delete is a
    HARDWARE interrupt caught by the OS. In modern
    Windows it launches a widget that can be used to
    shutdown, logoff or run task manager. I have many
    doubts about what the OP is saying.
    All hail Sun.Indeed 3021. CAD is active even when Windows isn't. I experienced this recently, and never want to again.
    All hail Sun. We love you ...

  • Is contextInitialized() blocked from setting System properties?

    A certain 3rd party app we're using within a web app requires a specific System
    property be set. Since it's a local path, we'd like to shy away from hardcoding
    a -D into the startup script, and instead do it via a ServletContextListener and
    set the property within contextInitialized(). In WL7.0sp2, it seems to hit the
    line in our listener where it tries to set a System property, and nothing happens.
    It doesn't seem to throw an exception, write anything to the console, nothing.
    Is there a security setting that blocks contextInitialized() methods from setting
    System properties? Is it a WL thing, or maybe a servlet spec thing? It works
    if we use a dummy servlet set to pre-load, where we set the System property in
    the servlet's init() method, but that's a little tackier than doing it in one
    single context init listener.

    Turns out the context-param that I was trying to use as the value of the System
    property was null. When it sets a non-null value, it works. But apparently when
    the value of the System property is null, you get the weird behaviour described
    below: it's as if the tread just stops. I tried setting a breakpoint and stepping
    through, but it immediately went into weblogic security and threading classes
    and never returned. So now I'll have a new question about when context-params
    load during deployment, but I'll post that separately.
    "Mark Griffith" <[email protected]> wrote:
    I don't know of any restriction. Your saying it never sets it? The
    app
    deploys but it is not there in the system properites?
    Have you tried setting a break point and stepping?
    Very strange.
    mbg
    "dave thompson" <[email protected]> wrote in message
    news:3ecac0f8$[email protected]..
    A certain 3rd party app we're using within a web app requires a specificSystem
    property be set. Since it's a local path, we'd like to shy away fromhardcoding
    a -D into the startup script, and instead do it via aServletContextListener and
    set the property within contextInitialized(). In WL7.0sp2, it seemsto
    hit the
    line in our listener where it tries to set a System property, and nothinghappens.
    It doesn't seem to throw an exception, write anything to the console,nothing.
    Is there a security setting that blocks contextInitialized() methodsfrom
    setting
    System properties? Is it a WL thing, or maybe a servlet spec thing?It
    works
    if we use a dummy servlet set to pre-load, where we set the Systemproperty in
    the servlet's init() method, but that's a little tackier than doingit in
    one
    single context init listener.

  • Where do I read in the documentation the list of the system properties?

    Yep. Sounds stupid. But it's true. I read in all these forums where and how to set the truststore and so on but it would be beautiful to understand it my own.
    1. First I read setting the -Djavax.net.ssl.trustStore in the VM arguments.
    2. Then I find out the the -D is just for setting something like a static property.
    3. Next I want to read about the system properties. Who, what and where the Java tries to get this system property. I do not find it.
    What I find is great help in these forums and solving this kind of problems seems easy... I googled and the only place I found info about this is in a boulder.ibm.com site:
    http://publib.boulder.ibm.com/infocenter/iseries/v5r4/index.jsp?topic=/rzaha/sysprop2.htm
    http://publib.boulder.ibm.com/infocenter/iseries/v5r4/index.jsp?topic=/rzaha/rzahajssesysprops.htm
    I also found some info on a sun tutorial but not an official documentation. Do you know where to find it? It seems that my learning is always about finding the right place to find information and not guessing and trying.
    Thanks!!

    Thanks for your soon reply. Yeah, I found that but I really was expecting a more serious documentation.
    I have to admit that it is documented. Yes. But I didn't expect to find that in middle of a guide. But more in a reference or in a specification document. It's inside the "Customization" and in a table, yes... But it's a guide!!
    I like Java but something to worry about is the "too many - too less" documentation. Documentation is not clear enough and all the hundreds of options you have can make the programming with Java no good. It would sound like a good thing have a lot of choices and hundreds of places to look info for but I am a bit disappointed with that. It's not clear enough to find the right info.
    Anyway, thanks a lot for your help!! I will have to live with that.
    Guide: http://java.sun.com/j2se/1.5.0/docs/guide/security/jsse/JSSERefGuide.html

  • How to set JVM system properties in Oracle Portal ??

    Hello Guys,
    I want to set javax.net.ssl.trustStore="path to keystore" ,JVM system properties on oracle portal,
    Like i want to configure my keystore with oracle portal so that my application can make a success full connection with back end using https.
    i read the following note from one of the Oracle tech note,which says that
    It is important that this system property is passed as a command line option to Oracle Application Server Containers for J2EE (OC4J). Setting the property in oc4j.properties will not help because the system property is read first before OC4J reads this file. Therefore, it is best to modify the <java-option> line in the OC4J_portal section of ORACLE_HOME/opmn/conf/opmn.xml.
    So, i made the required changes to OC4J_portal section of opmn.xml file as below
    added value is shown in bold
    <data id="java-options" value="-server -Xrs -Djava.security.policy=C:\oracle\OraPortal\j2ee\OC4J_Portal\config\java2.policy -Djava.awt.headless=true -Xmx256m -Djavax.net.ssl.trustStrore=C:\keystore1 -Djavax.net.ssl.trustStrorePassword=password1"/>
    Even after making these changes, my application not able to make connection using https.
    Could u guys explain me, what things are going wrong or somethings else i need to do to make it work.
    Any thoughts would be highly appreciated.
    Thanks
    <Neeraj Sidhaye/>
    http://ExtremePortal.blog.co.uk

    Hello Guys,
    I want to set javax.net.ssl.trustStore="path to
    keystore" ,JVM system properties on oracle
    portal,
    -Xmx256m -Djavax.net.ssl.trustStrore=C:\keystore1
    -Djavax.net.ssl.trustStrorePassword=password1"/>Hi,
    if the above is an exact copy of the values you inserted then it looks like you have two typos in the command line parameters.
    -Djavax.net.ssl.trustStrore -> trustStore
    -Djavax.net.ssl.trustStrorePassword -> trustStorePassword

  • How do I set System properties within WL6.0?

    I am setting WL6.0 up to have a startup class, but this class needs to
    read system properties which have not yet been set. How do I set these
    up within weblogic? I was able to get the startup class set up, but it
    needs these system properties to continue.
    gmo

    Correct on all points. The one advantage of doing this in java is that you can more easily do more
    complex things like accessing configuration information from a remote data store (like a database).
    Dimitri Rakitine wrote:
    These are not needed if you simply replace java ...lots of options... weblogic.Server with
    java ...lots of options... startmyWLS in the script which starts WebLogic, but, on the other
    hand, this solution is no different from simply adding -DmyProperty=myValue to the startup script
    (I think that the ultimate goal is the ability to deploy(and redeploy!) components,
    without any mods to the particular vendor's startup scripts of anything of that nature).
    Kumar Allamraju <[email protected]> wrote:
    Thanks to robert for a quick workaround..
    I tried to start the WLS with the following piece of code and actually i need to set
    some additional properties
    for successful server startup.
    Here it is
    import java.util.Properties;
    public class startmyWLS
    public static void main(String[] args)
    Properties props = System.getProperties();
    props.put("myProperty", "myValue");
    props.put("bea.home", "E:\\bea");
    props.put("weblogic.Domain", "mydomain");
    props.put("weblogic.Name", "myserver");
    props.put("java.security.policy",
    "E:\\bea\\wlserver6.0\\lib\\weblogic.policy");
    System.setProperties(props);
    weblogic.Server.main(args);
    Make sure you run this from E:\bea\wlserver6.0., as it tries to read config.xml
    config\[your-domain-name] from this
    directory.
    Kumar
    Robert Patrick wrote:
    import java.util.Properties;
    public class StartMyWebLogicServer
    public static void main(String[] args)
    Properties props = System.getProperties();
    props.put("myProperty", "myValue")
    System.setProperties(props);
    weblogic.Server.main(args);
    gmo wrote:
    That won't work since it has to be 'outside' of the code. It's a service, and
    services are started when weblogic is started up, not when I call a bean.
    And it has to be dynamic, since the properties will vary on evry installation.
    Robert Patrick wrote:
    You can also use System.setProperty() or a combination of
    System.getProperties() followed by a System.setProperties()...
    gmo wrote:
    They are not normal system properties. I'm using some open source code, and
    it requires settings to be system properties, but they are specific to the
    application, which means that they are not already in the system
    properties. I know how to get them, and after some more research, you can
    set them on the command line when starting up weblogic. However, is this
    the best way to set system properties?
    Robert Patrick wrote:
    What "system properties" are you trying to find?
    gmo wrote:
    I am setting WL6.0 up to have a startup class, but this class needs to
    read system properties which have not yet been set. How do I set these
    up within weblogic? I was able to get the startup class set up, but it
    needs these system properties to continue.
    gmo
    Dimitri

  • Setting system properties for IDE JVM

    I need to set system properties in order to turn tracing on for a JDBC driver being called by the IDE. Is there a way to do so?

    Thanks for the reply, but I'm still not getting where I need to get. It appears that either the IDE runs a different copy of my jar file in some obscure location, or it runs with some sort of restricted permissions.
    My driver does not seem to write to its trace file when running in the IDE. It works when I deploy things, but I need to trace the IDE since it does not appear to like something I'm doing.
    I have put a line of code in the driver that writes to a file whenever an instance of the Driver Class is created, but that doesn't seem to get the job done, either. I even put this code in a static initializer. No go.
    Any help greatly appreciated!

Maybe you are looking for

  • Downloads to a computer or device not previously associated with an Apple ID?

    Apple sends me emails telling me that my Apple ID was used to download an app from the App Store to a computer or device that had not previously been associated with my Apple ID.  Apple advises me reset my password. I have reset my password about 20

  • Any ideas why this happens?

    Aloha all, just a quick question for those more experienced than I. What causes files folders etc. to become corrupt enough to need fixing. I run Disk Warrior as a monthly maintaince, habit from OS9 days. Almost every time it finds misnamed or files

  • Audigy 2 ZS Platinum pro with RM-1500 prob

    Doesnt work. When i first got the card the remote worked fine. It's been a while since and i'd like to use the remote again. I instaled the drivers that were on the CD, the remote didnt respond. Downloaded the newest drivers from the download site, i

  • Error message in my BB when i reboot

    Hai, i wanna asking question about my blackberry 8520 black, when i reboot my BB there is error message on the screen : Uncaught exception : indek 4 > = 4 sometimes the number 4 can change into 5 or others number 1.what that message mean ? 2. what th

  • Frame (no) resize not browser consistent - help.

    I've got a simple left frame/right frame setup. I have my navigation frame set for no resizing and it works great in Safari, but no other browser. If I resize the window, the main content area pushes over the navigation frame. In Safari, it works per