# DevOps

# PowerShell

### Save Credentials to File

NOTE: this should only be done on Windows

```
# prompt for creds
$creds = Get-Credential

# dump to file
$creds | Export-Clixml -Path C:\<somewhere>\<name-for-creds>.xml

# load from file
$creds = Import-Clixml -Path C:\<somewhere>\<name-for-creds>.xml
```

### Initiate a Remote PowerShell Session

```powershell
$Cred = Get-Credential
Enter-PSSession -ComputerName dc01 -Credential $Cred
```

### Kill a Process from a Remote Session

```powershell
# find the offending process PID
Get-Process

# kill it
taskkill /F /PID <PID>
```

# CI/CD

## Continuous Integration

- [Jenkins](https://www.jenkins.io/)

## Continuous Delivery

## Artifact Storage

- [Nexus](https://www.sonatype.com/products/sonatype-nexus-oss-download)