Skip to content

Instantly share code, notes, and snippets.

View ryancbutler's full-sized avatar

Ryan Butler ryancbutler

View GitHub Profile
$download = Invoke-WebRequest -UseBasicParsing -Uri ("https://www.citrix.com/downloads/workspace-app/windows/workspace-app-for-windows-latest.html") -SessionVariable websession
$href = $download.Links|Where-Object {$_.rel -like "*CitrixWorkspaceApp.exe*"}
$DLurl = "https:" + $href.rel
Invoke-WebRequest -Uri ($DLurl) -WebSession $websession -UseBasicParsing -OutFile "C:\temp\CitrixWorkspaceApp.exe" -Verbose
$version = $download.RawContent | Select-String '(?<=.*<p>Version:&nbsp;).+?(?=<\/p>.*)' -AllMatches | ForEach-Object { $_.Matches.Value } | Select-Object -Unique
---
# Source: calico/templates/calico-config.yaml
# This ConfigMap is used to configure a self-hosted Calico installation.
kind: ConfigMap
apiVersion: v1
metadata:
name: calico-config
namespace: kube-system
data:
# Typha is disabled.
<Objs Version="1.1.0.1" xmlns="http://schemas.microsoft.com/powershell/2004/04">
<Obj RefId="0">
<TN RefId="0">
<T>System.Management.Automation.PSCustomObject</T>
<T>System.Object</T>
</TN>
<MS>
<S N="Path">HKLM:\SOFTWARE\Policies\Login Consultants\BISF</S>
<S N="Name">LIC_BISF_POL_CTXOE</S>
<I32 N="Value">1</I32>
@ryancbutler
ryancbutler / Update-Force-Test-.md
Created July 15, 2019 19:30
Update Force Test Report #powershell #chocolatey
@ryancbutler
ryancbutler / Update-Force-Test-.md
Created July 15, 2019 19:19
Update Force Test Report #powershell #chocolatey
@ryancbutler
ryancbutler / Update-AUPackages.md
Created July 15, 2019 18:29
Update-AUPackages Report #powershell #chocolatey
@ryancbutler
ryancbutler / Update-AUPackages.md
Last active April 20, 2025 12:01
Update-AUPackages Report #powershell #chocolatey
@ryancbutler
ryancbutler / Update-AUPackages.md
Created July 15, 2019 16:23
Update-AUPackages Report #powershell #chocolatey
@ryancbutler
ryancbutler / Update-AUPackages.md
Created July 15, 2019 16:10
Update-AUPackages Report #powershell #chocolatey
$aplip = "192.168.1.100"
$pass = "mysupersecretpassword"
$username = "administrator"
$SecurePassword = ConvertTo-SecureString $Pass -AsPlainText -Force
$Credential = New-Object System.Management.Automation.PSCredential ($Username, $SecurePassword)
$websession = Connect-alsession -aplip $aplip -Credential $Credential -Verbose
#Final Array
$final = @()