myProfile


Table of Contents


Microsoft.PowerShell_profile.ps1

There are several articles scattered around the internet that provide either a cursory overview of PowerShell profiles or a detailed explanation of their functionality. I have written one such article about PowerShell profiles which can be found here

Microsoft.PowerShell_profile

#--------------------
# Generic Profile Commands
Get-ChildItem C:\GitRepos\ProfileFunctions\ProfileFunctions\*.ps1 | ForEach-Object {. $_ }
oh-my-posh init pwsh --config C:\GitRepos\ProfileFunctions\BanterBoyOhMyPoshConfig.json | Invoke-Expression

# basic greeting function, contents to be added to current function
Write-Output "Type Get-ProfileFunctions to see the available functions"

#--------------------
# Configure PowerShell Console Window Size/Preferences
Set-ConsoleConfig -WindowHeight 45 -WindowWidth 180 | Out-Null

#--------------------
# PSDrives
New-PSDrive -Name GitRepos -PSProvider FileSystem -Root C:\GitRepos\ -Description "GitHub Repositories" | Out-Null
New-PSDrive -Name Sysint -PSProvider FileSystem -Root "$env:OneDrive\Software\SysinternalsSuite" -Description "Sysinternals Suite Software" | Out-Null

#--------------------
# Aliases
New-Alias -Name 'Notepad++' -Value 'C:\Program Files\Notepad++\notepad++.exe' -Description 'Launch Notepad++'

#--------------------
# Profile Starts here!
Write-Output ""
Show-IsAdminOrNot
Write-Output ""
New-Greeting


Office365

Office365 Function
Category Add-Office365Functions
  Stop-Outlook
  Get-OutlookAppointments

Back to Top


Connect

Connect Function
Category Connect-CmRcViewer
  Connect-InternalPRTG
  Connect-PSExec
  Connect-RDPSession

Back to Top


RDPfunctions

RDPfunctions Function
Category Get-RDPStatusCIM
  Enable-RDPRemotelyCIM
  Disable-RDPRemotelyCIM
  Get-RDPStatusWMI
  Enable-RDPRemotelyWMI
  Disable-RDPRemotelyWMI
  Get-RDPUserReport

Back to Top


PrintSpooler

PrintSpooler Function
Category Disable-PrintSpooler
  Enable-PrintSpooler
  Get-PrintSpooler

Back to Top


fileManagement

fileManagement Function
Category Find-Movies
  Show-PSDrive
  New-GitDrives
  New-PSDrives
  Get-LatestFiles
  New-DummyFile
  New-Shortcut
  Get-FileAndFolderPermissions
  Search-ForFiles
  Search-Scripts
  Select-FolderLocation

Back to Top


InternetIP

InternetIP Function
Category Test-OpenPorts
  Set-GoogleDynamicDNS
  Set-StaticIPAddress
  Test-SSLProtocols
  Get-CidrIPRange
  Get-ComputerIP
  Get-ServerIPInfo
  Send-MagicPacket
  Set-DHCPIPAddress
  Get-ipInfo
  Get-HostIOResults

Back to Top


ProfileSpecific

ProfileSpecific Function
Category Restart-myProfile
  Restart-PrintSpooler
  Restart-Profile
  Get-ProfileFunctions
  Microsoft.PowerShell_profile
  Microsoft.PowerShell_profile_Example

Back to Top


activeDirectory

activeDirectory Function
Category Get-AllDomainControllers
  Copy-GroupMembership
  Disable-InactiveComputer
  Get-FeaturesInventory
  Test-ADReplication
  Unlock-UserAccount

Back to Top


InternetSearch

InternetSearch Function
Category Get-GoogleDirections
  Get-GoogleSearch
  Get-DuckDuckGoSearch

Back to Top


miscellaneous

miscellaneous Function
Category Get-DownloadPercent
  Get-FriendlySize
  Get-LastBootTime
  Get-LastInstalledApplication
  Get-MyHistory
  Get-PatchTue
  Get-PayDay
  Get-ScriptFunctionNames
  Get-ServerTimeZone
  Get-ServiceDetails
  Get-SpeedTestServers
  Get-TargetGPResult
  Get-TempHumidData
  Get-Uptime
  Get-Weather
  Get-WmiADEvent
  Get-WMIHardwareOSInfo
  Get-WTFismyIP
  Import-CSVCustom
  Invoke-BatchArray
  Install-PSTools
  Test-Computer

Back to Top


shell

shell Function
Category New-AdminShell
  New-AdminTerminal
  New-Shell

Back to Top


BloggingFunctions

BloggingFunctions Function
Category New-JekyllBlogServer
  New-JekyllBlogPost
  New-JekyllBlogSession
  Start-JekyllBlogging
  Remove-JekyllBlogServer
  Show-JekyllBlogSite
  Get-GistIframe
  Get-DockerStatsSnapshot

Back to Top


shellConfig

shellConfig Function
Category New-Greeting
  New-DynamicParameter
  New-SpeedTest
  Save-PasswordFile
  Set-ServerTimeZone
  Set-DisplayIsAdmin
  Show-IsAdminOrNot
  Test-IsAdmin
  PadOrTruncate
  Set-ConsoleConfig
  Show-Notification
  Start-TaskList
  Stop-FailedService

Back to Top


transmission

transmission Function
Category Test-TransmissionSettings
  Set-TransmissionDefaultSettings

Back to Top