Icon  Name                    Last modified      Size  Description
[PARENTDIR] Parent Directory - [DIR] PSBits/ 2023-10-07 11:39 - [DIR] ScriptingGuys/ 2021-07-30 20:54 - [DIR] comment/ 2021-12-05 22:00 - [DIR] community/ 2021-07-30 20:55 - [DIR] objects/ 2023-12-21 18:00 - [TXT] ConsoleHost_history.txt 2024-12-25 19:32 646
https://devblogs.microsoft.com/powershell-community/how-to-make-use-of-powershell-profile-files/

notepad $PROFILE

e.g.

Set-PSReadlineOption -EditMode Emacs
Set-PSReadLineKeyHandler -Key 'Ctrl+d' -Function DeleteCharOrExit
Set-PSReadlineKeyHandler -Key 'ctrl+l' -Function ClearScreen

Profile script reading is disabled by default, see and change

Get-ExecutionPolicy
Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy Unrestricted
Get-ExecutionPolicy


Get started list running processes, choose some, sort unique Get-Process | ForEach-Object {$_.Path} | Select-String -Pattern Adobe | Sort-Object -Unique ping every 30 minutes until connection fails! While ( Test-Connection your.server.INVALID -Count 1 -Quiet ) { Get-Date -Uformat '%Y-%m-%dT%T' >> Log.txt ; Start-Sleep -Seconds 900 } deep dive to environment install, any OS, see GitHub and docs intro https://docs.microsoft.com/en-us/learn/modules/introduction-to-powershell/ help https://docs.microsoft.com/powershell/module/Microsoft.PowerShell.Core docs https://docs.microsoft.com/powershell/ absolute basics quick start files and folders if usable $PROFILE init file Microsoft.PowerShell_profile.ps1, enable ^L cls and ^D exit remote sessions monkey see, monkey do https://awesomeopensource.com/projects/powershell Windows net settings Get-NetIPAddress Get-NetIPConfiguration Get-NetAdapter Get-Net6to4Configuration Get-NetAdapterAdvancedProperty Get-NetConnectionProfile Get-NetNeighbor ... add profile defaults New-Item -Path $profile -Type File -Force notepad $profile (admin PS) Set-ExecutionPolicy RemoteSigned PSGalleryReport