Planning and running my script powershell crashed Windows 7

Hi all

I created a powershell script that works perfectly when I run it using powershell. Just, it reads XML files and email some information on their part. But as soon as I have this schedule using the Windows Task Scheduler and run it, it blocks the windows. First of all, trying to open the Task Scheduler, after planning script, it give error, the Task Scheduler service is not available. Then I rebooted my system, and windows starts in recovery mode. I even tried windows recovery to a point recorded earlier, but also, that did not help. My BUSINESS team had to redeploy full Windows 7 on my system. I already tried this on two different systems, both with Windows 7 Professional and it crashes in the same way.

Please help me understand what I am doing wrong.

I don't know how to download my forum script, please let me know if any of you wish to have a look, and I'll send my code.

Thank you

Vittoz

_______@____.com

Hello Ashish,

Thanks for posting your question on the Microsoft community.

This question fits better to the developers on MSDN forums.

I suggest you to ask your question on the MSDN forums.

MSDN forum
https://social.msdn.Microsoft.com/forums/en-us/home?category=windowsdesktopdev

Thank you

Tags: Windows

Similar Questions

  • Questions about planning and executing a script and an Agent

    Hello

    I created a script and I want to schedule it to run. Is it possible to plan and run with the help of an agent but having no repository?

    Thank you
    Randy

    Hi Mary,

    According to our email conversation I post for your thread's detailed response. :)

    Please Don ' t mess up with two types of agent.

    1 Manuel Agent (invoked via commands such as agent.bat and agentscheduler.bat, once the agent/server command closed window will be cancelled)

    2. automatic agent (Agent installed as a Service (Windows only) and can be stareted as a service once the OS launched), its installed via the agentservice.bat command. Please follow the below thread for agentservice,

    Error creating agentscheduler

    Please follow the steps below to schedule a task via agentscheduler manual ie agents,

    1. in the topology, create a physical Agent with the name of the agent, IP address/host name, Port number (by default is20910). TEST of POSITIONING WHICH button at this point.

    2. create a logical agent for physical agent (in the logical Architecture)

    3. change your ODIPARAMS. BAT/SH with your repository connection information,

    Set ODI_SECU_DRIVER = org.hsqldb.jdbcDriver
    Set ODI_SECU_URL = jdbc:hsqldb:hsql://localhost
    Set ODI_SECU_USER = his
    Set ODI_SECU_ENCODED_PASS =
    Set ODI_SECU_WORK_REP = WORKREP
    Set ODI_USER = SUPERVISOR
    Set ODI_ENCODED_PASS = LELKIELGLJMDLKMGHEHJDBGBGFDGGH

    Details:
    ODI_SECU_USER: User of the master repository connection (the user database).
    ODI_SECU_ENCODED_PASS: encrypted password of ODI_SECU_USER
    ODI_SECU_WORK_REP: The name of the repository containing the scripts to run.
    ODI_USER: User connection ODI
    ODI_ENCODED_PASS: encrypted password of ODI_USER
    Note: to ODI_SECU_ENCODED_PASS and ODI_ENCODED_PASS above, the value must be encrypted using the syntax
    agent code
    for example 'agent encode snpm' Note When you copy the encoded string, make sure that the trailing space is not copied.

    4. run the command in the directory "/ bin" of ,.

    agentscheduler '-PORT 20910 = "" "-NAME =".

    5. go to the Manager of topology->-> physical Agent physical Architecture and press the TEST BUTTON now.

    6. go to your scenario, expand it and insert the planning, select the Agent of your logic and plan your work according to your requirement.

    Makes sense?

    Thank you
    G

  • Foglight initialize a command on the PC and run a script that makes a sound or a banner on hold the workstation?

    How can we get foglight to invoke a command on the pc and run a script that makes a noise or a banner on my computer

    http://en.community.Dell.com/TechCenter/performance-monitoring/Foglight-administrators/f/4788/t/19552156#14120

    The question really selectively running a sound in a JavaScript browser session, do not turn something local on the user's PC.  The Sonic equivalent of an animated GIF as an analogy.

    The most difficult part, in Java, play a sound through various types and versions of browser without opening a 'player '.  This has been an incredibly difficult task by Oracle, on behalf of the whole being.  If you really want to dive into it, here are some links:

    http://docs.Oracle.com/javase/7/docs/TechNotes/guides/sound/programmer_guide/contents.html

    One approach that seems to have some promise for very small sound files is:

    http://stephengware.com/projects/soundtoclass/

    I got no time to mess around with it yet.

    This seems to have some promise, but still once, have not figured out how to operate:

    import java.awt.Toolkit

    Toolkit.getDefaultToolkit () .beep)

  • All files generated by a coil in sqlplus receive ownership of oracle: dba instead of the user of the BONE started sqlplus and run the script. There's a file with users owners of BONES of the coil.

    All files generated by a coil in sqlplus receive ownership of oracle: dba instead of the user of the BONE started sqlplus and run the script. There's a file with users owners of BONES of the coil.

    Script launched in until OS user 'A' on the 'A' server which launches sqlplus, then connects to a remote database through a service of tnsnames.ora as another user of the database and the results of this script are spoulées on the server "A".

    The file queued on the old server is written with rw-rw-r: read write user, group read the writing, reading and possession header that is the user of the OS. The file queued on the new server is written to rw-r-r user: reading writing, reading group, public reading and ownership oracle: dba.

    "" The user then has no privileges to modify the file and continue the process of transmitting the file, editing and deleting the file for the next set of commands. This allows us to keep the possibility to migrate to the new server we are unable to process orders.

    $ORACLE_HOME/bin/sqlplus - s user/password@prd1 @./script/CustomScript/R12_OM_UFPC-oracle.sql

    Background: old server running 4.8, Oracle 10.2.0.4 OEL

    New server running OEL 6.5, Oracle 11.2.0.4

    Tested so far:

    File and update umask to 0002 instead of 0022 is now generated as rw-r-r. However, the property is still oracle: dba.

    Update of ownershipt of $ORACLE_HOME/bin/oracle.exe of oracle: oracle (edi added the user to the oracle group) and chmod 6751 oracle.exe. This created several problems where crucial scripts, that is to say of sqlplus failed to run.

    Added! chmod 755 output.file.name - OS user 'A' is not allowed to change to mod.

    Added! command cp MV output file and that generated the file as a user of the operating system: oracle. It is a potential work around in case of emergency, but the developer would have to rewrite the countless scripts.

    Any ideas?

    I have reproduced the behavior of the old server and am able to spool a file via sqlplus under OS user. No changes have been made on the remote database server. All the changes have been on the new server hosting a small 11.2.0.4 database on a server running OEL 6.5 32 - bit OS.

    (1) removed the sticky bit $ORACLE_HOME/bin/sqlplus using chmod u-s, g-s, o - s suggestion of Billy ~ Verreynne

    (2) modified the main group for the 'oracle' user match the user operating system applications, while maintaining membership in the groups 'oracle' and 'dba '.

    -We are dealing with here EDI processes, so the Group was called edi.

    (3) modified property of the files tnsnames.ora and listener.ora for oracle: edi

    (4) restart the receiver

    (5) disconnect / reconnect

    Script runs as expected, the output file contains the correct ownership and permissions.

    Thank you all for taking a look and offering options.

    -Josh

  • Cannot install flash player. After you download the Adobe FLash Player installer and running, a gray pop-up window opens but nothing does not appear in it. There is no progress bar or whatever it is.

    Cannot install flash player. After you download the Adobe FLash Player installer and running, a gray pop-up window opens but nothing does not appear in it. There is no progress bar or whatever it is, and even after keeping it running for a long time, there is no progress. Please help with this question.

    Hi Rlap,

    We are aware of this problem and are working on a fix.  In the meantime, please use the offline installation program, displayed at the bottom of the help page corresponding to your operating system and browser:

    Installers are at the bottom of the page, in the section "problems".

    --

    Maria

  • Batch file to open all files in a folder, one by one and run a script.

    I'm looking for a batch file, to run a script on each file file in the folder and open all files in a folder in the path defined and close the file. How is it possible

    Anthony,

    I would have you post here for assistance more.

    http://social.technet.Microsoft.com/forums/en-us/home?category=windowsxpitpro

    We know if that helps.

  • You can install and run Photo Story 3 for Windows Vista

    I need help. My step daughter uses a computer at school to do an assignment for the class. They use Windows photo story for this project and I do not have this program on my computer. I have windows vista on my computer and wanted to know, can you install and run Photo Story 3 on it. If so where can I go to get it and install it on my computer.
    Thank you

    According to MS, it's for Windows XP:

    http://www.Microsoft.com/download/en/details.aspx?ID=11132

  • Run the script automatically when Windows goes into hibernation or wakes up?

    Hello

    I use the group policy feature in Windows XP to run scripts automatically when you open a session or logoff.

    But it is also possible to make a script run automatically, whenever a Windows-xp machine is about to Hibernate? And also when it wakes up from hibernation?

    The clues how to proceed?

    A funny hibernation is that if you put into hibernation and power then upwards and don't 'do' nothing - like press a key or move the mouse (just to sit and watch), in 300 seconds (5 minutes), XP will go back into Hibernation automatically.  Try it!

    XP does because after it comes out of Hibernation, if XP detects that there is nothing to 'do', he thinks he might be from Hibernation by accident and goes back to "sleep" and said "why you wake me up?

    That's why when people hibernate during the night and their machine turn on the morning he wakes up, they make their coffee or breakfast and return later to see that they have the power of their machine again.  If they think something is wrong, but things are working as expected.

    One way to fix this, is to use a third-party tool that uses the command line to simulate a mouse movement.   It is enough to prevent the rehibernating while you are on XP.

    To simulate a movement of the mouse as soon as your system is equipped with Hibernation, you will need to download the nircmd.exe file.

    There are many other utilities of vouchers on NirSoft main page:
    http://www.NirSoft.NET/

    To simulate the movement of the mouse, download the file nircmd.exe here

    http://www.NirSoft.NET/utils/nircmd2.html

    Put the nircmd.exe file in a folder which is somewhere in your path (c:\windows\system32, etc.) or consult the path in your command file. I put the nircmd.exe file in my c:\tools folder where I keep other things.

    If you do not have Hibernate enabled in your Power Options, tab hibernation, it will put your system on Stand-By instead of Hibernation.

    Create a batch file (I called mine hibernate.bat and put the nircmd.exe in my c:\tools folder) and put this line in your hibernate.bat file:

    off @echo
    Powrprof.dll, SetSuspendState c:\WINDOWS\system32\rundll32.exe Hibernate
    c:\tools\nircmd.exe 10 10 movecursor
    movecursor-10 c:\tools\nircmd.exe - 10

    Save the new file hibernate.bat on your desktop or somewhere, you can retain and double-click it to run the batch file.  When you are sure that it works very well, and then drag the new desktop icon to your quick launch area (to the right of the button start), change the icon, rename, etc, so it looks a bit better and then you can click on new quick launch when icon to call the file hibernate.bat.  Now just remember to use the hibernate.bat file (which could be on your desktop with a nice icon) instead of the menu to turn off the computer.

    The first command will put the system into hibernation, and then when XP comes from hibernation (even days later), run the following commands in the batch file.  These last two commands will simulate a slight mouse movement and who will deceive XP into thinking there is a reason to get out of hibernation and it will not go back to sleep.  Then when you come back from your coffee, your system is always waiting for you.

    If your case, your hibernate.bat might look something like:

    off @echo
    order 1 run before hibernation
    2 run before hibernation command
    order 3 to run before hibernation

    Powrprof.dll, SetSuspendState c:\WINDOWS\system32\rundll32.exe Hibernate

    order 4 to run when coming out of hibernation
    command 5 to run when coming out of hibernation
    order 6 to run when coming out of hibernation

  • Running a script powershell in a workflow

    Hi all

    Everyone was able to integrate a simle powershell script from a workflow job. Try to get a custom powershell script to be run from a workflow. There are a few specific elements of application checks the script. I hope that I can plan this workflow at a time affecting the operation.

    Has anyone seen any documentation on the development of workflows.

    Thanks advance.

    Please check thread

  • I need an example script Powershell in Windows 7

    I can repeat this request I presented during my "subscription", but he doesn't know if it took.

    I would be recognizing an example of a Windows Powershell Script that looks up a record in a file and displays the content of this record on my screen. Records are scanned from Documents. They are scanned by user 'XX' within the Date.

    The path is: C:\Documents\DailyPosting

    I've programmed in a distant past, but did not use scripts. If I had an example I could go from there. I don't read very well of manuals.

    I am 78 years old. Would be grateful yourhelp!

    Thank you

    Cmawsquaw

    Hello

    The question you posted would be better suited in the TechNet Forums. I would recommend posting your query in the link below.

    http://social.technet.Microsoft.com/forums/en/category/scripting

    Hope this information helps.

  • External JAR and run the Script

    It is a way to use external jar (Drools) in run script step? Alternatives?

    Thank you

    You can use external jar files in LiveCycle along with other java web applications.

    1. place your JAR file in the application's lib directory.

    for example c:\jboss\server\all\lib

    2 import the package within the ExecuteScript activity and start using classes.

    Nith

  • Mini Mac; Windows can be installed on the SDXC card to start and run windows

    I was wondering if I could install Windows 10 to the SDXC card slot and run the card SDXC of Windows?   I rarely use Windows and I would ' t need you worry too much space Mac.  I thought I could unplug the unit out of the machine most of the time, leaving the slot for use with other storage devices so that I do not use Windows.     My HARD drive is full & I thought it would be nice to have a Windows machine that would not take more space on my HARD drive.

    Mac Mini (late 2012) 2.5 GHz Intel Core i5 with 4 GB of memory running with OX El Capitan 10.11.1

    No, but you can try cloning once installed on the internal drive.

  • Run the script inside the virtual machine the user when the user connects or reconnects

    Hello

    is it possible to detect the user that the user has connected or reconnected to his office inside the virtual machine and run a script?

    It is also possible within the VM user to determine if the user is connected and how long?

    One way to do this is via the following powershell command, but this only works if the user is connected through PCoIP Protocol.

    Get-WmiObject-class Win32_PerfRawData_TeradiciPerf_PCoIPSessionGeneralStatistics - SessionDurationSeconds property

    Best regards

    > it is possible to detect the user that the user has connected either reconnected to his office inside the virtual machine and run a script?

    You can run scripts as user on login and reconnect, this has been a feature since 3.0. See running commands on the desktop view.

    > It is possible inside the VM user to determine if the user is connected and how long?

    I don't think that we expose, but you should be able to query Windows for the connection time, or you could write the last time to connect with a script (maybe that is the reason for your first question?).

    Mike

  • How to run a script from a "Button 1" button?

    Hi all, I had this problem to have a window with several buttons named "Button 1" "button 2"... and run the script 'Script A' If you click on button 1, the script 'Script B' If you click on the button 2, etc... ".

    Here is my small script:

    indesign #target

    create a table of contents that send directly to the good script

    var l = new Window ("dialog");

    var buttongroup = w.add ("group");

    var panel = buttongroup.add ("panel");

    var button1 is panel.add ("button", undefined,"Script");.

    var button2 is panel.add ("button", undefined, "Script B");.

    var button3 is panel.add ("button", undefined, "Script C");.

    var cancel = buttongroup.add ("button", undefined, "Cancel", {name:'cancel'});})

    buttongroup.addEventListener ('click', press)

    w.Show ();

    function press (e) {}

    {if(e.Target.type=="Button")}

    If {(A e.target.text is "Script. »)

    w.Close ();

    app.doScript (new File("c/scriptA.jsx"),ScriptLanguage.javascript);

    }

    Else if (e.target.text == "Script B") {}

    app.doScript (new File("c/scriptB.jsx"),ScriptLanguage.javascript);

    }

    Else if (e.target.text == "Script C") {}

    app.doScript (new File("c/scriptC.jsx"),ScriptLanguage.javascript);

    }

    }

    }

    Each manuscript A, B and C starts with an app.dialogs.add)

    And that is the problem, he said that an alert or a modal dialog box is already active

    I tried the w.close (), but it does not work...

    I don't think that addEventListener is what I need, maybe I'm wrong for a window, but it is the only way to give names to the buttons, is it not?

    Instead of var this:

    w = new Window ("dialog");

    Use this:

    var l = new Window ("range");

    Peter

  • ScriptUI run the script in the button of the dialog box

    Here's what I have right now.  It's a little awkward in the way it works, and I just have a little smoother.

    I have a script at startup which creates a Menu item with a submenu of the menu item drop-down. When you click the submenu item, it runs a script.

    The first thing the script is pop up a message box that tells them that two dialog boxes go to the pop-up window. One by asking them to choose the location of an xml file and the second dialog box that ask them to choose the location of their folder of images.  After you finish choose their folder in the second dialog box, the script takes these two values, makes variable and continues to run the rest of the script.

    Here's what I would...

    1. open a window for dialogue with two input fields, both 'Browse' buttons and OK and CANCEL buttons

    2. When you click Browse next to the first input box for the first button, it will open a file dialog window.  You select your file and the file string will populate the input field

    3. When you click on the second button next to the second entry field, it opens a file dialog window.  You select the file and the string fills the second input field.

    4. When you click OK, it nurtures values in the input to a script fields.

    I already have scripts which opens the dialog for file and folder boxes, but what I can't understand how the is to start and run a script to a button press, in this case, when you press the OK button.  It's probably an onClick, but I was not able to find examples of what would be the syntax.

    Is the closest I found in the beginning ScriptUI document that was on the site of Jongware, in the section on Communication between the windows.  But each window opens with a different scenario and is not using a button to call a script.

    As always, any point in the right direction is much appreciated. Thank you.

    ScriptUI windows and JS file dialog boxes are not communucate. To get a return value in a file dialog box, you would do something like this:

    myFile = file (myFolder) .openDlg ("select files");

    If (myFile = null)

    back, do nothing

    The JavaScript Tools Guide CSx (see the Help menu on the ESTK) documents several dialogues selection of files and folders.

    Peter

Maybe you are looking for

  • Where photos store my photos

    End upgrade yesterday to El Capitan... so far I DO NOT LIKE IT.  I have loaded 2 pictures on my camera for the new program 'photos'... but I can not find them... WHERE they are stored on my MAC?

  • possible virus?

    I get a pop-up message on my iPad that says "can I have adware/spyware virus" and told me to call + 1-866-933-5490. What is c?

  • FPGA code slows down suddenly

    I have the following code in the FPGA (didn't integrate the png because it is too big. You will have to click on the attachment below) and I noticed a bottleneck in the FIFO, when both running on the FPGA and jusing simulating values in the Dev Envir

  • arial font is not compatible regular

    I have a problem using Family Tree Maker 2011 worm. When generating reports, that the program is closed. Apparently, this is due to "Regular, police Arial doesn't support style. Please help, I have to do.

  • record and playback