Math Is Fun Forum
  Discussion about math, puzzles, games and fun.   Useful symbols: √ ∞ ≠ ≤ ≥ ≈ ⇒ ∈ Δ θ ∴ ∑ ∫ π -

Login

Username

Password

Not registered yet?

Post a reply

Go back

Write your message and submit
:) :| :( :D :o ;) :/ :P :lol: :mad: :rolleyes: :cool: | :dizzy :eek :kiss :roflol :rolleyes :shame :down :up :touched :sleep :wave :swear :tongue :what :faint :dunno
Options

Go back

Topic review (newest first)

n872yt3r
2013-03-02 23:37:31

Okay, so I tried

Code:

Get-Help Set-Executionpolicy

and it returned the following information:

Code:

NAME
    Set-ExecutionPolicy

SYNOPSIS
    Changes the user preference for the Windows PowerShell execution policy.


SYNTAX
    Set-ExecutionPolicy [-ExecutionPolicy] {Unrestricted | RemoteSigned | AllSigned | Restricted | Default | Bypass | Undefined} [[-Scope] {Process | CurrentUs
    er | LocalMachine | UserPolicy | MachinePolicy}] [-Force] [-Confirm] [-WhatIf] [<CommonParameters>]


DESCRIPTION
    The Set-ExecutionPolicy changes the user preference for the Windows PowerShell execution policy.

    To run this command on Windows Vista, Windows Server 2008, and later versions of Windows, you must start Windows PowerShell with the "Run as administrator"
     option, even if you are a member of the Administrators group on the computer.

    The execution policy is part of the security strategy of Windows PowerShell. It determines whether you can load configuration files (including your Windows
     PowerShell profile) and run scripts, and it determines which scripts, if any, must be digitally signed before they will run.

    For more information, see about_Execution_Policies.


RELATED LINKS
    Online version: http://go.microsoft.com/fwlink/?LinkID=113394
    Get-ExecutionPolicy
    Set-AuthenticodeSignature
    Get-AuthenticodeSignature
    about_Execution_Policies
    about_Signing

REMARKS
    To see the examples, type: "get-help Set-ExecutionPolicy -examples".
    For more information, type: "get-help Set-ExecutionPolicy -detailed".
    For technical information, type: "get-help Set-ExecutionPolicy -full".

So I knew for sure you had to set yourself as administrator, but of course

n872yt3r wrote:

And I can't get into setting myself as the administrator. Help!

So I tried the following code,

Code:

Get-Help Get-Executionpolicy

and it returned:

Code:

NAME
    Get-ExecutionPolicy

SYNOPSIS
    Gets the execution policies for the current session.


SYNTAX
    Get-ExecutionPolicy [[-Scope] {Process | CurrentUser | LocalMachine | UserPolicy | MachinePolicy}] [-List] [<CommonParameters>]


DESCRIPTION
    The Get-ExecutionPolicy cmdlet gets the execution policies for the current session.

    The execution policy is determined by execution policies that you set by using Set-ExecutionPolicy and the Group Policy settings for the Windows PowerShell
     execution policy. The default value is "Restricted."

    Without parameters, Get-ExecutionPolicy gets the execution policy that is effective in the session. You can use the List parameter to get all execution pol
    icies that affect the session or the Scope parameter to get the execution policy for a particular scope.

    For more information, see about_Execution_Policies.


RELATED LINKS
    Online version: http://go.microsoft.com/fwlink/?LinkID=113315
    Set-ExecutionPolicy
    Get-AuthenticodeSignature
    Set-AuthenticodeSignature
    about_Execution_Policies
    about_Signing

REMARKS
    To see the examples, type: "get-help Get-ExecutionPolicy -examples".
    For more information, type: "get-help Get-ExecutionPolicy -detailed".
    For technical information, type: "get-help Get-ExecutionPolicy -full".

And that didn't contain any useful information.

n872yt3r
2013-03-02 23:27:40

I've just started PowerShell.
I've been testing out all my programs, but they didn't work.
We knew it must be the function

Code:

Set-Executionpolicy

so before we pasted one of my scripts from ISE,
we put

Code:

Set-Executionpolicy Unrestricted
Get-Executionpolicy

and it returned

Code:

Restricted

And I can't get into setting myself as the administrator.
Help!

Board footer

Powered by FluxBB