Powershell PS In Case Of

2020-11-29. Category & Tags: Windows, Powershell, SSH, Ps

See also SSH. Overview: for both server and client: enable remote manager on both sides; set the other side as trusted. On both: Enable-PSRemoting -SkipNetworkProfileCheck -Force Set-Item wsman:\localhost\Client\TrustedHosts -value 192.168.1.* On the client: Enter-PSSession 192.168.xx.xx -Credential <server_computername>\<username> Tip: $Env:COMPUTERNAME # for computername $Env:USERNAME # for username [ref]

Powershell In Case Of

2018-02-09. Category & Tags: Powershell, Windows

Use Microsoft Terminal # choco install -y microsoft-windows-terminal Customizing PS Prompt (Use ConEmu) # See more in [codeship]. install chocolatey (i.e. win pkg manager) # option 1 [chocolatey official]: # Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1')) # install choco choco install conemu -y # Install PowerShell modules Install-PackageProvider NuGet -MinimumVersion '' -Force Set-PSRepository -Name PSGallery -InstallationPolicy Trusted Install-Module -Name 'posh-git' option 2, with Git together codeship: # # Set your PowerShell execution policy Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Force # Install Chocolatey iwr https://chocolatey. ...