I hereby claim:
- I am ryancbutler on github.
- I am ryancbutler (https://keybase.io/ryancbutler) on keybase.
- I have a public key whose fingerprint is 63AA 4FEC 6155 9E4E 9B94 47EB 1058 8308 10A0 87E8
To claim this, I am signing this object:
$module = "C:\Temp\Citrix.GroupPolicy.Commands.psm1" | |
#Import-Module $module -force | |
New-PSDrive -Name LocalFarmGpo -PSProvider CitrixGroupPolicy -root \ -controller "localhost" | |
New-PSDrive -Name ADGpo -PSProvider CitrixGroupPolicy -root \ -domain "CITRIX - TEST GPO 0" | |
Export-CtxGroupPolicy -FolderPath "C:\temp\exported" -DriveName "LocalFarmGpo" | |
Import-CtxGroupPolicy -FolderPath "C:\temp\exported" -DriveName "ADGpo" | |
$filters = Import-Clixml "C:\temp\exported\GroupPolicyFilter.xml" |
$Public = @( Get-ChildItem -Path $PSScriptRoot\Public\*.ps1 -ErrorAction SilentlyContinue ) | |
$Private = @( Get-ChildItem -Path $PSScriptRoot\Private\*.ps1 -ErrorAction SilentlyContinue ) | |
#Dot source the files | |
Foreach($import in @($Public + $Private)) | |
{ | |
Try | |
{ | |
. $import.fullname | |
} |
<# | |
.SYNOPSIS | |
Outputs to a UTF-8-encoded file *without a BOM* (byte-order mark). | |
.DESCRIPTION | |
Mimics the most important aspects of Out-File: | |
* Input objects are sent to Out-String first. | |
* -Append allows you to append to an existing file, -NoClobber prevents | |
overwriting of an existing file. | |
* -Width allows you to specify the line width for the text representations |
#Converts Citrix Policy to easily readable PS object | |
function Get-CTXPolObj ($pol) | |
{ | |
$temp = @() | |
foreach ($settings in $pol) | |
{ | |
foreach($setting in $settings.psobject.properties) | |
{ | |
$Object = New-Object PSObject |
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls | |
[System.Net.ServicePointManager]::ServerCertificateValidationCallback = {$true} | |
$username = "nsroot" | |
$password = "nsroot" | |
$nsip = "https://192.168.1.50" | |
$body = ConvertTo-JSON @{ | |
"login"=@{ | |
"username"="$username"; |
I hereby claim:
To claim this, I am signing this object:
#!/bin/sh | |
# | |
# Wrapper script for the letsencrypt client to generate a server certificate in | |
# manual mode. It uses openssl to generate the key and should not modify the | |
# server configuration. It can be called off-side, i.e. not on the destination | |
# server. | |
# | |
# usage: gencert DOMAIN [DOMAIN...] | |
# | |
# This is free and unencumbered software released into the public domain. |