Powershell wont run "restricted by admin"


  1. Posts : 472
    Windows 10 Pro x64
       #1

    Powershell wont run "restricted by admin"


    Hi. Before using "Software restriction policys" in Secpol i could open powershell, now even after deleting the powershell disallow in "Software restriction policys" i get the message that its been blocked! How do i enable so i can use powershell temporarily before disallowing it again?

    Powershell wont run "restricted by admin"-powershe.png
      My Computer


  2. Posts : 40
    Windows 10
       #2

    BlackVen0m said:
    Hi. Before using "Software restriction policys" in Secpol i could open powershell, now even after deleting the powershell disallow in "Software restriction policys" i get the message that its been blocked! How do i enable so i can use powershell temporarily before disallowing it again?

    Powershell wont run "restricted by admin"-powershe.png
    Well, what do you want to do?

    Basically speaking, you have to set the execution policy in PS, when you want to execute a script.

    do you want to know more?
      My Computer


  3. Posts : 5,453
    Windows 11 Home
       #3

    Try to remove the whole key.
    Code:
    reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\DisallowRun" /f
      My Computer


  4. Posts : 472
    Windows 10 Pro x64
    Thread Starter
       #4

    Buster Friendly said:
    Well, what do you want to do?

    Basically speaking, you have to set the execution policy in PS, when you want to execute a script.

    do you want to know more?
    I cant even open PS to execute anything

    - - - Updated - - -

    TairikuOkami said:
    Try to remove the whole key.
    Code:
    reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\DisallowRun" /f
    Hi. This key doesn't even exist for me

    - - - Updated - - -

    Is there anywhere in the Even Log that can help pinpoint the problem?

    - - - Updated - - -

    Oh i found the key, what do i do with it. How do i unblock it? Powershell wont run "restricted by admin"-powershel-denied.png

    - - - Updated - - -

    should i delete those 2 keys?

    - - - Updated - - -

    Problem solved, i needed to find all those entries and delete them all.
      My Computer


  5. Posts : 40
    Windows 10
       #5

    what the heck are you doing?
    going around, deleting RegKeys without a plan... well, have lots of fun now with your system.

    Really sad that you could not explain what you wanted to do in the first place.
      My Computer


  6. Posts : 18,044
    Win 10 Pro 64-bit v1909 - Build 18363 Custom ISO Install
       #6

    Hello @BlackVen0m,

    I agree with @Buster Friendly.

    You should NEVER muck around with the Registry unless you know what you are doing, and you certainly should NOT do ANYTHING without creating a Registry Backup FIRST, or at the very LEAST, backing up the Registry Keys that you are going to change/amend.

    Of course, creating a System Image would be even better.
      My Computer


  7. Posts : 40
    Windows 10
       #7

    Paul Black said:
    Hello @BlackVen0m,

    I agree with @Buster Friendly.

    You should NEVER muck around with the Registry unless you know what you are doing, and you certainly should NOT do ANYTHING without creating a Registry Backup FIRST.
    hell yeah.

    He also didn't explain his basic problem, and to "support" by telling he should delete some RegKeys.... that's not really a reliable support.

    that's really bad and can frakk up his whole system.
    That happens when people give support without knowing what they actually do.
    I don't get such behavior... I will never.
      My Computer


  8. Posts : 18,044
    Win 10 Pro 64-bit v1909 - Build 18363 Custom ISO Install
       #8

    Hello @Buster Friendly,

    @TairikuOkami is a very capable and valued member who has performed extensive work and research on system customisation and the Registry, as you have probably seen from his previous posts.

    Yes, it would be extremely useful for @BlackVen0m to explain in more detail what the problem is, along with what he has tried so far!
      My Computer


  9. Posts : 40
    Windows 10
       #9

    Well, just to tell to delete some RegEntries without knowing what the User wanted to do in the first place... that is the total opposite of being very capable. That's a very dangerous "tip".

    And still, we don't know what the User wanted to do with his Script.
    And so, its putting the cart before the horse, this won't help to find a solution.
      My Computer


  10. Posts : 472
    Windows 10 Pro x64
    Thread Starter
       #10

    Buster Friendly said:
    what the heck are you doing?
    going around, deleting RegKeys without a plan... well, have lots of fun now with your system.

    Really sad that you could not explain what you wanted to do in the first place.
    Hi friend. Its no problem i did a backup, and this reg key was the settings that was blocking it, so it was no problem deleting it. It should be deleted when i remove the software block but it did not remove it self so i had to do it manually i saw it on another forum

    - - - Updated - - -

    Buster Friendly said:
    Well, just to tell to delete some RegEntries without knowing what the User wanted to do in the first place... that is the total opposite of being very capable. That's a very dangerous "tip".

    And still, we don't know what the User wanted to do with his Script.
    And so, its putting the cart before the horse, this won't help to find a solution.
    What i wanted to do was to software block powershell as a safety measure for it not to run without my knowledge as i read somewhere on a security site. But the problem was that when i wanted to use powershell and unblock restriction, it never unblocked it, it got stuck in the registry.
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 18:54.
Find Us




Windows 10 Forums