"net use" in an axis webservice

Hi,
I've written a webservice which, amongst other things, maps a shared folder on its local disk drive to an unused drive. Heres the neccessary code, but the problem isn't here:
Process proc = execAtCmdPrompt("net use "
+env.getMapDrive()+ ": " +p.getProperty("thisMachine")+
"\\" +env.getFolderName()+" /persistent:yes",0);
BufferedReader bR =
new BufferedReader(new InputStreamReader(proc.getInputStream()));
String read = null;
while( !(read=bR.readLine()).contains("The command completed successfully.")){
System.out.println(read);
System.out.println(read);
bR.close();
private static Process execAtCmdPrompt(String exec, int wait)throws IOException{
if(wait<1000)wait = 1000;
Process p = Runtime.getRuntime().exec("cmd.exe /k " +exec);
try{
//Let it execute
Thread.sleep(wait);
}catch(InterruptedException iE){
iE.printStackTrace();
return p;
return p;
}This code runs fine in eclipse runing its own tomcat server as does the rest of my webservice. However, if I deploy it in its own standalone tomcat server running axis, it wont map the drive.
If I do a net use from the command prompt it tells me the drive status is unavailable. Also, I have already setup the logon details in the server with this windows user and set it to logon as a service.
All help is greatly appreciated. Any ideas?
Edited by: E30s50 on Nov 26, 2008 7:49 AM
Edited by: E30s50 on Nov 26, 2008 7:51 AM

1.Actually when you developing a Portal component you are actually developing a UserControl (ascx file).
So, maybe what you are really wish to know is: Can I run a ascx files (User Controls) within an iView or PortalComponent?
So the answer is <b>YES</b>, the only different between consuming ascx files (UserControls) in ASP .NET Pages to consuming them in PortalComponent is that we don’t support the dragging of the ascx file to the consumer – Portal Component designer. But you can overcome this limitation if you add the necessary code to the html source.
for example if you have two ascx files in one PortalApplication (PortalComponent1.ascx and PortalComponent2.ascx) and you want to consume as UserControl you need to add the following code to  PortalComponent1.ascx:
<%@ Register TagPrefix="uc1" TagName=" PortalComponent2" Src=" PortalComponent2.ascx" %>
And
<uc1: PortalComponent2id="MyUserControl1" runat="server"></uc1: PortalComponent2>
under the
<body>
tag.
2.What do you mean – “…tell the ASP.NET WebControls to behave like SAP Netweaver Controls..” ?
If you did mean that you want to have the same look and feel and behavior like the SAP controls – So the answer that you can’t.
3.Read this - <u>https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/ep/sap netweaver .net controls vs. asp.net controls.pdf</u>
Regards,
Yehuda

Similar Messages

  • [svn] 3822: update the test to use qa-regress axis web service target

    Revision: 3822
    Author: [email protected]
    Date: 2008-10-22 11:53:21 -0700 (Wed, 22 Oct 2008)
    Log Message:
    update the test to use qa-regress axis web service target
    Modified Paths:
    blazeds/branches/3.0.x/qa/apps/qa-manual/ipv6/proxyservice/webService/ipv6_ws_dynamicurl. mxml

    I solved that url problem. But there is still something I need to ask.
    First of all, the solution is the following;
         I have implemented my asp.net web service with visual studio, creating web service application. when I implement the project, it shows how to send requests( soap, http ), and there is http post request.( no get ). then I create and http post service with flash builder, the problem was that I needed to add a submit parameter to that service call since this is a post request to asp.net( Content-Type: application/x-www-form-urlencoded ). when I add this parameter it works well.
         however I want my service to return xml directly. In a different post http://forums.adobe.com/thread/574684?tstart=0 the problem is solved for PHP http requests. but when I try to implement in the same way it gives following error:
    any solution for that? thx

  • SAP XI client calling axis webservice

    Hallo,
    i have the problem, that the sent xml-message from SAP XI will not be processed from my tomcat-webserver. In SOAP-Monitor the Status stays "active", allthough the requestdata doesn´t seem to be dirty. When i try it with my Java-Client, i have no problems. SAP XI is sending data of type String[] and String[][].
    I still tried out all kinds of webservice types(rpc,document,wrapped).
    So, has anybody a hint?
    Thanks!

    Cien dobre Andrzej,
    thank you for your answer. here is zhe way i did it:
    1. Implement busines method foo(String a[],String b[][],String c[][])
    2. generate wsdl with java2wsdl, several times with different styles
    3. generate classes with wsdl2java
    4. Deploy on tomcat
    Then i sent the wsdl to our XI-Specialist and he did all the work on SAP-side.
    When he send a request, i see the following on my SOAPMonitor:
    <SOAP:Envelope xmlns:SOAP='http://schemas.xmlsoap.org/soap/envelop/'>
    <SOAP:Header/>
    <SOAP:Body>
      <ns0:performSAPBestellanstossRequest xmlns:ns0='bestellanstoss'>
        <kopfdaten>
             <item>4500190535</item>
             <item>0000554132</item>
             <item>Wilhelm, Andreas</item>
             <item>2216</item>
        </kopfdaten>
        <positionen>
             <item>
                  <item>00010</item>
             </item>
        </positionen>
        <stueckliste>
             <item>
                  <item>00010</item>
             </item>
         </stueckliste>
       </ns0:performSAPBestellanstossRequest>
    </SOAP:Body>  
    </SOAP:Envelope>
    <SOAP:Envelope xmlns:SOAP='http://schemas.xmlsoap.org/soap/envelop/'>
    <SOAP:Header/>
    <SOAP:Body>
      <ns0:performSAPBestellanstossRequest xmlns:ns0='bestellanstoss'>
        <a>
             <item>4500190535</item>
             <item>0000554132</item>
             <item>Wilhelm, Andreas</item>
             <item>2216</item>
        </a>
        <b>
             <item>
                  <item>00010</item>
             </item>
        </b>
        <c>
             <item>
                  <item>00010</item>
             </item>
         </c>
       </ns0:performSAPBestellanstossRequest>
    </SOAP:Body>  
    </SOAP:Envelope>
    This request will not be processed:
    When i use my generated AXIS-Client i see the following request data, that will be processed:
    <?xml version="1.0" encoding="UTF-8"?>
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelop/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
      <soapenv:Body>
        <nsl:performSAPBestellanstoss soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:nsl="bestellanstoss">
          <a xsi:type="soapenc:Array" soapenc:arrayType="xsd:anyType[2]" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
             <item xsi:type="xsd:string">xxxxxx</item>
             <item xsi:type="xsd:string">xxxxxx</item>
          </a>
          <b xsi:type="soapenc:Array" soapenc:arrayType="xsd:anyType[][1]" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
             <item xsi:type="soapenc:Array" soapenc:arrayType="xsd:anyType[][2]">
                  <item xsi:type="xsd:string">xxxxxx</item>
                  <item xsi:type="xsd:string">xxxxxx</item>
             </item>
          </b>     
          <c xsi:type="soapenc:Array" soapenc:arrayType="xsd:anyType[][1]" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
             <item xsi:type="soapenc:Array" soapenc:arrayType="xsd:anyType[][2]">
                  <item xsi:type="xsd:string">xxxxxx</item>
                  <item xsi:type="xsd:string">xxxxxx</item>
             </item>
          </c>
        </nsl:performSAPBestellanstoss>    
      </soapenv:Body>   
    </soapenv:Envelope>
    So maybe you can give me more hints
    Regards Ralf

  • Axis webservice through OSB

    I have a web service which developed using axis and deployed in weblogic.
    I have configured in OSB to access this web service through OSB.
    My endpoint is OSB server URL which points axis webservice deployed in weblogic.
    I have user id and [assword set through OSB.
    *My Question:*
    When i access this OSB end point from a Java Client Application, I need to give provide userid/password. How do I give?
    I tried below and didnt work and got below error messages also.
                 MyWebServiceStub stub = new MyWebServiceStub(endpoint);
                org.apache.axis2.client.ServiceClient sc = stub._getServiceClient();
                org.apache.axis2.client.Options options = sc.getOptions();
                options.setUserName(user);
                options.setPassword(password);
    The above code gives me below error
    INFO: Unable to sendViaPost to url[endpoint]
    org.apache.axis2.AxisFault: Transport error: 404 Error: Not Found
         at org.apache.axis2.transport.http.HTTPSender.handleResponse(HTTPSender.java:296)
         at org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:190)
    Can anyone help me find out? How do we access?

    Looks like the URL is wrong.. ( 404 error). Make sure the url is pointing to OSB managed server port and not to the admin server.. sbconsole runs on admin server but the port you specifiy in the URL used to access OSB from the webservice client should point to the osb managed servers...

  • Why should we use WSDL for developing webservices

    I need to develop Webservice Application for our Client .
    I dont know anything about WSDL4J
    Hi from the net i found this
    "The Web Services Description Language for Java Toolkit (WSDL4J) allows the creation, representation, and manipulation of WSDL documents.
    Is the reference implementation for JSR110 'JWSDL' (jcp.org)."
    But anybody please tell me why should we use WSDL for developing webservices ??
    Is there any specific advantage we will get ??
    And Can body please point me a link where to start for working with WSDL4j ?
    Thank you very much

    i seriously doubt you want to use wsdl4j unless you are doing really advanced webservice work. assuming you are developing this webservice from scratch, you basically want to use JAXWS: define an appropriate interface and your value classes, and let JAXWS do the rest. metro is the JAXWS implementation included in the oracle jdk and it has great tutorials and reference documentation online. i'd suggest you start here: http://metro.java.net/getting-started/

  • Example of using session bean with webservices

    Hello,
    I am working with netbeans 5.5 (with JAX-WS 2.0 library) and using Tomcat.
    I have created webservices and everything is working well so far. However, each webservice is making a connection to my database.
    I would like to use a session bean so that I make the connection only once (at the begining of the client session for example) and store it into my session bean.
    I am a newbie in those things, I search on the Web and on this forum some code examples. The only thing I have found is this article http://weblogs.java.net/blog/ramapulavarthi/archive/2006/06/maintaining_ses.html
    When I tried this, the session doesn't seem to work at all : I get the same result (counter=1) twice.
    Does anybody have a complete example of how to use a session with webservices please?
    Thanks a lot!

    Sorry, I was not very clear in my last message.
    I need all my webservices to share the same bean during one user session.
    Then, if a page calls 2 different web services, only 1 database connection is made instead of 2. And if the user opens other pages which call other webservices, they will use the connection kept into the session bean.
    Anyway, I tried to do like it is said in your website but I can not build my project. I have an error : java.lang.LinkageError: JAXB 2.0 API is being loaded from the bootstrap classloader, but this RI (from jar:file:/C:/.../build/web/WEB-INF/lib/jaxb-impl.jar!/com/sun/xml/bind/v2/model/impl/ModelBuilder.class) needs 2.1 API. Use the endorsed directory mechanism to place jaxb-api.jar in the bootstrap classloader. I do not understand because I have downloaded the jax-ws 2.1.1 api and no other libraries are imported in my project. :-(
    I wonder if it is not related to netbeans...

  • Requirement is to run CMD.EXE under the Local System Account. So that we can map a network drive to be used by a windows service, which will be created by command: - net use z: \\servername\sharedfolder /persistent:yes

    Environment:
    OS:  Windows 7 32/64 bit, Windows 2008 Server 64
    bit/ Windows 2012 Server 64 bit
    Priority:
    - Critical
    Requirement: - Since
    the Windows Service is running under the Local System Account, we would like to emulate this same behaviour.
    Basically, we would like to run CMD.EXE under the Local System Account. So that we can map a network drive to be used by a service using following
    command
    net use z: \\servername\sharedfolder /persistent:yes.
    Already Attempt:
    We tried to launch the CMD.exe using the DOS Task Scheduler AT command.  Here’s a sample command:
    AT 10:36 /interactive cmd.exe
    But I received a warning that “due
    to security enhancements, this task will run at the time excepted but not interactively.”
    It turns out that this approach will work for XP, 2000 and Server 2003 but due to session isolation
    Interactive services no longer work on Windows 7, Windows Server 2008 and above.
      2.  We
    tried to create a secondary Windows Service via the Service Control (sc.exe) which merely launches CMD.exe.
    <Drive>:\sc create RunCMDAsLSA binpath= "cmd" type=own type=interact <Drive>:\sc
    start RunCMDAsLSA
    In this case the service fails to start and results it the following error message:
    FAILED 1053: The service did not respond to the start or control request in a timely fashion.
      3. One
    suggestion, we found to launch CMD.exe via a Scheduled Task, but
    it is not giving any option to launch CMD.exe in interactive mode; so that I can map network drive using net command.
      4. I read an article, which
    demonstrates the use of PSTools from SysInternals. I launched the command line and executed following command
    psexec -i -s cmd.exe
    PSTools worked fine, but It seems that in scope of Sysinternals Software License
    Terms. You may not "use the software for commercial software hosting services."
    Application will deploy on client, which will be like commercial,
    so we are not able to use PSTools.         
    Kindly assist us for achieving the requirement. We have tried all the ways, but nothing is working for us. Kindly suggest.
    I will be really thankful.

    Hi Sir,
    Nothing worked from above for us. You can see our remarks on posted query.
    That’s why, we posted on forum.
    And there will not be any vulnerability, because, if we will use "net
    use ..."
    in network domain; definitely,
    we will provide username and password of mapped drive system.
    And, that system, itself is given by client; so that, there must not be any vulnerability; they are ready to provide user name and password.
    We need a way; by which we can complete the requirement. Kindly assist.
    Regards,
    S. P. Singh

  • Net Use give error 67 when trying to mount network share in Windows PE

    I am trying to deploy Windows 7 Pro by PXE booting Windows PE5 and applying a WIM file over a network share.  The problem that I am running into is that I get an system error 67.  I can ping the server with the network share with both the IP
    and the FQDN, but whether I use the machine name OR the IP I get a system error 67.  I verified that the account that I am using to connect has permissions, but even excluding the user name and waiting for it to prompt me for a user name gives the same
    error.  Any idea what is going on?

    Check : http://social.technet.microsoft.com/Forums/en-US/9c429bef-edf0-4bad-83a3-644e6ba28ea8/net-use-system-error-67?forum=winservergen
    Arnav Sharma | http://arnavsharma.net/ Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading
    the thread.

  • Drives mapped via GPO, NET USE shows mapping but doesn't show up in Explorer - Win 8.1

    Fresh install of Windows Enterprise 8.1
    Connected PC to domain, logged in, drive mapping worked as it should.
    Rebooted a few times after installing software that I normally install on my computers (from the same sources/locally from my file server, etc).  Rebooted a few more times all is well.
    A few reboots later, the only drive that is mapped is X: which is my user drive done via the user profile in AD.  The rest of the mappings that normally show up done by the GPO no longer show up.
    After some digging, and noticing no errors in any logs I ran NET USE in a CMD prompt window, low and behold the drives are actually mapped and I can access them via the CLI without issue.  I can navigate via their mapped drive letters, etc.
    They just don't show up in Windows Explorer at all and I cannot navigate to the drive letters via the address bar.  Strangely enough, it still kinda works since the Downloads start menu item is mapped to a network drive and that still works (Q:\) and
    Chrome can access it as well if I try to download something.
    I'm really not sure what else to check/try here. 
    Have other Windows 7 and Windows 8.1 machines (my laptop) and all works just fine, so it's only this specific install on my desktop that is showing this issue.

    Hi,
    There are several reasons causing the issue:
    First, The problematic client doesn't reconnect to the target share at logon. 
    Please follow the steps to re-configure the mapped driver on the client and then check if the issue will re-occur.
    Steps:
    a. Open "My Computer"
    b. Click on "Tools" and then select "Map Network Driver"
    c. input the \\ipaddressofserver\sharename to give the path of the share
    d. Check "Reconnect at logon"
    e. Drive gets mapped
    f. Double click on the drive to check.
    Second, Antivirus software or Windows Firewall may block the mapped share.
    If there is any Antivirus software and the Windows Firewall is enabled on the problematic client. If so, please disable them to check if the issue can be resolved.
    Third, Fast Logon Optimization is enabled on the clients.
    The fast logon feature may affect the display and drive letter assignment of a mapped network drive. As a result, the drive may have been mapped; however, the user on client cannot see it in Windows Explorer. He may recognize it as a failed network drive
    mapping. This is the reason why we usually suggest you to disable fast logon on the clients via a GPO, and please check if the mapped network drive will be occur under this circumstance.
    Please also configure the following group policy setting to disable Fast Logon Optimization to see if the issue still exists on the problematic clients.
    Computer Configuration\Administrative Templates\System\Logon\Always wait for the network at computer startup and logon
    If we cannot get this issue fixed, please post back the event log related to this issue.
    Kate Li
    TechNet Community Support

  • Error using IDOCFlatToXmlConvertor in Axis-SOAP

    Dear Members,
    I am trying to execute the IDOCFlatToXmlConvertor module in SOAP-Axis adapter (sender) of SAP PI 7.11. Addition of modules is done as per guidelines of SAP Help and Axis_FAQ:
    AF_Adapters/axis/HandlerBean
    AF_Adapters/axis/AFAdapterBean
    SAP_XI_IDOC/IDOCFlatToXmlConvertor
    CallSapAdapter
    AF_Adapters/axis/AFAdapterBean
    AF_Adapters/axis/HandlerBean
    Corresponding module parameters (SAPRelease, TargetDestination, SourceJRA) are also mentioned correctly. However when I try to send a flat IDOC through the Axis channel it fails in the channel monitoring with below error:
    message not processed: java.lang.ClassCastException: class
    org.apache.axis.message.Text:library:com.sap.aii.af.axisproviderlib_at_com.sap.engine.boot.loader.ResourceMultiParentClassLoader_at_32e6e42e_at_alive incompatible with
    class
    org.apache.axis.message.SOAPBodyElement:library:com.sap.aii.af.axisproviderlib_at_com.sap.engine.boot.loader.ResourceMultiParentClassLoader_at_32e6e42e_at_alive
    I have done the below:
    1) Ensured that required components for Axis protocol are enabled. Normal SOAP message is processed by the Axis Channel
    2) Maintained all the parameters for IDOCFlatToXmlConvertor in NWA and also in the channel
    3) The scenario works perfectly fine when used a File_Sender_channel instead of SOAP_Sender_channel
    So my question now is, can the IDOCFlatToXmlConvertor module be used with SOAP-Axis protocol (theoritically it should be)? If yes, then where am I making the mistake? Is it because I am using SOAPUI tool for testing?
    Thanks,
    Abhishek.
    P.S. I have replaced the @ symbol with at as SDN does not allow me to post!

    Hi Experts,
    In my Receiver SOAP adapter module Tab.
    As my scenario is synchronous  and i required UsernameToken with PasswordDigest security i have added following parameter value in module.(as per SAP Note 1039369 FAQ XI Axis Adapter ).
    Processing Sequence.
    Module Key
    afreq
    xireq
    wssec
    trp
    xires
    afres
    Module configuration
    ModuleKey  ParameterName   parametervalue
    xireq           handler.type         java:com.sap.aii.axis.xi.XI30OutboundHandler
    wssec         action                   UsernameToken
    wssec        handler.type         java:com.sap.aii.adapter.axis.ra.handlers.security.WSDoAllSender
    wssec       passwordType     PasswordDigest
    wssec      pwd.password     ********************
    wssec      user                       XYZ
    trp            handler.type            java:com.sap.aii.adapter.axis.ra.transport.http.HTTPSender
    trp             module.pivot          true
    xires       handler.type           java:com.sap.aii.axis.xi.XI30OutboundHandler.
    Do we need to do any other configuartion apart from above in parameter value.
    While getting response from third party i getting error as WSDoAllReceiver: security processing failed (actions number mismatch)
    Do i need to add  parameter value for WSDoAllReceiver as well as  my scenario is synchronous.
    Please help me out on this as i am not able to proceeed further because of the above errro.
    Please advice.
    regards
    Anku Chopra

  • Net use map drive is working with built-in admin account only

    I currently have a windows 7 PC that I use
    net use in cmd file to map drive to Windows server 2008. 
    It works if I use built-in admin account/password but I've tried another account that's in the administrator group on the server and I get errors.
    NET USE X: \\IPADD\c$\inetpub\ftproot  password /User:adminuseraccount
    NET USE X: \\IPADD\c$\inetpub\ftproot password /User:server\adminuseraccount
    After tweaking the net use command a number of ways,  the 2 following errors are what I'm getting for the most part:
    System error 1219 has occurred.
    Multiple connections to a server or shared resource by the same user, using more
     than one user name, are not allowed. Disconnect all previous connections to the
     server or shared resource and try again.
    OR
    System error 5 has occurred.
    Access is denied.
    I've looked at many searches on this but can't get this to work. 
    Also,  one thing I'm thinking of doing is changing the built-in admin name and password.  Is this a safe thing to do?
    Thanks,
    Dave

    Hi,
    Can you check this link?
    http://support.microsoft.com/kb/938120
    Thanks,
    Umesh.S.K

  • Schedule and windows 2003 "net use"

    ver 10.2.0.2
    lastest patch 9
    windows 2003
    trying to get the scheduler to work with a batch file that uses NET USE etc..
    for ex
    net use q: \\workstation\sharename mypass /user:domain_admin
    I have tried to put this in a BATCH file
    begin
    dbms_scheduler.drop_job('t1');
    dbms_scheduler.purge_log;
    dbms_scheduler.create_job
    ('t1',
    job_action=>'C:\WINDOWS\system32\cmd.exe',
    number_of_arguments=>3,
    job_type=>'executable',
    enabled=>false,
    auto_drop=>false);
    dbms_scheduler.set_job_argument_value('t1',1,'/q');
    dbms_scheduler.set_job_argument_value('t1',2,'/c');
    dbms_scheduler.set_job_argument_value('t1',3,'e:\move_net\see.bat');
    dbms_scheduler.enable('t1');
    dbms_lock.sleep(3);
    commit;
    end;
    pl/sql procedure successfully completed.
    see.bat
    net use q: \\workstation\sharename mypass /user:domain_admin
    go into OEM
    look at the job status: SUCCEEDED
    look that the history find
    Details     STANDARD_ERROR="System error 1312 has occurred. A specified logon session does not exist. It may already have been terminated. The system cannot find the drive specified."
    now I have look high and low in metalink..really did not see an answer.
    I know what the answer is if I was on unix, but nothing on windows 2003
    I have made sure i got all the rights to extjob.exe etc
    I have change the job to reflect
    1= /q
    2=/c
    3=c:\windows\system32\net.exe use q: \\workstation\share mypass /user:domain_admin
    when i do this,
    I get a new error
    ORA-27369: job of type EXECUTABLE failed with exit code: The system cannot find the file specified. STANDARD_ERROR="System error 1312 has occurred. A specified logon session does not exist. It may already have been terminated. "
    just wonder if anyone has used NET USE...
    thanks
    p-

    Hi,
    Try to start OracleJobScheduler<SID> Windows service and try again.
    Start->Run->services.msc
    (This service is disabled by default)

  • "Net use" not working in application that runs as "system"

    Hello,
    I am trying to create an application object to distribute a program which
    during the setup procedure creates two local users on the workstation. I
    tried to set up the application to run as an unsecure system user and
    start the setup.exe. This method worked fine for quite a number of apps in
    the past.
    However this app needs a drive mapping to a windows 2003 server to start
    the setup.exe. Apparently under windows 2003 it is no longer possible to
    use the "net use" command when running a script as system user. I get
    system error 1312 "A specified logon session does not exist. It may have
    already been terminated". There seems to be no solution from microsoft
    since this is probably working as designed.
    In another similar situation I copied the complete setup directory to a
    novell drive, but in this case the setup procedure needs to write
    information into a database located on the windows server. I might be able
    to set up the application via snapshot and create the user accounts using
    a distribution script. But I would need the consent of the windows
    administrators since I need the passwords for those user accounts, and I
    am not sure that they are cooperative in this respect. Furthermore I get
    the feeling that this program is going to present a number of other
    problems and surprises which probably will make the snapshot method very
    tricky.
    Is there any solution or workaround for this problem?
    Any suggestions would be appreciated.

    1) It should not be an issue to run "Net Use" to authenticate to a Windows
    2003 server from an "Unsecure System Prompt". This is quite common.
    2) If the PC is in the domain already, this may be part of the issue since
    you are already authenticated to the domain. Try adding the Domain
    Workstation Object the proper rights.
    3) Does the "Setup.exe" expand to an MSI install in the temp directory? In
    such a case you could like create an MSI install that runs as a normal user
    but the Windows Install will allow for the elevated rights.
    Craig Wilson - MCNE, MCSE, CCNA
    Novell Support Forums Volunteer Sysop
    Novell does not officially monitor these forums.
    Suggestions/Opinions/Statements made by me are solely my own.
    These thoughts may not be shared either Novell or any rational human.
    "Anna Schmitz" <[email protected]> wrote in message
    news:BBvdi.3656$%[email protected]...
    > Hello,
    >
    > I am trying to create an application object to distribute a program which
    > during the setup procedure creates two local users on the workstation. I
    > tried to set up the application to run as an unsecure system user and
    > start the setup.exe. This method worked fine for quite a number of apps in
    > the past.
    >
    > However this app needs a drive mapping to a windows 2003 server to start
    > the setup.exe. Apparently under windows 2003 it is no longer possible to
    > use the "net use" command when running a script as system user. I get
    > system error 1312 "A specified logon session does not exist. It may have
    > already been terminated". There seems to be no solution from microsoft
    > since this is probably working as designed.
    >
    > In another similar situation I copied the complete setup directory to a
    > novell drive, but in this case the setup procedure needs to write
    > information into a database located on the windows server. I might be able
    > to set up the application via snapshot and create the user accounts using
    > a distribution script. But I would need the consent of the windows
    > administrators since I need the passwords for those user accounts, and I
    > am not sure that they are cooperative in this respect. Furthermore I get
    > the feeling that this program is going to present a number of other
    > problems and surprises which probably will make the snapshot method very
    > tricky.
    >
    > Is there any solution or workaround for this problem?
    >
    > Any suggestions would be appreciated.
    >
    >
    >
    >

  • Can't execute net use with CF9

    On our win 2003 dev server we cfexecute a batch file which in turn calls another batch file, CONNECT.COM  which temporarily connects to each of our production servers so that we can copy new files over to production using BeyondCompare. This has been working fine for years.
    CONNECT.COM  is like this but of course encrypted:
    REM %1 is drive letter, e.g. X: $2 is sharename, e.g. "\\dw1\dw"
    net use %1 %2 {synchuser password here}  /USER:domainname\synchuser /persistent:no
    We recently upgraded from CF7 to CF9 and at the same time switched to using a non-administrative account to run CF under. Now our synchronization script won't complete, i.e. it runs the batch file to the point where CONNECT.COM is called then times out while trying to make the connection.
    We also run this script as a CF scheduled task and have the same problem so we tried running the task using an admin username/password.. That didn't help.
    I'm an administrator and can run the batch file with no problem. I can also run it using a windows scheduled task running under the admin uesrname/password we tried with the CF scheduled task. It just seems that ColdFusion can no longer execute the NET USE command.
    Any ideas?
    Thanks

    It sounds like the account used to start the ColdFusion service does not have the rights it needs on the servers in question. Either change the account that the CF service runs under, or give the CF account the necessary priviledges to the files in question.

  • How to use Net use command in SAP

    Dear All,
    Any one knows how to user Net use command in SAP to connect to other system  i have Created in SM69. when i am executing the program it is asking login Details of other system.
    Regards
    SNB

    Hi,
    What is the exact command you exceuting?
    Message was edited by:
            Pavel sheynkman

Maybe you are looking for