This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ScriptBlock] $bootstrap = { | |
[string] $localhost = [Environment]::MachineName; | |
[string] $controller = Get-BBGuestSiteComputerNames -BBResourceType 'CitrixXenAppDeliveryController' | Select-Object -First 1; | |
Copy-BBGuestGen7DatabaseRegistryEntries -DestinationComputerName $localhost -SourceComputerName ( | |
Get-BBGuestSiteComputerNames -BBResourceType 'CitrixXenAppDeliveryAgent' -Application 'Queue' | |
); | |
Add-BBGuestCitrixVDAtoMachineCatalog -ComputerName $localhost -SiteController $controller -CitrixMachineCatalogName ( | |
Get-BBGuestCitrixMachineCatalogName -DeliveryControllerInstance 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rem run to bypass windows upgrades without TPM | |
reg delete "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\vdsldr.exe" /f | |
:: ONLY IF ABOVE ERRORS | |
rem run if the previous cmd does not fix the error | |
wmic /namespace:"\\root\subscription" path __EventFilter where Name="Skip TPM Check on Dynamic Update" delete |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<wsdl:definitions | |
targetNamespace="http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd" | |
xmlns:cfg="http://schemas.microsoft.com/wbem/wsman/1/config" | |
xmlns:wsmanfault="http://schemas.microsoft.com/wbem/wsman/1/wsmanfault" | |
xmlns:wsman="http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd" | |
xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" | |
xmlns:wst="http://schemas.xmlsoap.org/ws/2004/09/transfer" | |
xmlns:wse="http://schemas.xmlsoap.org/ws/2004/08/eventing" | |
xmlns:wsen="http://schemas.xmlsoap.org/ws/2004/09/enumeration" | |
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Get-ChildItem -Path './src' -Filter '*.ps1' -File -Recurse | ForEach-Object { | |
$functions = (Get-Command $_.FullName).ScriptBlock.Ast.FindAll( { $args[0] -is [System.Management.Automation.Language.FunctionDefinitionAst] }, $false); | |
foreach ($func in $functions) { | |
[ScriptBlock] $code = [ScriptBlock]::Create("function tmp-$($func.Name) $($func.Body)"); | |
New-Module -Name 'tmp-mod' -ScriptBlock $code | Out-Null; | |
[PSCustomObject] @{ | |
File = $_.Name; | |
Function = $func.Name; | |
Attributes = (Get-Command -Name "tmp-$($func.Name)").ScriptBlock.Attributes | % { ${PSItem}?.TypeId?.Name } | |
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Code: | |
init: | |
#NoEnv | |
#SingleInstance, Force | |
#Persistent | |
#InstallKeybdHook | |
#UseHook | |
#KeyHistory, 0 | |
#HotKeyInterval 1 | |
#MaxHotkeysPerInterval 127 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Get-CimInstance -ComputerName $ComputerName -Namespace 'root/cimv2' -QueryDialect 'WQL' -Query "associators of {Win32_Group.Domain='$($ComputerName)',Name='Administrators'} where Role=GroupComponent"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env pwsh | |
#Requires -Version 7 | |
param([string] $path); | |
Push-Location -Path $path; | |
function order([string] $Path) { | |
[Collections.Stack] $stack = [Collections.Stack]::new(); | |
foreach ($file in (Get-ChildItem -Path $Path -Filter '*.txt')) { | |
[void] $stack.Push($file.Name); | |
$file | Get-Content | ForEach-Object { | |
[string]::IsNullOrEmpty($_) ? (&{return}) : (order($_)); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env pwsh | |
using namespace System; | |
[CmdletBinding()] | |
param( | |
[string] $ModuleName = $env:MODULE_NAME, | |
[string[]] $RequiredModules = $env:REQUIRED_MODULES, | |
[string] $BuildVersion = $env:BUILD_VERSION | |
); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env pwsh | |
#Requires -Version 5.0 | |
#Requires -Module Pester, Microsoft.PowerShell.Management, Microsoft.PowerShell.Utility | |
using namespace System; | |
using namespace System.IO; | |
[CmdletBinding()] | |
param( |
This file has been truncated, but you can view the full file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = function(modules) { | |
var installedModules = {}; | |
function __webpack_require__(moduleId) { | |
if (installedModules[moduleId]) return installedModules[moduleId].exports; | |
var module = installedModules[moduleId] = { | |
i: moduleId, | |
l: !1, | |
exports: {} |
NewerOlder