-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Convert dynamic CMD script into static script #14607
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
Conversation
CodSpeed Performance ReportMerging #14607 will not alter performanceComparing Summary
|
d35c0f8
to
f198224
Compare
55c3597
to
0f7f076
Compare
0c5aad8
to
110ccbe
Compare
Does this change impact |
Since this change modifies existing scripts and CMD relies on the |
How do I test this? |
@jezdez added testing instructions above |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, @kenodegard, for the steps to test. Confirmed that this did the trick and I feel confident this takes the conda activation out of the way of AppLocker
Description
Stop using dynamic
.bat
scripts for activation & deactivation in Windows CMD.EXE and instead introduce a static script that accepts an INI-style environment file.Resolves #13610
Depends on #14619
To test this locally on Windows:
Enable Application Identity Service
Services
Application Identity
and selectProperties
Startup type
toAutomatic
Enable AppLocker
Local Security Policy
Security Settings
>Application Control Policies
>AppLocker
Configure rule enforcement
underConfigure Rule Enforcement
, this will open a new windowScript rules
and set toEnforce rules
Local Security Policy
window navigate toScript Rules
Create Default Rules
devenv
locationa. Right click and select
Create New Rule...
b. Permissions: Allow, Everyone
c. Conditions: Path
d. Path: Fill in path to
devenv
e. Exceptions: None
%TEMP%
locationTest with
main
to see AppLocker in effectmain
.\dev\start.bat
conda activate
Test with
cmd-static-script
cmd-static-script
.\dev\start.bat
conda activate
Tip
You can easily toggle AppLocker on/off via the
Configure Rule Enforcement
without needing to restart your machine.Checklist - did you ...
news
directory (using the template) for the next release's release notes?Add / update outdated documentation?