You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: DefaultPowershellCommands.md
+38-2
Original file line number
Diff line number
Diff line change
@@ -169,7 +169,8 @@ _This returns specific account permissions in an easy-to-read format._
169
169
170
170
-**3**:
171
171
172
-
This option is the default for a user. This option prompts the Consent Admin to enter his or her username and password (or that of another valid admin) when
172
+
This option is the default for a user. This option prompts the Consent Admin to enter his or her username and
173
+
password (or that of another valid admin) when
173
174
an operation requires elevation of privilege.
174
175
175
176
-**4**:
@@ -181,7 +182,8 @@ _This returns specific account permissions in an easy-to-read format._
181
182
182
183
-**5**:
183
184
184
-
This option is the default for an admin. It is used to prompt the administrator in Admin Approval Mode to select either "Permit"
185
+
This option is the default for an admin. It is used to prompt the administrator in Admin Approval Mode to select
186
+
either "Permit"
185
187
or "Deny" for an operation that requires elevation of privilege for any non-Windows binaries. If the Consent Admin
186
188
selects Permit, the operation will continue with the highest available privilege. This operation will happen on the
187
189
secure desktop.
@@ -191,3 +193,37 @@ _It is a good practice to set the consent behavior for an admin to 1._
191
193
## Add Windows Defender Exemption
192
194
193
195
> Add-MpPreference -ExclusionPath "C:\Users\your user here\AppData\Local\Temp\chocolatey\"
196
+
197
+
## Change Execution Policy for Process Scope
198
+
199
+
> Get-ExecutionPolicy -List
200
+
201
+
> Set-ExecutionPolicy Unrestricted -Scope Process
202
+
203
+
## Install Chocolatey
204
+
205
+
> Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol
0 commit comments