From 4b5d9e309dd22935357cebfbaa654f89d8640d46 Mon Sep 17 00:00:00 2001 From: <> Date: Tue, 22 Oct 2024 13:59:40 +0000 Subject: [PATCH] Deployed 97d1516 with MkDocs version: 1.6.1 --- .nojekyll | 0 404.html | 960 +++ Edit-PSReadLineHistoryFile/index.html | 1175 +++ Edit-WingetSettingsFile/index.html | 1023 +++ Get-EnvironmentVariable/index.html | 1269 ++++ Get-LoadedAssembly/index.html | 1190 +++ Get-PowerShellPortable/index.html | 1215 +++ Get-TypeAccelerator/index.html | 1232 +++ .../index.html | 1349 ++++ Install-CommandNotFoundUtility/index.html | 1012 +++ Install-OhMyPosh/index.html | 1268 ++++ Install-PowerShellISE/index.html | 1179 +++ Install-WinGet/index.html | 1250 +++ New-Credential/index.html | 1169 +++ New-ScriptFromTemplate/index.html | 1407 ++++ Out-JsonFile/index.html | 1048 +++ PSPreworkout/index.html | 1031 +++ Set-ConsoleFont/index.html | 1193 +++ Set-EnvironmentVariable/index.html | 1234 +++ Show-LoadedAssembly/index.html | 1204 +++ Show-WithoutEmptyProperty/index.html | 1053 +++ Test-IsElevated/index.html | 1185 +++ Update-AllTheThings/index.html | 1319 ++++ assets/images/favicon.png | Bin 0 -> 1870 bytes assets/javascripts/bundle.83f73b43.min.js | 16 + assets/javascripts/bundle.83f73b43.min.js.map | 7 + assets/javascripts/lunr/min/lunr.ar.min.js | 1 + assets/javascripts/lunr/min/lunr.da.min.js | 18 + assets/javascripts/lunr/min/lunr.de.min.js | 18 + assets/javascripts/lunr/min/lunr.du.min.js | 18 + assets/javascripts/lunr/min/lunr.el.min.js | 1 + assets/javascripts/lunr/min/lunr.es.min.js | 18 + assets/javascripts/lunr/min/lunr.fi.min.js | 18 + assets/javascripts/lunr/min/lunr.fr.min.js | 18 + assets/javascripts/lunr/min/lunr.he.min.js | 1 + assets/javascripts/lunr/min/lunr.hi.min.js | 1 + assets/javascripts/lunr/min/lunr.hu.min.js | 18 + assets/javascripts/lunr/min/lunr.hy.min.js | 1 + assets/javascripts/lunr/min/lunr.it.min.js | 18 + assets/javascripts/lunr/min/lunr.ja.min.js | 1 + assets/javascripts/lunr/min/lunr.jp.min.js | 1 + assets/javascripts/lunr/min/lunr.kn.min.js | 1 + assets/javascripts/lunr/min/lunr.ko.min.js | 1 + assets/javascripts/lunr/min/lunr.multi.min.js | 1 + assets/javascripts/lunr/min/lunr.nl.min.js | 18 + assets/javascripts/lunr/min/lunr.no.min.js | 18 + assets/javascripts/lunr/min/lunr.pt.min.js | 18 + assets/javascripts/lunr/min/lunr.ro.min.js | 18 + assets/javascripts/lunr/min/lunr.ru.min.js | 18 + assets/javascripts/lunr/min/lunr.sa.min.js | 1 + .../lunr/min/lunr.stemmer.support.min.js | 1 + assets/javascripts/lunr/min/lunr.sv.min.js | 18 + assets/javascripts/lunr/min/lunr.ta.min.js | 1 + assets/javascripts/lunr/min/lunr.te.min.js | 1 + assets/javascripts/lunr/min/lunr.th.min.js | 1 + assets/javascripts/lunr/min/lunr.tr.min.js | 18 + assets/javascripts/lunr/min/lunr.vi.min.js | 1 + assets/javascripts/lunr/min/lunr.zh.min.js | 1 + assets/javascripts/lunr/tinyseg.js | 206 + assets/javascripts/lunr/wordcut.js | 6708 +++++++++++++++++ .../workers/search.6ce7567c.min.js | 42 + .../workers/search.6ce7567c.min.js.map | 7 + assets/stylesheets/main.0253249f.min.css | 1 + assets/stylesheets/main.0253249f.min.css.map | 1 + assets/stylesheets/palette.06af60db.min.css | 1 + .../stylesheets/palette.06af60db.min.css.map | 1 + index.html | 1162 +++ requirements.txt | 6 + search/search_index.json | 1 + sitemap.xml | 91 + sitemap.xml.gz | Bin 0 -> 469 bytes 71 files changed, 34502 insertions(+) create mode 100644 .nojekyll create mode 100644 404.html create mode 100644 Edit-PSReadLineHistoryFile/index.html create mode 100644 Edit-WingetSettingsFile/index.html create mode 100644 Get-EnvironmentVariable/index.html create mode 100644 Get-LoadedAssembly/index.html create mode 100644 Get-PowerShellPortable/index.html create mode 100644 Get-TypeAccelerator/index.html create mode 100644 Initialize-PSEnvironmentConfiguration/index.html create mode 100644 Install-CommandNotFoundUtility/index.html create mode 100644 Install-OhMyPosh/index.html create mode 100644 Install-PowerShellISE/index.html create mode 100644 Install-WinGet/index.html create mode 100644 New-Credential/index.html create mode 100644 New-ScriptFromTemplate/index.html create mode 100644 Out-JsonFile/index.html create mode 100644 PSPreworkout/index.html create mode 100644 Set-ConsoleFont/index.html create mode 100644 Set-EnvironmentVariable/index.html create mode 100644 Show-LoadedAssembly/index.html create mode 100644 Show-WithoutEmptyProperty/index.html create mode 100644 Test-IsElevated/index.html create mode 100644 Update-AllTheThings/index.html create mode 100644 assets/images/favicon.png create mode 100644 assets/javascripts/bundle.83f73b43.min.js create mode 100644 assets/javascripts/bundle.83f73b43.min.js.map create mode 100644 assets/javascripts/lunr/min/lunr.ar.min.js create mode 100644 assets/javascripts/lunr/min/lunr.da.min.js create mode 100644 assets/javascripts/lunr/min/lunr.de.min.js create mode 100644 assets/javascripts/lunr/min/lunr.du.min.js create mode 100644 assets/javascripts/lunr/min/lunr.el.min.js create mode 100644 assets/javascripts/lunr/min/lunr.es.min.js create mode 100644 assets/javascripts/lunr/min/lunr.fi.min.js create mode 100644 assets/javascripts/lunr/min/lunr.fr.min.js create mode 100644 assets/javascripts/lunr/min/lunr.he.min.js create mode 100644 assets/javascripts/lunr/min/lunr.hi.min.js create mode 100644 assets/javascripts/lunr/min/lunr.hu.min.js create mode 100644 assets/javascripts/lunr/min/lunr.hy.min.js create mode 100644 assets/javascripts/lunr/min/lunr.it.min.js create mode 100644 assets/javascripts/lunr/min/lunr.ja.min.js create mode 100644 assets/javascripts/lunr/min/lunr.jp.min.js create mode 100644 assets/javascripts/lunr/min/lunr.kn.min.js create mode 100644 assets/javascripts/lunr/min/lunr.ko.min.js create mode 100644 assets/javascripts/lunr/min/lunr.multi.min.js create mode 100644 assets/javascripts/lunr/min/lunr.nl.min.js create mode 100644 assets/javascripts/lunr/min/lunr.no.min.js create mode 100644 assets/javascripts/lunr/min/lunr.pt.min.js create mode 100644 assets/javascripts/lunr/min/lunr.ro.min.js create mode 100644 assets/javascripts/lunr/min/lunr.ru.min.js create mode 100644 assets/javascripts/lunr/min/lunr.sa.min.js create mode 100644 assets/javascripts/lunr/min/lunr.stemmer.support.min.js create mode 100644 assets/javascripts/lunr/min/lunr.sv.min.js create mode 100644 assets/javascripts/lunr/min/lunr.ta.min.js create mode 100644 assets/javascripts/lunr/min/lunr.te.min.js create mode 100644 assets/javascripts/lunr/min/lunr.th.min.js create mode 100644 assets/javascripts/lunr/min/lunr.tr.min.js create mode 100644 assets/javascripts/lunr/min/lunr.vi.min.js create mode 100644 assets/javascripts/lunr/min/lunr.zh.min.js create mode 100644 assets/javascripts/lunr/tinyseg.js create mode 100644 assets/javascripts/lunr/wordcut.js create mode 100644 assets/javascripts/workers/search.6ce7567c.min.js create mode 100644 assets/javascripts/workers/search.6ce7567c.min.js.map create mode 100644 assets/stylesheets/main.0253249f.min.css create mode 100644 assets/stylesheets/main.0253249f.min.css.map create mode 100644 assets/stylesheets/palette.06af60db.min.css create mode 100644 assets/stylesheets/palette.06af60db.min.css.map create mode 100644 index.html create mode 100644 requirements.txt create mode 100644 search/search_index.json create mode 100644 sitemap.xml create mode 100644 sitemap.xml.gz diff --git a/.nojekyll b/.nojekyll new file mode 100644 index 0000000..e69de29 diff --git a/404.html b/404.html new file mode 100644 index 0000000..dc1b80c --- /dev/null +++ b/404.html @@ -0,0 +1,960 @@ + + + +
+ + + + + + + + + + + + + + + + + + +Edit the PSReadLine History File
+Edit-PSReadLineHistoryFile [<CommonParameters>]
+
+Use this function to edit the PSReadLine history file. +This may be useful if you want to reset some of your autocomplete suggestions orremove commands that did not work.
+Edit-PSReadLineHistoryFile
+
+This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -Verbose, -WarningAction, -WarningVariable, and -ProgressAction. +For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
+Author: Sam Erde +Version: 0.0.1 +Modified: 2024-10-10
+Idea: History search with a TUI? +This may already be done by the PowerShell Run module.
+Edit the WinGet settings file.
+Edit-WingetSettingsFile [[-EditorPath] <FileInfo>] [<CommonParameters>]
+
+A shortcut to edit the WinGet settings file. +This will create one if it does not already exist.
+Edit-WinGetSettingsFile
+
+Specify the path to the editor that you would like to use.
+Type: FileInfo
+Parameter Sets: (All)
+Aliases:
+
+Required: False
+Position: 1
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+
+This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -Verbose, -WarningAction, -WarningVariable, and -ProgressAction. +For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
+Author: Sam Erde +Version: 0.0.2 +Modified: 2024/10/12
+Retrieves the value of an environment variable.
+Get-EnvironmentVariable [[-Name] <String>] [[-Target] <EnvironmentVariableTarget>] [-All]
+ [<CommonParameters>]
+
+The Get-EnvironmentVariable function retrieves the value of the specified environment variable +or displays all environment variables.
+Get-EnvironmentVariable -Name "PATH"
+Retrieves the value of the "PATH" environment variable.
+
+The name of the environment variable to retrieve.
+Type: String
+Parameter Sets: (All)
+Aliases:
+
+Required: False
+Position: 1
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+
+The target of the environment variable to retrieve. +Defaults to User. +(Process, User, or Machine)
+Type: EnvironmentVariableTarget
+Parameter Sets: (All)
+Aliases:
+Accepted values: Process, User, Machine
+
+Required: False
+Position: 2
+Default value: User
+Accept pipeline input: False
+Accept wildcard characters: False
+
+Switch to show environment variables in all target scopes.
+Type: SwitchParameter
+Parameter Sets: (All)
+Aliases:
+
+Required: False
+Position: Named
+Default value: False
+Accept pipeline input: False
+Accept wildcard characters: False
+
+This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -Verbose, -WarningAction, -WarningVariable, and -ProgressAction. +For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
+Author: Sam Erde +Version: 0.0.2 +Modified: 2024/10/12
+Variable names are case-sensitive on Linux and macOS, but not on Windows.
+Why is 'Target' used by .NET instead of the familiar 'Scope' parameter name? +@IISResetMe (Mathias R. +Jessen) explains: +"Scope" would imply some sort of integrated hierarchy of env variables - that's not really the case. +Target=Process translates to kernel32!GetEnvironmentVariable (which then in turn reads the PEB from +the calling process), whereas Target={User,Machine} causes a registry lookup against environment +data in either HKCU or HKLM.
+The relevant sources for the User and Machine targets are in the registry at: +- HKEY_CURRENT_USER\Environment +- HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment
+See more at \<https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_environment_variables>.
+Get all assemblies loaded in PowerShell.
+Get-LoadedAssembly [<CommonParameters>]
+
+Get all assemblies loaded in PowerShell.
+Get-LoadedAssembly
+
+Returns a list of all loaded assemblies.
+This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -Verbose, -WarningAction, -WarningVariable, and -ProgressAction. +For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
+To Do: Add -Name parameter to get a specific one.
+Author: Sam Erde +Version: 0.0.2 +Modified: 2024/10/12
+Download a portable version of PowerShell to run anywhere on demand.
+Get-PowerShellPortable [[-Path] <String>] [-Extract] [<CommonParameters>]
+
+This function helps you download a zipped version of PowerShell 7.x that can be run anywhere without needing to install it.
+Get-PowerShellPortable -Path $HOME -Extract
+
+Download the latest ZIP/TAR of PowerShell to your $HOME folder. +It will be extracted into a folder that matches the filename of the compressed archive.
+The path (directory) to download the PowerShell zip or tar.gz file into. +Do not include a filename for the download.
+Type: String
+Parameter Sets: (All)
+Aliases:
+
+Required: False
+Position: 1
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+
+Extract the downloaded file.
+Type: SwitchParameter
+Parameter Sets: (All)
+Aliases:
+
+Required: False
+Position: Named
+Default value: False
+Accept pipeline input: False
+Accept wildcard characters: False
+
+This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -Verbose, -WarningAction, -WarningVariable, and -ProgressAction. +For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
+Author: Sam Erde +Version: 0.1.0 +Modified: 2024/10/12
+Get available type accelerators.
+Get-TypeAccelerator [[-Name] <String>] [-GridView] [<CommonParameters>]
+
+Get available type accelerators. +These can be useful when trying to find or remember the different type accellerators that are available to use in PowerShell.
+Get-TypeAccelerator -Name ADSI
+
+The name of a specific type accelerator to get.
+Type: String
+Parameter Sets: (All)
+Aliases:
+
+Required: False
+Position: 1
+Default value: *
+Accept pipeline input: False
+Accept wildcard characters: True
+
+Show the output in a grid view.
+Type: SwitchParameter
+Parameter Sets: (All)
+Aliases:
+
+Required: False
+Position: Named
+Default value: False
+Accept pipeline input: False
+Accept wildcard characters: False
+
+This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -Verbose, -WarningAction, -WarningVariable, and -ProgressAction. +For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
+Author: Sam Erde +Version: 0.0.2 +Modified: 2024/10/12
+Thanks to Jeff Hicks (@JDHITSolutions) for helpful suggestions and improvements on this output!
+Initialize configuration your PowerShell environment and git.
+Initialize-PSEnvironmentConfiguration [[-Name] <String>] [[-Email] <String>] [[-CentralProfile] <String>]
+ [[-Font] <String>] [[-Packages] <String[]>] [-SkipPackages] [[-Modules] <String[]>] [-SkipModules]
+ [<CommonParameters>]
+
+Install supporting packages, configure git, and set your console font with this function.
+Initialize the PowerShell working environment with a custom font, and set my name and email address for Git commits.
+
+Initialize-PSEnvironmentConfiguration -Name 'Sam Erde' -Email 'sam@example.local' -ConsoleFont 'FiraCode Nerd Font'
+Your name to be used for git commits.
+Type: String
+Parameter Sets: (All)
+Aliases:
+
+Required: False
+Position: 1
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+
+Your email to be used for git commits.
+Type: String
+Parameter Sets: (All)
+Aliases:
+
+Required: False
+Position: 2
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+
+The file path to your central PowerShell profile.
+Type: String
+Parameter Sets: (All)
+Aliases:
+
+Required: False
+Position: 3
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+
+The font to use for your consoles (PowerShell, Windows PowerShell, git bash, etc.)
+Type: String
+Parameter Sets: (All)
+Aliases:
+
+Required: False
+Position: 4
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+
+Packages to install with winget.
+Type: String[]
+Parameter Sets: (All)
+Aliases:
+
+Required: False
+Position: 5
+Default value: @('Microsoft.WindowsTerminal', 'git.git', 'JanDeDobbeleer.OhMyPosh')
+Accept pipeline input: False
+Accept wildcard characters: False
+
+Option to skip installation of default packages.
+Type: SwitchParameter
+Parameter Sets: (All)
+Aliases:
+
+Required: False
+Position: Named
+Default value: False
+Accept pipeline input: False
+Accept wildcard characters: False
+
+PowerShell modules to install.
+Type: String[]
+Parameter Sets: (All)
+Aliases:
+
+Required: False
+Position: 6
+Default value: @('CompletionPredictor', 'Microsoft.PowerShell.ConsoleGuiTools', 'Microsoft.PowerShell.PSResourceGet', 'posh-git', 'PowerShellForGitHub', 'Terminal-Icons')
+Accept pipeline input: False
+Accept wildcard characters: False
+
+Option to skip installation of default modules.
+Type: SwitchParameter
+Parameter Sets: (All)
+Aliases:
+
+Required: False
+Position: Named
+Default value: False
+Accept pipeline input: False
+Accept wildcard characters: False
+
+This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -Verbose, -WarningAction, -WarningVariable, and -ProgressAction. +For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
+Author: Sam Erde +Version: 0.0.2 +Modified: 2024/10/12
+To Do + Add status/verbose output of changes being made + Create basic starter profile if none exist + Create dot-sourced profile + Create interactive picker for packages and modules (separate functions) + Bootstrap Out-GridView or Out-ConsoleGridView
+Install and setup the WinGetCommandNotFound utility from Microsoft PowerToys.
+Install-CommandNotFoundUtility [<CommonParameters>]
+
+This script installs the Microsoft.WinGet.CommandNotFound module and +enables the required experimental features in PowerShell 7.
+Install-CommandNotFoundUtility
+
+This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -Verbose, -WarningAction, -WarningVariable, and -ProgressAction. +For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
+Author: Sam Erde +Version: 0.0.1 +Modified: 2024-10-14
+May not work with PowerShell installed from MSIX or the Microsoft Store: \<https://github.com/microsoft/PowerToys/issues/30818>
+Install Oh My Posh and add it to your profile.
+Install-OhMyPosh [-WingetSource <String>] [-Method <String>] [-InstallNerdFont] [-Font <String>]
+ [<CommonParameters>]
+
+An over-engineered script to install Oh My Posh.
+Install-OhMyPosh
+
+Specify which source to install from.
+Type: String
+Parameter Sets: (All)
+Aliases:
+
+Required: False
+Position: Named
+Default value: Winget
+Accept pipeline input: False
+Accept wildcard characters: False
+
+Specify which tool to install Oh My Posh with.
+Type: String
+Parameter Sets: (All)
+Aliases:
+
+Required: False
+Position: Named
+Default value: Direct
+Accept pipeline input: False
+Accept wildcard characters: False
+
+Use this switch if you want to install a nerd font for full glyph capabilities in your prompt.
+Type: SwitchParameter
+Parameter Sets: (All)
+Aliases:
+
+Required: False
+Position: Named
+Default value: False
+Accept pipeline input: False
+Accept wildcard characters: False
+
+Choose a nerd font to install.
+Type: String
+Parameter Sets: (All)
+Aliases:
+
+Required: False
+Position: Named
+Default value: Default
+Accept pipeline input: False
+Accept wildcard characters: False
+
+This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -Verbose, -WarningAction, -WarningVariable, and -ProgressAction. +For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
+Install the Windows PowerShell ISE if you removed it after installing VS Code.
+Install-PowerShellISE [<CommonParameters>]
+
+This script installs the Windows PowerShell ISE if it is not already. +It includes a step that resets the Windows +Automatic Update server source in the registry temporary, which may resolve errors that some people experience +while trying to add Windows Capabilities. +This was created because Out-GridView in Windows PowerShell 5.1 does not +work without the ISE installed. +However, Out-GridView was rewritten and included in PowerShell 7 for Windows.
+Install-PowerShellISE
+
+This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -Verbose, -WarningAction, -WarningVariable, and -ProgressAction. +For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
+To Do: + - Check for Windows client vs Windows Server OS + - Add parameter to make the Windows Update registry change optional + - Requires admin but adding that breaks the build
+Install Winget (beta)
+Install-WinGet [[-DownloadPath] <String>] [-DownloadOnly] [-KeepDownload]
+ [<CommonParameters>]
+
+Install WinGet on Windows Sandbox (or on builds of Windows 10 prior to build 1709 that did not ship with it preinstalled).
+Install-WinGet
+
+Install-WinGet -KeepDownload
+
+Installs WinGet and keeps the downloaded AppX packages.
+Path of the directory to save the downloaded packages in (optional).
+Type: String
+Parameter Sets: (All)
+Aliases:
+
+Required: False
+Position: 1
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+
+Download the packages without installing them (optional).
+Type: SwitchParameter
+Parameter Sets: (All)
+Aliases:
+
+Required: False
+Position: Named
+Default value: False
+Accept pipeline input: False
+Accept wildcard characters: False
+
+Keep the downloaded packages (optional).
+Type: SwitchParameter
+Parameter Sets: (All)
+Aliases:
+
+Required: False
+Position: Named
+Default value: False
+Accept pipeline input: False
+Accept wildcard characters: False
+
+This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -Verbose, -WarningAction, -WarningVariable, and -ProgressAction. +For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
+To Do: +- Check for newer versions of packages on GitHub +- Error handling +- Create the target folder if it does not already exist
+Create a new secure credential.
+New-Credential [<CommonParameters>]
+
+Create a new secure credential to use in other functions.
+$Credential = New-Credential
+
+This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -Verbose, -WarningAction, -WarningVariable, and -ProgressAction. +For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
+Create a new advanced function from a template.
+New-ScriptFromTemplate [-Name] <String> [-Synopsis <String>] [-Description <String>] [-Alias <String>]
+ [-Author <String>] [-Path <String>] [-SkipValidation]
+ [<CommonParameters>]
+
+New-ScriptFromTemplate [-Verb] <String> [-Noun] <String> [-Synopsis <String>] [-Description <String>]
+ [-Alias <String>] [-Author <String>] [-Path <String>] [-SkipValidation]
+ [<CommonParameters>]
+
+This function creates a new function from a template and saves it to a file with the name of the function. +It takes values for the function's synopsis, description, and alias as parameters and populates comment- +based help for the new function automatically.
+New-ScriptFromTemplate -Name 'Get-Demo' -Synopsis 'Get a demo.' -Description 'This function gets a demo.' -Alias 'Get-Sample' -Parameter 'SerialNumber'
+
+New-ScriptFromTemplate -Verb Get -Noun Something -Author 'Sam Erde' -Parameter @('Name','Age')
+
+The name of the new function to create. +It is recommended to use ApprovedVerb-Noun for names.
+Type: String
+Parameter Sets: Named
+Aliases:
+
+Required: True
+Position: 1
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+
+The verb to use for the function name.
+Type: String
+Parameter Sets: VerbNoun
+Aliases:
+
+Required: True
+Position: 1
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+
+The noun to use for the function name.
+Type: String
+Parameter Sets: VerbNoun
+Aliases:
+
+Required: True
+Position: 2
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+
+A synopsis of the new function.
+Type: String
+Parameter Sets: (All)
+Aliases:
+
+Required: False
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+
+A description of the new function.
+Type: String
+Parameter Sets: (All)
+Aliases:
+
+Required: False
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+
+Optionally define an alias for the new function.
+Type: String
+Parameter Sets: (All)
+Aliases:
+
+Required: False
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+
+Name of the author of the script. +Attempts to default to the 'FullName' property of the currently logged in user.
+Type: String
+Parameter Sets: (All)
+Aliases:
+
+Required: False
+Position: Named
+Default value: (Get-CimInstance -ClassName Win32_UserAccount -Filter "Name = `'$([System.Security.Principal.WindowsIdentity]::GetCurrent().Name.Split('\')[1])`'").FullName
+Accept pipeline input: False
+Accept wildcard characters: False
+
+The path of the directory to save the new script in.
+Type: String
+Parameter Sets: (All)
+Aliases:
+
+Required: False
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+
+Optionally skip validation of the script name. +This will not check for use of approved verbs or restricted characters.
+Type: SwitchParameter
+Parameter Sets: (All)
+Aliases:
+
+Required: False
+Position: Named
+Default value: False
+Accept pipeline input: False
+Accept wildcard characters: False
+
+This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -Verbose, -WarningAction, -WarningVariable, and -ProgressAction. +For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
+Convert an object to JSON and write to a file.
+Out-JsonFile [-Object] <Object> [[-FilePath] <String>]
+ [<CommonParameters>]
+
+This function converts an object to JSON and writes the output to the specified file. +By default, it saves the +file with the name of the object that you provided to the function.
+Out-JsonFile -Object $TestObject -FilePath $HOME
+
+Writes $TestObject as JSON to "$HOME/TestObject.json".
+Out-JsonFile -Object $TestObject -FilePath C:\Temp\report.json
+
+Writes $TestObject as JSON to C:\Temp\report.json.
+Out-JsonFile -Object $TestObject
+
+Writes $TestObject as JSON to TestObject.json in the current working directory of the file system.
+Object to convert to JSON and save it to a file. +Check for empty objects here or in the function body? +[ValidateScript({ if (-not [string]::IsNullOrWhiteSpace($) -and -not [string]::IsNullOrEmpty($)) { $true } })]
+Type: Object
+Parameter Sets: (All)
+Aliases:
+
+Required: True
+Position: 1
+Default value: None
+Accept pipeline input: True (ByValue)
+Accept wildcard characters: False
+
+Full path and filename to save the JSON to.
+Type: String
+Parameter Sets: (All)
+Aliases:
+
+Required: False
+Position: 2
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+
+This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -Verbose, -WarningAction, -WarningVariable, and -ProgressAction. +For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
+Author: Sam Erde +Version: 0.2.0 +Modified: 2024/10/15
+A special mix of tools to help jump start your PowerShell session!
+Edit the PSReadLine History File
+Edit the WinGet settings file.
+Retrieves the value of an environment variable.
+Get all assemblies loaded in PowerShell.
+Download a portable version of PowerShell to run anywhere on demand.
+Get available type accelerators.
+Initialize configuration your PowerShell environment and git.
+Install and setup the WinGetCommandNotFound utility from Microsoft PowerToys.
+Install Oh My Posh and add it to your profile.
+Install the Windows PowerShell ISE if you removed it after installing VS Code.
+Install Winget (beta)
+Create a new secure credential.
+Create a new advanced function from a template.
+Convert an object to JSON and write to a file.
+Set the font for your consoles.
+Set environment variables.
+Show all assemblies loaded in PowerShell.
+Show an object without its empty properties.
+Check if you are running an elevated shell with administrator or root privileges.
+Update all the things!
+ + + + + + + + + + + + + + + + +Set the font for your consoles.
+Set-ConsoleFont [-Font] <String> [<CommonParameters>]
+
+Set-ConsoleFont allows you to set the font for all of your registered consoles (PowerShell, Windows PowerShell, +Windows Terminal, or Command Prompt). +It provides tab-autocomplete for the font parameter, listing all of the Nerd +Fonts and monospace fonts installed on your system.
+Set-ConsoleFont -Font 'FiraCode Nerd Font'
+
+The name of the font to set for your consoles.
+Type: String
+Parameter Sets: (All)
+Aliases:
+
+Required: True
+Position: 1
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+
+This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -Verbose, -WarningAction, -WarningVariable, and -ProgressAction. +For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
+Set environment variables.
+Set-EnvironmentVariable [-Name] <String> [-Value] <String> [-Target] <EnvironmentVariableTarget>
+ [<CommonParameters>]
+
+Set environment variables in any OS using .NET types.
+Set-EnvironmentVariable -Name 'FavoriteDrink' -Value 'Coffee' -Target 'User'
+
+Parameter description
+Type: String
+Parameter Sets: (All)
+Aliases:
+
+Required: True
+Position: 1
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+
+Parameter description
+Type: String
+Parameter Sets: (All)
+Aliases:
+
+Required: True
+Position: 2
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+
+Parameter description
+Type: EnvironmentVariableTarget
+Parameter Sets: (All)
+Aliases:
+Accepted values: Process, User, Machine
+
+Required: True
+Position: 3
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+
+This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -Verbose, -WarningAction, -WarningVariable, and -ProgressAction. +For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
+Show all assemblies loaded in PowerShell.
+Show-LoadedAssembly [-GridView] [<CommonParameters>]
+
+Show all assemblies loaded in PowerShell.
+Show-LoadedAssembly
+
+Shows a simple list of all loaded assemblies.
+Show-LoadedAssembly -GridView
+
+Shows a list of all loaded assemblies in a grid view.
+Show the results in a grid view.
+Type: SwitchParameter
+Parameter Sets: (All)
+Aliases:
+
+Required: False
+Position: Named
+Default value: False
+Accept pipeline input: False
+Accept wildcard characters: False
+
+This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -Verbose, -WarningAction, -WarningVariable, and -ProgressAction. +For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
+Show an object without its empty properties.
+Show-WithoutEmptyProperty [-Object] <Object> [<CommonParameters>]
+
+This function shows the properties of an object with all of its empty properties filtered out.
+Show-WithoutEmptyProperty -Object $Object
+
+$Desk = [PSCustomObject]@{
+ Model = 'PSDesk'
+ Height = $null
+ Width = $null
+ Colors = @('Black', 'Gray')
+ Adjustable = $true
+}
+$Object = New-Object -TypeName PSObject -Property $Desk
+Show-WithoutEmptyProperty -Object $Object
+
+This example creates an object from a hash table and then shows that object's properties that have values.
+Show-WithoutEmptyProperty -Object (Get-Item $HOME)
+
+This example gets the home folder object while invoking the function.
+$Object | Show-WithoutEmptyProperty
+
+This example shows how an object can be piped to the function.
+Get-ChildItem $HOME | Select-Object -First 1 | Show-WithoutEmptyProperty
+
+This example gets the home folder object and pipes it to the Show-WithoutEmptyProperty function.
+The object to show.
+Type: Object
+Parameter Sets: (All)
+Aliases:
+
+Required: True
+Position: 1
+Default value: None
+Accept pipeline input: True (ByValue)
+Accept wildcard characters: False
+
+This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -Verbose, -WarningAction, -WarningVariable, and -ProgressAction. +For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
+I am grateful to Jeffrey Hicks for guiding me towards an understanding of how to complete this function and for +providing even nicer code than I started with. +I encourage you to reach out to him for PowerShell training and +subscribe to his newsletter! +🙏
+https://jdhitsolutions.github.io/
+https://www.linkedin.com/in/jefferyhicks/
+https://twitter.com/JeffHicks
+
+Check if you are running an elevated shell with administrator or root privileges.
+Test-IsElevated [<CommonParameters>]
+
+Check if you are running an elevated shell with administrator or root privileges.
+Test-IsElevated
+
+This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -Verbose, -WarningAction, -WarningVariable, and -ProgressAction. +For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
+Update all the things!
+Update-AllTheThings [-SkipModules] [-SkipScripts] [-SkipHelp] [-SkipWinGet] [-IncludeChocolatey]
+ [-WhatIf] [-Confirm] [<CommonParameters>]
+
+A script to automatically update all PowerShell modules, PowerShell Help, and packages (apt, brew, chocolately, winget).
+Update-AllTheThings
+
+Updates all of the things it can!
+Skip the step that updates PowerShell modules.
+Type: SwitchParameter
+Parameter Sets: (All)
+Aliases:
+
+Required: False
+Position: Named
+Default value: False
+Accept pipeline input: False
+Accept wildcard characters: False
+
+Skip the step that updates PowerShell scripts.
+Type: SwitchParameter
+Parameter Sets: (All)
+Aliases:
+
+Required: False
+Position: Named
+Default value: False
+Accept pipeline input: False
+Accept wildcard characters: False
+
+Skip the step that updates PowerShell help.
+Type: SwitchParameter
+Parameter Sets: (All)
+Aliases:
+
+Required: False
+Position: Named
+Default value: False
+Accept pipeline input: False
+Accept wildcard characters: False
+
+Skip the step the updates WinGet packages.
+Type: SwitchParameter
+Parameter Sets: (All)
+Aliases:
+
+Required: False
+Position: Named
+Default value: False
+Accept pipeline input: False
+Accept wildcard characters: False
+
+Include Chocolatey package updates.
+Type: SwitchParameter
+Parameter Sets: (All)
+Aliases: Skip-Choco
+
+Required: False
+Position: Named
+Default value: False
+Accept pipeline input: False
+Accept wildcard characters: False
+
+Shows what would happen if the cmdlet runs. +The cmdlet is not run.
+Type: SwitchParameter
+Parameter Sets: (All)
+Aliases: wi
+
+Required: False
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+
+Prompts you for confirmation before running the cmdlet.
+Type: SwitchParameter
+Parameter Sets: (All)
+Aliases: cf
+
+Required: False
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+
+This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -Verbose, -WarningAction, -WarningVariable, and -ProgressAction. +For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
+