Skip to content

Update desktop-choco-packages-2022-wf.yml #27

Update desktop-choco-packages-2022-wf.yml

Update desktop-choco-packages-2022-wf.yml #27

Workflow file for this run

name: "Chocolatey CI workflow"
on:
push:
branches: [ main ]
schedule:
- cron: '0 0 1 * *' ##execution of a task in the first minute of the month
jobs:
windows-2022-pwsh-choco:
name: "2022 chocolatey"
runs-on: windows-2022
steps:
- name: Checkout
uses: actions/checkout@v1
- name: "check if server is virtual"
run: Systeminfo | findstr /i model
- name: "check the PROCESSOR_ARCHITECTURE environment variable.64-bit systems will say AMD64 and 32-bit systems should say x86"
run: wmic OS get OSArchitecture
- name: "osfingerprinting"
run: systeminfo | more
- name: "display all processes, executable path"
run: wmic process list full
- name: "list of running services"
run: tasklist
- name: "list of all processes along with their corresponding PID, and services that are tied to them"
run: tasklist /svc
- name: "look for unusual services"
run: net start
- name: "query unusual services"
run: sc query
- name: "Install Chocolatey - pwsh script"
run: .\scripts\Install_chocolatey.ps1
shell: pwsh
- name: "Sysinternals File and Disk Utilities accesschk"
run: .\scripts\SysinternalsFileDiskUtilities-accesschk.ps1
shell: pwsh
- name: "Sysinternals File and Disk Utilities junction"
run: |
md Program-Files
junction c:\Program-Files "c:\Program Files"
# junction -s c:\
junction -d c:\Program-Files
shell: pwsh
windows-latest-pwsh-choco:
name: "2019 Datacenter chocolatey"
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v1
- name: "check if server is virtual"
run: Systeminfo | findstr /i model
- name: "check the PROCESSOR_ARCHITECTURE environment variable.64-bit systems will say AMD64 and 32-bit systems should say x86"
run: wmic OS get OSArchitecture
- name: "osfingerprinting"
run: systeminfo | more
- name: "display all processes, executable path"
run: wmic process list full
- name: "list of running services"
run: tasklist
- name: "list of all processes along with their corresponding PID, and services that are tied to them"
run: tasklist /svc
- name: "look for unusual services"
run: net start
- name: "query unusual services"
run: sc query
- name: "Choco packages - pwsh script"
run: .\scripts\Install_chocolatey.ps1
shell: pwsh
- name: "Sysinternals File and Disk Utilities accesschk"
run: .\scripts\SysinternalsFileDiskUtilities-accesschk.ps1
shell: pwsh
- name: "Sysinternals File and Disk Utilities junction"
run: |
md Program-Files
junction c:\Program-Files "c:\Program Files"
# junction -s c:\
junction -d c:\Program-Files
shell: pwsh
windows-2016-pwsh-choco:
name: "2016 Datacenter chocolatey"
runs-on: windows-2016
steps:
- name: Checkout
uses: actions/checkout@v1
- name: "check if server is virtual"
run: Systeminfo | findstr /i model
- name: "check the PROCESSOR_ARCHITECTURE environment variable.64-bit systems will say AMD64 and 32-bit systems should say x86"
run: wmic OS get OSArchitecture
- name: "osfingerprinting"
run: systeminfo | more
- name: "display all processes, executable path"
run: wmic process list full
- name: "list of running services"
run: tasklist
- name: "list of all processes along with their corresponding PID, and services that are tied to them"
run: tasklist /svc
- name: "look for unusual services"
run: net start
- name: "query unusual services"
run: sc query
- name: "Choco packages - pwsh script"
run: .\scripts\Install_chocolatey.ps1
shell: pwsh
- name: "Sysinternals File and Disk Utilities accesschk"
run: .\scripts\SysinternalsFileDiskUtilities-accesschk.ps1
shell: pwsh
- name: "Sysinternals File and Disk Utilities junction"
run: |
md Program-Files
junction c:\Program-Files "c:\Program Files"
# junction -s c:\
junction -d c:\Program-Files
shell: pwsh