Kasi77

Forum Replies Created

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • Avatar
    Kasi77
    Member
    in reply to: How to avoid the "Execution Policy Change" message? #391883
    RicklesP;n517464 wrote:
    Don’t know if you can do that from inside a script you’re trying to execute without any other actions, because that would be an obvious security flaw since any script could execute itself without hesitation. Any script I run, I set to execute from a scheduled task. In the ‘Activity’ tab of the Task, you include ‘-ExecutionPolicy Bypass’ in the same field that you call the script. The script runs under whatever the creds are, from the task which calls it. Once that task completes, the system default execution policy is reinforced once more.
    As long as the Task is set to allow a manual run, you can run it at any time. Unless you can set your Powershell security via Group Policy.

    Thank you for your answer [USER=”68253″]RicklesP[/USER].

    Avatar
    Kasi77
    Member
    in reply to: How to avoid the "Execution Policy Change" message? #391882
    wullieb1;n517453 wrote:
    You actually need to sign your script.

    However you can run the script using this

    PowerShell.exe -ExecutionPolicy Bypass -File .runme.ps1[/CODE][/QUOTE]

    Thank you for your answer and possible solution [USER=”3705″]wullieb1[/USER].[CODE]PowerShell.exe -ExecutionPolicy Bypass -File .runme.ps1[/CODE]

    Thank you for your answer and possible solution [USER=”3705″]wullieb1[/USER].

    Avatar
    Kasi77
    Member
    in reply to: Maximized IE window? #391881

    Thank you very much for the fast reply and the link with the solution for my problem [USER=”87″]Ossian[/USER]!

    Avatar
    Kasi77
    Member
    in reply to: Best free IDE for PowerShell? #391880

    I have found another one: PowerShell Plus
    https://www.idera.com/productssolutions/freetools/powershellplus
    It’s free and they have an interactive learning center. :)

    Avatar
    Kasi77
    Member
    in reply to: Best free IDE for PowerShell? #391879
    wullieb1;n515046 wrote:
    Visual Studio Code with the Powershell plugin added.
    ISE does what it needs to though.

    Thanks for the info [USER=”3705″]wullieb1[/USER].

    Avatar
    Kasi77
    Member
    in reply to: Best free IDE for PowerShell? #391878
    Ossian;n515026 wrote:
    There used to be a rather nice “PowerGUI” (powergui.org) but the links seem to go elsewhere now.
    Also you could look for powershell plugins for Eclipse (e.g. https://marketplace.eclipse.org/content/powershelleditor)

    Personally, the ISE does everything I need it for

    Thank you for the information [USER=”87″]Ossian[/USER].

    Avatar
    Kasi77
    Member
    in reply to: Bug in Petri Forum? #391877

    Thank you very much for your reply [USER=”347″]biggles77[/USER].
    Have a nice weekend!

    Avatar
    Kasi77
    Member
    in reply to: Problem with "é" in directory name #391876

    Thank you for the fast reply and for the possible solutions [USER=”91538″]Ser Olmy[/USER]!
    I prefer solution 4, the ugly workaround. It’s easy, fast and effective.
    Thanks again, my problem is solved!

    Avatar
    Kasi77
    Member
    Rems;n513920 wrote:
    The batch is waiting for the exit code, therefore it wait for it to terminate. If you don’t want the batch to wait use the START command.

    @start “” “C:Testtest.txt”
    !!! mind the quotes before the path. The START command assumes that the first text between quotes in the command line is the TITLE, so if the path is between quotes you’ll have to add text between quotes to the command line before the path.

    Thank you for your reply and for the solution [USER=”2530″]Rems[/USER]!

Viewing 9 posts - 1 through 9 (of 9 total)