Skip to content

Instantly share code, notes, and snippets.

@ryanmaclean
Last active September 2, 2022 06:50
Show Gist options
  • Save ryanmaclean/aa2f69a3b3fd94044fb5272664273139 to your computer and use it in GitHub Desktop.
Save ryanmaclean/aa2f69a3b3fd94044fb5272664273139 to your computer and use it in GitHub Desktop.
Getting Things Done on Windows

Open a Powershell Admin shell by pressing Winkey+R, type “powershell” and hit ctrl+shift+enter to run as admin.

Run the follwing to install Chocolatey:

Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))

Then install some packages you'll want, using -y to confirm:

choco install -y google-chrome-x64 vscode conemu git github-desktp curl far powershell-core

Visual Studio Community Edition 2022 Preview:

choco install -y visualstudio2022community-preview --pre 

Install Datadog Windows Agent (note that this is set to us3 for Azure+DD, remove the SITE argument for us1, or specify us5

Chocolatey:

choco install -y -ia="APIKEY=""YOUR_DATADOG_API_KEY"" SITE="us3.datadoghq.com" TAGS="env:dev" DD_ENV=dev LOGS_ENABLED=true CMD_PORT=6001 PROCESS_ENABLED=true ADDLOCAL=""MainApplication,NPM""" datadog-agent

Powershell:

$ProgressPreference = 'SilentlyContinue'
wget "https://s3.amazonaws.com/ddagent-windows-stable/datadog-agent-7-latest.amd64.msi" -usebasicparsing -outfile .\ddagent.msi 
Start-Process -Wait msiexec -ArgumentList '/qn /i ddagent.msi APIKEY="" SITE="us3.datadoghq.com" TAGS="env:dev" DD_ENV=dev LOGS_ENABLED=true CMD_PORT=6001 PROCESS_ENABLED=true ADDLOCAL="MainApplication,NPM" REBOOT=ReallySuppress'
$ProgressPreference = 'Continue'


Update Datadog log config:

cd c:/programdata/datadog/conf.d/win32_event_log.d
wget "https://gist.githubusercontent.com/ryanmaclean/2ad2ab95328da65c10610fbee9f09866/raw/c368dcee17915e43de2cb0a6ff6d28659f6d322f/conf.yaml" -usebasicparsing
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment