Skip to content

Commit 5691b24

Browse files
committed
New scripts added
1 parent 1de2a06 commit 5691b24

6 files changed

+17
-2
lines changed

INSTALL.md

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
```powershell
2+
$env:OPENSSL_CONF = "${env:ProgramFiles}\OpenSSL-Win64\bin\cnf\openssl.cnf"
3+
$env:OPENSSL_HOME = "${env:ProgramFiles}\OpenSSL-Win64"
4+
```
5+
16
`Set-PSRepository -Name 'PSGallery' -InstallationPolicy Trusted`
27

38
`Install-Module -Name PSLogging`

Miscellaneous/ControlNetworks.ps1

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Get-NetIPInterface -AddressFamily IPv6 | Format-Table
2+
Get-NetIPConfiguration -All
3+
Get-NetIPConfiguration | Get-NetIPAddress
4+
(Get-WmiObject -Class Win32_NetworkAdapterConfiguration).Where{ $_.IPAddress } | Format-List
5+
Get-NetAdapter

Miscellaneous/InstallChocolatey.ps1

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))

Miscellaneous/InstallGoogleChrome.ps1

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
$LocalTempDir = $env:TEMP; $ChromeInstaller = "ChromeInstaller.exe"; (New-Object System.Net.WebClient).DownloadFile('https://dl.google.com/chrome/install/375.126/chrome_installer.exe', "$LocalTempDir\$ChromeInstaller"); & "$LocalTempDir\$ChromeInstaller" /silent /install; $Process2Monitor = "ChromeInstaller"; Do { $ProcessesFound = Get-Process | ?{$Process2Monitor -contains $_.Name} | Select-Object -ExpandProperty Name; If ($ProcessesFound) { "Still running: $($ProcessesFound -join ', ')" | Write-Host; Start-Sleep -Seconds 2 } else { rm "$LocalTempDir\$ChromeInstaller" -ErrorAction SilentlyContinue -Verbose } } Until (!$ProcessesFound)

Miscellaneous/PowerShell-QuickStart.ps1

+4-1
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,7 @@ Get-CimInstance -ClassName Win32_Service | Select-Object -Property Status,Name,D
1616

1717
Get-Process | Where-Object -FilterScript {$_.Responding -eq $false} | Stop-Process
1818
Get-Process -Name BadApp | Where-Object -FilterScript {$_.SessionId -neq 0} | Stop-Process
19-
Invoke-Command -ComputerName Server01 {Stop-Process Powershell}
19+
Invoke-Command -ComputerName Server01 {Stop-Process Powershell}
20+
21+
Start-Process PowerShell -Verb RunAs
22+
powershell -Command "Start-Process PowerShell -Verb RunAs"

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
# MicrosoftWindows10
1+
# MicrosoftWindows10

0 commit comments

Comments
 (0)