Skip to content

Removes unnecessary description about the RunAsAdministrator parameter #2057

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 16, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 0 additions & 13 deletions reference/3.0/Microsoft.PowerShell.Core/About/about_Requires.md
Original file line number Diff line number Diff line change
@@ -98,19 +98,6 @@ For example,
#Requires -ShellId MyLocalShell
```

-RunAsAdministrator

When this switch parameter is added to your requires statement, it specifies
that the Windows PowerShell session in which you are running the script must
be started with elevated user rights (Run as Administrator). This switch was
introduced in PowerShell 4.

For example,

```powershell
#Requires -RunAsAdministrator
```

### EXAMPLES

The following script has two \#Requires statements. If the requirements
Original file line number Diff line number Diff line change
@@ -102,8 +102,7 @@ For example,

When this switch parameter is added to your requires statement, it specifies
that the Windows PowerShell session in which you are running the script must
be started with elevated user rights (Run as Administrator). This switch was
introduced in PowerShell 4.
be started with elevated user rights (Run as Administrator).

For example,

Original file line number Diff line number Diff line change
@@ -102,8 +102,7 @@ For example,

When this switch parameter is added to your requires statement, it specifies
that the Windows PowerShell session in which you are running the script must
be started with elevated user rights (Run as Administrator). This switch was
introduced in PowerShell 4.
be started with elevated user rights (Run as Administrator).

For example,

Original file line number Diff line number Diff line change
@@ -102,8 +102,7 @@ For example,

When this switch parameter is added to your requires statement, it specifies
that the Windows PowerShell session in which you are running the script must
be started with elevated user rights (Run as Administrator). This switch was
introduced in PowerShell 4.
be started with elevated user rights (Run as Administrator).

For example,

Original file line number Diff line number Diff line change
@@ -102,8 +102,7 @@ For example,

When this switch parameter is added to your requires statement, it specifies
that the Windows PowerShell session in which you are running the script must
be started with elevated user rights (Run as Administrator). This switch was
introduced in PowerShell 4.
be started with elevated user rights (Run as Administrator).

For example,