locked
powershell cannot be openned RRS feed

  • Question

  • hi, when I try to open the powershell cannot be openned, I get this error

    I get the

    restricition

    This operation has been cancelled due to restrictions in effect on this computer. Please contact your system administrator

    Thursday, October 5, 2017 10:13 AM

Answers

  • never mind, I fixed it with the help of this web

    https://www.reich-consulting.net/2010/10/28/fix-error-this-operation-has-been-cancelled-due-to-restrictions-in-effect-on-this-computer/

    the first step ("fixing the registry")

    I guess hardworks and persistent is indeed very good thing
    • Edited by Flaze07 Thursday, October 5, 2017 12:22 PM
    • Marked as answer by Flaze07 Thursday, October 5, 2017 12:22 PM
    Thursday, October 5, 2017 12:21 PM

All replies

  • Looks like group policy is stopping you from opening this app. Are you one a company or work network/ computer?
    Thursday, October 5, 2017 10:23 AM
  • I don't work...

    I am a regular highschool student that wants to use my laptop to learn powershell

    Thursday, October 5, 2017 10:46 AM
  • Are you on a school network or school computer though?

    It would be uncommon for a personal computer on a home network connection to have these issues. If you are on a home network and a personal computer you could see if you are in the local Administrators group.

    Thursday, October 5, 2017 10:56 AM
  • Hi,

    It looks like that admin is not letting you access any tool which can make modifications or get info on it. If you cannot open cmd also then that is the case. You will need to ask for permissions but I am not sure if you will get it if the restrictions are that high.


    Please remember to mark the replies as answers if they help.,

    NEDIMMEHIC.ORG


    • Edited by Nedim Mehic Thursday, October 5, 2017 10:58 AM
    Thursday, October 5, 2017 10:57 AM
  • I can open cmd

    also...I am using my own laptop...which mean I am the ADMIN although there's a previous user of this laptop

    (because my old laptop broke, they just well..replaced it with someone elses)

    Thursday, October 5, 2017 11:05 AM
  • Using the group policy the powershell is blocked. Run the GPresult /H file.html command and fetch the report to confirm for your reference. You can try to rename the powershell.exe to different name and keep a try to access
    Thursday, October 5, 2017 11:16 AM
  • "They just replaced it", who's they?

    If this machine is on a school network or domain then you will most likely not be able to use these programs (CMD/ PowerShell).

    Thursday, October 5, 2017 11:18 AM
  • You can look at the GPO settings on your computer in the Command Line by opening a command prompt "as administrator" and typing:

    "gpresult /H c:\users\<username>\desktop\gpreport.html"

    This saves the file on your desktop.  Replace the username in the command line above with your user account that you use to log in to your computer. 

    The list will be broken down by policies applied to you as a user and to your computer.  Review the list to see how many GPO's are being applied and what their names are.  This is not a definitive answer as the administrator of your network may not have named the GPO descriptively, but will give you a place to start to see if your computer has, indeed, been locked down by your school's IT staff.

    If your command line does not open as administrator, you are locked down.  If your gpresult command does not work or only shows "User Settings" you are locked down.  At that point, the only "reasonable" thing to do would be to request access from your school's IT Department.


    • Edited by clenh20 Thursday, October 5, 2017 11:22 AM
    Thursday, October 5, 2017 11:18 AM
  • If this is a school provided laptop then it is likely that the school network has applied a software blocking policy.  Ask the Admin of the school network to exempt you laptop from the rule.  The rule is idiotic anyway.

    If you bought this in a store then take it back and have them fix it.  You can also just do a full reset and that will fix it.  Be sure to back up all of your files first.

    This is really not the correct forum for computer issues.  Your issues is not about a script but about how to get your computer to work the way you want it to work.


    \_(ツ)_/

    Thursday, October 5, 2017 11:21 AM
  • Using the group policy the powershell is blocked. Run the GPresult /H file.html command and fetch the report to confirm for your reference. You can try to rename the powershell.exe to different name and keep a try to access

    PowerShell is built into Win10 and cannot be removed or renamed.

    The error clearly indicates that a software policy has blocked PS.  Once applied it cannot be removed even by a local admin. There are tools that can remove GP settings if the PC is not joined to a domain.

    All of this is way beyond the scope of this forum.


    \_(ツ)_/

    Thursday, October 5, 2017 11:25 AM
  • oh right, forgot to mention I am using windows 8.1
    Thursday, October 5, 2017 11:32 AM
  • apparently I can open powershell ise but not powershell
    Thursday, October 5, 2017 11:38 AM
  • Using the group policy the powershell is blocked. Run the GPresult /H file.html command and fetch the report to confirm for your reference. You can try to rename the powershell.exe to different name and keep a try to access

    PowerShell is built into Win10 and cannot be removed or renamed.

    The error clearly indicates that a software policy has blocked PS.  Once applied it cannot be removed even by a local admin. There are tools that can remove GP settings if the PC is not joined to a domain.

    All of this is way beyond the scope of this forum.


    \_(ツ)_/

    well..that sucks
    Thursday, October 5, 2017 11:39 AM
  • oh right, forgot to mention I am using windows 8.1

    8.1 also has PS which cannot be uninstalled or removed.

    PS was delivered as part of Windows starting with Windows 7.


    \_(ツ)_/

    Thursday, October 5, 2017 11:57 AM
  • apparently I can open powershell ise but not powershell

    That means PowerShell is intact.  You need to do what I posted above and in that order.

    We cannot help you with this. This is not the correct forum for your issue.


    \_(ツ)_/

    Thursday, October 5, 2017 11:58 AM
  • never mind, I fixed it with the help of this web

    https://www.reich-consulting.net/2010/10/28/fix-error-this-operation-has-been-cancelled-due-to-restrictions-in-effect-on-this-computer/

    the first step ("fixing the registry")

    I guess hardworks and persistent is indeed very good thing
    • Edited by Flaze07 Thursday, October 5, 2017 12:22 PM
    • Marked as answer by Flaze07 Thursday, October 5, 2017 12:22 PM
    Thursday, October 5, 2017 12:21 PM
  • So you set that policy yourself.  The only way that can get set is if you set it.  The GP policy is in another key.

    This setting can be set via the Local GP editor - GPEdit.  You should review this to see what other changes you have set by accident.

    It is also possible that some AV scanner or user management software like Intune was used on your system.  If you continue to find issues you should perform a full reset.

    Suspect any machine used as a swap if it is not new.  Open box purchases are very often filled with malware.


    \_(ツ)_/

    Thursday, October 5, 2017 12:36 PM