Jump to content

Hey forum, I'm trying to run a powershell script i have saved by right clicking it and then clicking on run with powershell but as soon as i click that i can see the powershell window open and then immediately close. I've run this script before on my old copy of windows. Anyone know what's going on and how to fix it? Thanks

                                                                                                                                                                | 5820k+EK supremacy nickel+acetal white 4.5Ghz | X99 Deluxe | Enthoo Luxe | 2x gtx780+komod NV full cover block | Corsair AX1200i | WD blue 500gb |

                                                                                                                                                                                 Kingston V300 120gb | Samsung 840 Evo 500gb| Bitspower D5 vario+Res combo | primochill advanced LRT tubing (Solid White) |

                                                                                                                                                       | Alphacool Nexxos MONSTA dual 120mm Black Ice nemesis GTX360 triple 120mm | Noctua NF-F12 X4 | Bitspower true silver 1/2ID 3/4 OD compressions (various angles) |

Link to comment
https://linustechtips.com/topic/27525-powershell-keeps-closing-right-away/
Share on other sites

Link to post
Share on other sites

What kind of script? Maybe try to run it with administrator rights?

Christopher Kruse | Webdeveloper (Interface & Applications)
 
i7 3770k (3233C Batch) @ 4.2ghz | Asus P8Z77 WS | Gigabyte 780 Ti OC  | Corsair Vengeance LP 1600 32GB DDR3 | Samsung 850 EVO 500GB +2x Samsung 840 EVO 250GB + Samsung 830 256GB + 4x WD30EFRX, 2x WD30EZRX, 1xWD20EARS | Corsair AX750 + Bitfenix Extensions | Fractal Design Define XL R2 + Xigmatec 3in3 Hotswap Cage | Noctua NH-D15 + Thermal Grizzly Kryonaut, 5x Noctua NF-P14s redux-1500 PWM | Peripherals: Logitech G502 + Corsair K70 RGB + Red 40A-L O-Rings | Sound: Denon AVR 2807 via HDMI + 2x Nubert nuPro A-20 + 1x B&W CC6 Center | SoundMagic E10 | Jabra Speak 410

Link to post
Share on other sites

http://bfuniverse.com/archives/111

 

^^i followed those steps and that is the script also

                                                                                                                                                                | 5820k+EK supremacy nickel+acetal white 4.5Ghz | X99 Deluxe | Enthoo Luxe | 2x gtx780+komod NV full cover block | Corsair AX1200i | WD blue 500gb |

                                                                                                                                                                                 Kingston V300 120gb | Samsung 840 Evo 500gb| Bitspower D5 vario+Res combo | primochill advanced LRT tubing (Solid White) |

                                                                                                                                                       | Alphacool Nexxos MONSTA dual 120mm Black Ice nemesis GTX360 triple 120mm | Noctua NF-F12 X4 | Bitspower true silver 1/2ID 3/4 OD compressions (various angles) |

Link to post
Share on other sites

^^i followed those steps and that is the script also

The execution policy most likely is resetting when you close Powershell (normal). Open Powershell and set your execution policy. Navigate to the directory containing the script. Type .\steamwatcher.ps1

Link to post
Share on other sites

The execution policy most likely is resetting when you close Powershell (normal). Open Powershell and set your execution policy. Navigate to the directory containing the script. Type .\steamwatcher.ps1

u wot. lol can you like type me a guide on how to do that, sorry i'm a n00b with powershell.

                                                                                                                                                                | 5820k+EK supremacy nickel+acetal white 4.5Ghz | X99 Deluxe | Enthoo Luxe | 2x gtx780+komod NV full cover block | Corsair AX1200i | WD blue 500gb |

                                                                                                                                                                                 Kingston V300 120gb | Samsung 840 Evo 500gb| Bitspower D5 vario+Res combo | primochill advanced LRT tubing (Solid White) |

                                                                                                                                                       | Alphacool Nexxos MONSTA dual 120mm Black Ice nemesis GTX360 triple 120mm | Noctua NF-F12 X4 | Bitspower true silver 1/2ID 3/4 OD compressions (various angles) |

Link to post
Share on other sites

Note: quotation marks will be used as the delimiting character for commands. You do not need to type them.

 

1. Open Control Panel> Administrative Tools

2. Right click Windows Powershell and click 'Run as Administrator'

3. "set-executionpolicy -executionpolicy unrestricted"

4. "cd C:\users\%username%\downloads\steamwatcher" (replace '%username%' with your username (if the script is saved elsewhere, you will need to use that folder path instead of this one))

5. ".\steamwatcher.ps1"

 

That should run the script.

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×