Run script without logon

Hey there,
I have a task and I'm not sure about the feasibility.
I run a windows terminal server farm with roaming profiles and I would write a script which rename a folder on the user fileshare.
The user has \\fileshare\profile\important and I want to rename this folder to \\fileshare\profile\important.backup.
My problem is this is a sync folder. When the user has a session and execute this script - rename works, but when the user do a logoff the important folder would be write back to the fileshare.
And I'm not really sure how to solve this problem. My (abstract) idea is to build a simple batch script on a other fileshare and when the user clicks a button on an application the batch script starts with 120 seconds delay, during this delay the user logoff
and after this delay (and no other session) the rename
would be happen.
But how is it possible to execute a script (with user permissions) and in the same time a logoff my user session (and have no other session running)
I would be very happy about some ideas for my problem.
Thanks,
Patrick

Hi Martin,
no - it should not be the part of roaming user profile (citrix profile management).
I have a folder and this folder synced on every logon on a terminal server. (some stuff from userprofile) - this folder gets corrupt.
my idea is, the user click on a batch script / application / whatever to say :"Hey, I think my userprofile is corrupt. Please restore it."
I can not rename the userprofile order on the terminalserver machine.. so the follow tasks are necessary (i think these tasks would be the best solution):
1) Logoff terminalserver session (the (corrupted) profile writes back to the fileshare)
2) Rename this folder on the fileshare
When the user logon the next time, they will get a new profile because on the fileshare isn't a folder with the right name.
to 1) isn't a problem.
to 2) is a problem. because I want to rename a folder on a fileshare with user rights without a session on a terminalserver.
so my idea was to have a kind of script which delete the user profile and to give over the user credentials. So a script/task can run with user credentials and user permissions to delete the folder on the fileshare (this is possible with the user rights)
without having an active session.
Hopefully I explained my idea a little bit better.
Patrick

Similar Messages

  • Run Script Without Window

    Is there an easy way to run an outside script(PHP?) from AS3? I want to update my file using PHP and I DO NOT want a window to pop up with the script. I have tried using:
    navigateToURL (url,'_self');
    And several other ways, but most don't work or they open a new window? Any other suggestions?
    Alex L

    You want to look into using the URLLoader class to have an external file process information into your AS3 file.  Try searching Google using terms like "AS3 URLLoader PHP tutorial"

  • Configuring Shutdown without logon, using command line or script

    I´ve configured the shutdown without logon capability in Win2012/R2 using the GPEDIT.MSC
    How cna i do that by command line?
    In the past i could use the reg key ShutdownWithoutLogon, but i´ve configured in the GUI but nothing happened in the registry of the win2012/R2
    C:\>reg query "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v ShutdownWithoutLogon
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon
        ShutdownWithoutLogon    REG_SZ    0
    How can i do that, automated, to configure several computers in workgroup environment

    Hi KayZerSoze,
    Since there has no domain enviroment, remote access is more difficult. However,  if the network allows this two workgroups can communicate with each other, you can try Powershell Remoting:
    Server 1 remote access Server 2.
    1) Run
    Enable-PSRemoting –Force on server2
    You need to run
    Enable-PSRemoting –Force on server1, which gives you the rights to access and modify TrustedHosts setting, or you will receive the error “Set-Item : Access is denied.”
    2) You can add the TrustedHosts entry on server1:
    Set-Item WSMan:\localhost\Client\TrustedHosts –Value remoteipaddress
    This command above configures Windows PowerShell Remoting so that you can connect to any computer, not just those inside trusted domain(s).
    Then run the script below to change registry value on server2 with Powershell, which will change the value of "ShutdownWithoutLogon"
    to "1":
    Invoke-Command -ComputerName server2ipaddress -Credential admin -ScriptBlock {Set-itemproperty -path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" -name ShutdownWithoutLogon -value 1}
    For more detailed information about Powershell Remoting, please Refer to this FAQ:
    http://social.technet.microsoft.com/Forums/windowsserver/en-US/f60a29ef-925e-4712-9788-1f95e12c8cfc/forum-faq-introduce-windows-powershell-remoting?forum=winserverpowershell
    If there is anything else regarding this script, please feel free to post back.
    Best Regards,
    Anna Wang

  • How to run the form without logon?

    sir:
    I want to create the application without logon,but before the
    form appear,I must logon, I want to know how to run the form
    without logon(comment:I don't connect to database!);
    null

    steve (guest) wrote:
    : Create trigger ON-LOGON. Supply alternative logon code
    : or NULL; if you want to do nothing. Form will execute
    : but will not produce logon window.
    : gang lee (guest) wrote:
    : : sir:
    : : I want to create the application without logon,but before
    the
    : : form appear,I must logon, I want to know how to run the form
    : : without logon(comment:I don't connect to database!);
    Mr steve,thanks for your help!
    null

  • Run after effects script without opening after effects?

    I have a project as a template. I want to run a script that injects itself with the project and replaces videos and text depending on the contents of my script file. So far so good, but can I run the script without opening after effects GUI? I use this now: afterfx -r c:\script_path\example_script.jsx. Is it considered best practice to have after effects GUI up and running if going to do many script changes on the template? Basically I am looking for the same functionality as aerender with no GUI.

    To my knowledge scripts cannot change projects without the program actually running. Scripts merely call reflections of the internal commands which only are available when the program runs in full. Perhaps some of that has changed in AE CC, but I'm not aware of it.
    Mylenium

  • Script Alert "You should only run scripts from a trusted source."

    I created a small javascript which opens Photoshop and resizes some images.
    I want to be able to double-click the .JSX file from Windows Explorer, and have Photoshop execute the script. Likewise, I want to be able to run the .JSX file from the command line.
    The script runs perfectly. However, the problem is that I don't want any user interaction. I want to be able to run the script from the command line without the user having to click anything. What happens now when I try to run the file from Windows Explorer of the command line is, I get a Script Alert with the following text:
    You are about to run a script in Adobe Photoshop CS3. You should only run scripts from a trusted source. Do you want to run the script? Yes/No
    Is there any possible way to bypass this message or to answer in the affirmative?
    Thanks,
    Jamie L.

    Hi... Sorry to revive such an old thread,
        Does anyone know the "trusted source" folder for MAC CS4.
    EDIT!
    My bad.  "The /users/<user_name>/documents/Adobe Scripts" folder is working for this purpose for me.  I needed a path to it and forgot that the ~ resolves to the current user.  Sweet.
    -Bill

  • How to create an Index using a script without having to open all the files using BOOK

    Can anyone help me with running a script without opening all the files?

    You cannot access the content of a file that is not open. Your script can open and close files in the background if it's written that way.

  • How to generate all index creation scripts without it's storage clause?

    How to generate all index creation scripts without it's storage clause?

    Execute this before running the actual dbms_metadata.get_ddl
    exec dbms_metadata.set_transform_param(dbms_metadata.session_transform, 'STORAGE', FALSE);
    SELECT DBMS_METADATA.GET_DDL('INDEX',a.index_name) FROM USER_INDEXES A;-Anantha
    Edited by: Anantha R on Sep 30, 2009 11:40 AM

  • Interrupt a running script in CS3

    This may be a scripting question. Because of poor decision making on someones part (me), I am running a script that may take a very long time to run. Is there a way to stop the script without having to force close the program? I am running JETs Join Nearest Points script and there are probably many thousands of points that I had erroneously selected. The script usually says I have a ridiculously large number of points, do I want to continue? I think it is stuck on counting them!
    Well it finished counting while I was composing this. There are 4513 points. Anyway, it there a way to stop it for future reference.

    Cmd+. doesn't seem to work any more like it did pre-OS X.
    But I think scripts prefer to finish what they set out on; that is, just give them time to finish even though it seems to take ages.
    I've got one for InDesign that always takes several minutes to finish – it always seems longer when you're waiting for it.
    Like they say, "A watched pot never boils". I reckon the trick is just to go and make yourself a cup of coffee and wait for the kettle to boil instead.
    By the time your coffee is ready your script probably will be too.

  • How i can see a page without logon to the portal

    Who knows how i can see a pge without logon to the portal?
    Thanks anyway

    i don't understand your, but
    my users login to page by portlet on all pages or custom login page.
    pl/sql portlet on all page:
    put pl/sql portlet on page
    pl/sql text:
    begin
    if portal.wwctx_api.is_logged_on then
    htp.p('<center>logout<center><br>');
    else
    htp.p('<table BORDER="1" WIDTH="100%" CELLPADDING="2" CELLSPACING="0" class="RegionBorder">
    <tr><td class="RegionHeaderColor" WIDTH="100%"><script TYPE="text/javascript">
    <!-- Comment out script for old browsers
    function loginsubmit()
    document.LoginForm.uname.value =
    document.LoginForm.ssousername.value;
    document.LoginForm.pwd.value =
    document.LoginForm.password.value;
    document.LoginForm.ssousername.value = "";
    document.LoginForm.password.value = "";
    document.LoginForm.submit();
    //-->
    </script>
    <form ACTION="PORTAL.wwptl_login.login_url" METHOD="POST" name="LoginForm" AutoComplete="Off" onSubmit="loginsubmit()">
    <input TYPE="hidden" NAME="p_requested_url" VALUE="http://your.curent.name">
    <input TYPE="hidden" NAME="p_cancel_url" VALUE="http://your.curent.name">
    <input TYPE="hidden" NAME="uname" VALUE="">
    <input TYPE="hidden" NAME="pwd" VALUE="">
    <table ALIGN="center">
    <tr>
    <td><font class="PortletText1">name</font></td>
    <td><input TYPE="text" NAME="ssousername" SIZE="10" MAXLENGTH="80" style="font-size:10px;"></td>
    </tr>
    <td><font class="PortletText1">password</font></td>
    <td><input TYPE="password" NAME="password" SIZE="10" MAXLENGTH="255" style="font-size:10px;"></td>
    </tr>
    </table>
    <center>
    <input TYPE="submit" VALUE="Registration">
    </center>
    </form></td></tr></table>');
    end if;
    end;
    set show directly in page.
    good luck ?:(

  • How to run tests in Firefox when running script using runScript.bat

    I am trying to run OATS script from commandline without opening Openscript IDE(eclipse). I use the following command to execute my script:
    runScript "<scriptpath>/<scriptName>.jwg"The script starts to execute and launches IE. I wanted to run my test on Firefox but it always launches IE even if Firefox is my default browser.
    If I run my script from Openscript IDE it honours the Browser settings in View > OpenScript preferences... OpenScript > General > Browsers. When running thorugh cmd line, these settings are not taken into account as Eclipse preferences settings are applicable only for the workspace selected for the IDE.
    Any thought on how to set these preferences when running scripts using runScript.bat file?
    Thanks,
    Manish Khatre

    Hello
    You need to pass the value/parameters (preferences) to the command line as documented in the OpenScriptUserGuide.pdf.
    Something like
    -browser.type type
    Specify the browser type to use for script playback
    where type is one of the following (use exact case
    and no spaces):
    ■ InternetExplorer
    ■ Firefox
    The default is InternetExplorer
    JB

  • Running SchemaTool without a database

    Is it possible to run SchemaTool without a database?
    I want to generate the SQLs during the build process and
    use them to create the tables during deployment. I tried
    putting a <persistent-types> block in system.prefs so that
    SchemaTool will not try to keep track of the types in
    database but it still try to connect to the database when
    I run it with the following options:
    -action refresh -outfile <sql-file> <jdo-file>
    Any idea?
    Yan

    Yan Or <[email protected]> writes:
    Is it possible to run SchemaTool without a database?
    I want to generate the SQLs during the build process and
    use them to create the tables during deployment. I tried
    putting a <persistent-types> block in system.prefs so that
    SchemaTool will not try to keep track of the types in
    database but it still try to connect to the database when
    I run it with the following options:
    -action refresh -outfile <sql-file> <jdo-file>
    Any idea?Yan,
    Currently, we always connect to the datastore to retrieve a list of
    existing tables and columns so that we know what modifications need to
    be made. Being able to create complete SQL scripts with no DB connection
    would be useful. I've added it as a feature enhancement to our bug
    tracking database:
    http://bugzilla.solarmetric.com:8080/show_bug.cgi?id=189
    In the mean time, you can create the appropriate SQL by creating a blank
    schema in the target data store and executing the schematool against it
    using the '-outfile' option.
    -Patrick
    Patrick Linskey [email protected]
    SolarMetric Inc. http://www.solarmetric.com

  • Auto start a program without logon on Windows Server 2012

    I develop a software that starts at server startup without login, it works fine with older versions of Windows Server (2003, 2008) with 2012 my executable program that starts only when a session is opened (administrator or user). 
    My program uses a 32bit architecture it is found in: 
    HKEY_LOCAL_MACHINE \ SOFTWARE \ Wow6432Node \ Microsoft \ Windows \ CurrentVersion \ Run 
    How can i make my program starts automatically after any system reboot without logon? 
    Thank you for your cooperation

    Make it a service and configure it to start automatically.
    .:|:.:|:. tim

  • Running @Script.sql from inside C#

    I'm trying to include a script file as part of a deployment. I'm able to connect to my Oracle XE database in code and run stored procedures as well as text commands. My deployment will copy a script file into an install directory for later use. When the user activates history recording, I want to run this script file.
    I can run the script manually...@"C:\Program Files\History Setup\TestScript.sql"...without issue. Works just fine.
    Currently I recieve an invalid sql command error. At the moment I'm trying:
    Command.Connection = myconnection;
    Command.CommandText = @"@""C:\Program Files\History Setup\TestScript.sql""";
    Command.CommandType = CommandType.Text;
    try
    Connection.Open();
    Command.ExecuteNonQuerry;
    catch (Exception ex)
    error handling
    If anyone has advice for running script files from inside C#, it would be appreciated.

    The other Dennis is correct. You must cleanup the text.
    This should give you a start. I have had good results using the forward slash as a delimiter.
    r,
    dennis
    byte[] ba = GetFileContent("SomeFileName");
    string All_My_Statements = Encoding.UTF8.GetString(ba);
    ExecutScript(NetConnectionString, All_My_Statements);
            public void ExecuteScript(string _connectstring, string _final_statements)
                   string[] cmd_seq = _final_statements.Split(new char[] { '/' }, StringSplitOptions.RemoveEmptyEntries);
                for (int i = 0; i < cmd_seq.Length; i++)
                    string act_cmd = cmd_seq;
    string tmp = actcmd.Replace("\r\n", "");
    act_cmd = _tmp;
    if (act_cmd.Length > 2)
    try
    int r = ExecuteTextNonQuery(_connectstring, act_cmd);
    if (r == 1) // success
    LogThis("\tSuccess:" + act_cmd);
    else
    LogThis("\tExecuted:" + act_cmd);
    catch (OracleException) { LogThis("\tException:" + act_cmd); }
    catch (System.Exception) { LogThis("\tException:" + act_cmd); }
    public static byte[] GetFileContent(string f)
    byte[] ba = null;
    try
    System.IO.FileStream fs = new FileStream(f, FileMode.Open);
    System.IO.BinaryReader br = new BinaryReader(fs);
    ba = br.ReadBytes((int)fs.Length);
    br.Close();
    fs.Close();
    catch (System.Exception) { };
    return ba;
    public static int ExecuteTextNonQuery(string connectionString, string exec)
    int rtn_int = -1;
    using (OracleConnection oraconn = new OracleConnection(connectionString))
    string execcmd = exec;
    try
    _oraconn.Open();
    using (OracleCommand cmd = new OracleCommand(_execcmd, _oraconn))
    cmd.CommandType = CommandType.Text;
    rtn_int = cmd.ExecuteNonQuery();
    catch (OracleException _oraEx)
    throw (_oraEx); // Actually rethrow
    catch (System.Exception _sysEx)
    throw (_sysEx); // Actually rethrow
    finally
    if (_oraconn.State == ConnectionState.Broken || _oraconn.State == ConnectionState.Open)
    _oraconn.Close();
    } //using _conn
    return rtn_int;

  • Run script alarm question for iCal

    I have a script that I have been able to set as an alarm in iCal to change the times of events on various days.  People subscribe to this calendar and I would like to imbed the script as an alarm in the subscribed calendar.  Can't get it to work.  Here is the message I am getting right now when I refresh the subscribed calendar...  There was an unexpected error with the request (domain CalCalendarStorePersistenceErrorDomain / error 1 / description 'Alarms that open files or scripts must include a file path.').  As far as I can determine it does have a file path!  Does this error mean that the script should have a file path?  I've tried the
    set theFile to POSIX path of (script name) command in the Applescript, but I'm not convinced I have it right.  Can you run scripts that reside on the local machine by activating them through subscribed calendars?
    thanks,
    dan

    Found the problem: The run_maintenance script couldn't be completed without user action (because of the dialogue), so was giving iCal an error.
    Solution: I've set another script that simply launches the run_maintenance script as the alarm.
    So there are 4 players in this daisy chain: iCal, a script to launch the reminder script, the reminder script, and Maintenance!
    Inelegant, but it works.

Maybe you are looking for

  • Can't view videos using FCS client on Macbook Pro

    I'm on a new Macbook Pro and I'm accessing FCS via the client. All seems fine but when I attempt to view an asset by clicking on the "video clip" icon nothing happens. Same issue when I open the asset and use the "Actions" drop down and select view.

  • Solaris ufs and filesystemio_options with setall

    I have a quick question about direct i/o and the filesystemio_options parameter, in particular on ufs and Solaris. My understanding is that if we set this to setall (or directio), Oracle will, at its discretion, use direct i/o for file access. Howeve

  • Device Manager and Desktop Software fail to work after a profile migration

    Hi there, I have just moved in a Windows Domain so I had to change my IP configuration. I have done a moveuser to move my local profile to the domain's profile. My Device Manager and, therefore, desktop software are not responding anymore. I keep rec

  • HT201364 Can't install the new OS X Maverick on my MacBook Air.

    I have tried to install the new OS X Maverick, but my computer will not download it. It states that I need  "this system requires MacBook Air Flash Storage Firmware Update 1.1 Click on the Updates button in the Mac App Store". I look in the app store

  • Logo jpeg won't export to pdf in forms central

    I am having an issue when I export my form to a pdf to my desktop.  The form looks great in forms central, however when I go to export as a pdf the company logo is not there.  What can i do to rectify this?  I would like to use the form as a hard cop