I hereby claim:
- I am daileng on github.
- I am dailen (https://keybase.io/dailen) on keybase.
- I have a public key ASDAlZR5Jr2Hdp3VUA4JoVvYXAS7ONDkRbxA1LRsB1FUDAo
To claim this, I am signing this object:
| function Get-NetExtender { | |
| <# | |
| .SYNOPSIS | |
| Gets SonicWall NetExtender metadata (version, URL, MD5) from the official API. | |
| .DESCRIPTION | |
| Calls SonicWall's Free Downloads API for NetExtender, filters by platform, | |
| and returns a tidy object. By default returns the latest; with -Version, | |
| returns the specified version (exact match by default, or prefix match with -AllowPrefixMatch). |
| $UserInfo = "" | |
| $UserInfo = $usersearchTextBox.Text | |
| $UserInfo = Get-ADUser $UserInfo -Properties Title, Department, Mail, telephoneNumber, EmployeeID, DistinguishedName, Manager, MemberOf, Description | |
| $ExtraGroup = Get-ADPrincipalGroupMembership $UserInfo | Select “gu_app_MorningPeople,gu_app_AfternoonPeople" | |
| $JobTitleRecord.Text = $UserInfo.Title | |
| $userdeptRecord.Text = $UserInfo.Department | |
| $userEmailRecord.Text = $UserInfo.Mail | |
| $userTelRecord.Text = $UserInfo.telephoneNumber |
| #Requires -Modules DynamicTitle | |
| $promptJob = Start-DTJobPromptCallback { | |
| if ($null -eq $script:terminalCatPromptFrame) { | |
| $script:terminalCatPromptFrame = 0 | |
| } | |
| $script:terminalCatPromptFrame++ | |
| $isInError = $false | |
| if ($Error[0]) { |
| <#PSScriptInfo | |
| .VERSION 1.0.1 | |
| .GUID d8d8b0bc-d1dd-4138-9166-dab64a38e8f6 | |
| .AUTHOR Robert Bleattler | |
| .COMPANYNAME Coast Technologies LLC |
| ## Converted from PowerShell Script using ChatGPT, test prior to usage | |
| import os | |
| import json | |
| # Get the user profile folder | |
| user_profile_folder = os.path.expanduser("~") | |
| # Set the directory path | |
| directory = os.path.join(user_profile_folder, ".wingetui") |
| $directory = "$ENV:USERPROFILE\.wingetui" | |
| # Get a list of text files in the directory (excluding files with extensions) | |
| $files = Get-ChildItem -Path $directory -File | Where-Object { $_.Name -notmatch '\.' } | |
| # Create an empty hashtable to store the key-value pairs | |
| $data = @{} | |
| # Iterate through each file and add its contents to the hashtable | |
| foreach ($file in $files) { |
| Copy-Item $env:AppData\SonicWall\Global VPN Client\Connections.rcf $env:AppData\SonicWall\Global VPN Client\Connections.old.rcf | |
| [xml]$xml1 = get-content "$env:AppData\SonicWall\Global VPN Client\Connections.rcf" -Encoding Unicode | |
| [xml]$xml2 = get-content "C:\temp\NewConnection.rcf" -Encoding Unicode | |
| $xml2Node = $xml1.ImportNode($xml2.SW_Client_Policy.Connections.Connection,$true) | |
| $xml1.SW_Client_Policy.Connections.AppendChild($xml2Node) | |
| $xml1.Save("$env:AppData\SonicWall\Global VPN Client\Connections.rcf") |
I hereby claim:
To claim this, I am signing this object: