Skip to content

Commit bac1f27

Browse files
committed
2 parents d24fcdd + d8277a1 commit bac1f27

4 files changed

+11
-2
lines changed

Initialize-Machine.ps1

+3-1
Original file line numberDiff line numberDiff line change
@@ -293,14 +293,16 @@ Begin
293293
Set-ItemProperty 'HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Sensor\Overrides\{BFA794E4-F964-4FDB-90F6-51056BFE4B44}' -Name 'SensorPermissionState' -Type DWord -Value 0
294294
Set-ItemProperty 'HKLM:\SYSTEM\CurrentControlSet\Services\lfsvc\Service\Configuration' -Name 'Status' -Type DWord -Value 0
295295

296-
# DisableFeedback
296+
# DisableFeedback and ComptTelRunner.exe
297297
Write-Verbose 'disabling feedback'
298298
$0 = 'HKCU:\SOFTWARE\Microsoft\Siuf\Rules'
299299
If (!(Test-Path $0)) { New-Item -Path $0 -Force | Out-Null }
300300
Set-ItemProperty $0 -Name 'NumberOfSIUFInPeriod' -Type DWord -Value 0
301301
Set-ItemProperty 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\DataCollection' -Name 'DoNotShowFeedbackNotifications' -Type DWord -Value 1
302+
Set-ItemProperty 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\DataCollection' -Name 'Allow Telemetry' -Type DWord -Value 0
302303
Disable-ScheduledTask -TaskName 'Microsoft\Windows\Feedback\Siuf\DmClient' -ErrorAction SilentlyContinue | Out-Null
303304
Disable-ScheduledTask -TaskName 'Microsoft\Windows\Feedback\Siuf\DmClientOnScenarioDownload' -ErrorAction SilentlyContinue | Out-Null
305+
Disable-ScheduledTask -TaskName 'Microsoft\Windows\Application Experience\Microsoft Compatibility Appraiser' -ErrorAction SilentlyContinue | Out-Null
304306

305307
# DisableTailoredExperiences
306308
Write-Verbose 'disabling tailored experiences'

Install-Programs.ps1

+1
Original file line numberDiff line numberDiff line change
@@ -527,6 +527,7 @@ Begin
527527
{
528528
[CmdletBinding(HelpURI = 'manualcmd')] param()
529529
Chocolatize '7zip'
530+
Chocolatize 'curl'
530531
Chocolatize 'git'
531532
Chocolatize 'googlechrome'
532533
Chocolatize 'greenshot'

Microsoft.PowerShell_profile.ps1

+6-1
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ New-Alias cc Show-ColorizedContent
2929
. $PSScriptRoot\Modules\Scripts\Set-OutDefaultOverride.ps1
3030
Set-Alias ls Get-ChildItemColorized -Force -Option AllScope
3131

32+
# curl.exe is installed as a choco package to \system32
33+
# so need to remove Invoke-WebRequest alis
34+
Remove-Item alias:curl
35+
3236
function Start-Wilma { & 'C:\Program Files\Tools\WiLMa\WinLayoutManager.exe' }
3337
New-Alias wilma Start-Wilma
3438

@@ -59,7 +63,8 @@ if (Test-Path($ChocolateyProfile)) {
5963
$cmd = (gwmi win32_process -filter ("ProcessID={0}" -f (gwmi win32_process -filter "ProcessID=$PID").ParentProcessID)).CommandLine
6064
if ($cmd -notmatch 'cmd\.exe')
6165
{
62-
if (Test-Path 'C:\Code') { Set-Location 'C:\Code'; }
66+
if (Test-Path 'C:\Github') { Set-Location 'C:\Github'; }
67+
elseif (Test-Path 'C:\Code') { Set-Location 'C:\Code'; }
6368
elseif (Test-Path 'D:\Code') { Set-Location 'D:\Code'; }
6469
elseif (Test-Path 'C:\River') { Set-Location 'C:\River'; }
6570
else { Set-Location '\'; }

readme.md

+1
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,7 @@ Default applications:
285285
* Angular (_specific version_)
286286
* AWSCli
287287
* BareTail Free (_installed to C:\tools_) [from S3]
288+
* Curl
288289
* Docker Desktop
289290
* Git
290291
* Google Chrome

0 commit comments

Comments
 (0)