Author Topic: How to allow Powershell specific actions?  (Read 86 times)

Stephen

  • Jr. Member
  • **
  • Posts: 44
How to allow Powershell specific actions?
« on: August 02, 2019, 08:34:19 am »
I use CopyQ as my clipboard manager. It has a feature that allows the playing of a sound for every copy that I make to the clipboard. ReHIPS steps in every time with the dialog shown in the attachment. My question is if I "Allow" it will it allow everything that uses Powershell or only the particular cmd concerning CopyQ? I don't want to risk answering the prompt in a way that may not permit me to change it later!

So, in summary my question is how to allow the powershell to play the sound when using CopyQ, but also not to do anything else unless I allow it explicitly.

fixer

  • Administrator
  • Hero Member
  • *****
  • Posts: 1461
Re: How to allow Powershell specific actions?
« Reply #1 on: August 02, 2019, 08:45:41 am »
Take a look at Settings Duration radio-button. By default it's set to Only Once. This way your action will be applied only once. If you set it to Permanent, all Sub-Programs for powershell.exe will be Blocked or Allowed according to your choice.

If you want to allow some command lines only, there is an underlined "add to trusted" link, it'll add current command line to trusted and will be allowing it without alerts. If some part of this command line changes, you can use wildcards. Take a look at Trusted Command Lines tab in Settings, there are some predefined ones with wildcards.

Stephen

  • Jr. Member
  • **
  • Posts: 44
Re: How to allow Powershell specific actions?
« Reply #2 on: August 02, 2019, 12:28:58 pm »
If you want to allow some command lines only, there is an underlined "add to trusted" link, it'll add current command line to trusted and will be allowing it without alerts. If some part of this command line changes, you can use wildcards. Take a look at Trusted Command Lines tab in Settings, there are some predefined ones with wildcards.

Thank you fixer for the information. I saw the link and guessed what it may be for, but I didn't want to risk trying it without being sure about it.

Umbra

  • Active Testers
  • Hero Member
  • *****
  • Posts: 596
  • Beta tester
Re: How to allow Powershell specific actions?
« Reply #3 on: August 04, 2019, 08:47:17 am »
And if a rule is made in System, does it affect other users?  if no, i wish an "all users" option being implemented when creating a rule  ;)

fixer

  • Administrator
  • Hero Member
  • *****
  • Posts: 1461
Re: How to allow Powershell specific actions?
« Reply #4 on: August 04, 2019, 09:36:26 am »
SYSTEM is a special built-in privileged user, for example Services are often started from it. So the answer is no, other users aren't affected.

Currently trusted command lines and trusted users settings are system-wide, they have effect for all users. And program rules are user-wide, they can be different for different users. The best way to manage many users is to change default.rdb in RulesManager, this way these rules will be installed by default for any new user (and you can also install them for existing ones). So currently we don't have "All users" user, but maybe we'll add it, thanks for the suggestion.

Umbra

  • Active Testers
  • Hero Member
  • *****
  • Posts: 596
  • Beta tester
Re: How to allow Powershell specific actions?
« Reply #5 on: August 05, 2019, 05:17:41 am »
SYSTEM is a special built-in privileged user, for example Services are often started from it. So the answer is no, other users aren't affected.
ok thanks for the confirmation.

Quote
The best way to manage many users is to change default.rdb in RulesManager, this way these rules will be installed by default for any new user (and you can also install them for existing ones). So currently we don't have "All users" user, but maybe we'll add it, thanks for the suggestion.
i always forgot about the RulesManager lol  but it is laborious to do  for hundreds of LOLbins...
« Last Edit: August 05, 2019, 05:34:43 am by Umbra »