Skip to content

Non Omnis Moriar

Documenting is serious business

  • Home
  • About

Search

Categories

  • Gotchas
  • KnowledgeBase

Category: KnowledgeBase

Randomly blocked port range on Windows

Without any app or service listening on it – it may be due to hns – Host Networking Service – try restarting it to see if desired ports are available

Restart-Service -Name hns

or add your range to exclusion: https://dandini.wordpress.com/2019/07/15/administered-port-exclusions-blocking-high-ports/

Posted on 2021-05-262021-07-16Categories KnowledgeBaseTags powershellLeave a comment on Randomly blocked port range on Windows

Powershell .bashrc equivalent

Custom functions can be defined and loaded in every new session. To check where to save custom functions run:

if (!(Test-Path -Path $PROFILE )) { 
    [void](New-Item -Type File -Path $PROFILE -Force)
}
$PROFILE

If file does not exists it will be created.

Please note that this requires execution policy for powershell scripts.

Posted on 2021-03-17Categories KnowledgeBaseTags powershellLeave a comment on Powershell .bashrc equivalent
Proudly powered by WordPress