Skip to content

Instantly share code, notes, and snippets.

View ryancbutler's full-sized avatar

Ryan Butler ryancbutler

View GitHub Profile
@ryancbutler
ryancbutler / Update-AUPackages.md
Last active April 21, 2025 12:02
Update-AUPackages Report #powershell #chocolatey
@ryancbutler
ryancbutler / Update-AUPackages.md
Created July 15, 2019 18:29
Update-AUPackages Report #powershell #chocolatey
@ryancbutler
ryancbutler / Update-Force-Test-.md
Created July 15, 2019 19:19
Update Force Test Report #powershell #chocolatey
@ryancbutler
ryancbutler / Update-Force-Test-.md
Created July 15, 2019 19:30
Update Force Test Report #powershell #chocolatey
<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>
---
# 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.
$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
#Requires -Version 3.0
# Configure a Windows host for remote management with Ansible
# -----------------------------------------------------------
#
# This script checks the current WinRM (PS Remoting) configuration and makes
# the necessary changes to allow Ansible to connect, authenticate and
# execute PowerShell commands.
#
# All events are logged to the Windows EventLog, useful for unattended runs.
#!/usr/bin/bash
nscli -U 127.0.0.1:nsroot:nsroot enable ns feature responder
nscli -U 127.0.0.1:nsroot:nsroot add responder action respondwith403 respondwith '"\"HTTP/1.1 403 Forbidden\r\n\r\n\""'
nscli -U 127.0.0.1:nsroot:nsroot add responder policy ctx267027 '"HTTP.REQ.URL.DECODE_USING_TEXT_MODE.CONTAINS(\"/vpns/\") && (!CLIENT.SSLVPN.IS_SSLVPN || HTTP.REQ.URL.DECODE_USING_TEXT_MODE.CONTAINS(\"/../\"))"' respondwith403
nscli -U 127.0.0.1:nsroot:nsroot bind responder global ctx267027 1 END -type REQ_OVERRIDE
<?xml version="1.0" encoding="UTF-8"?>
<!--
AWS Instance Types
This configuration file describes the AWS instance types.
AWS instance types are documented by Amazon, but they are not available through the API, so XenDesktop services
are unable to discover them dynamically at run time. This configuration file stores the descriptions in such a way
that they can be ammended manually.