Monday, December 21, 2020

How to access from local network in WSL2

add port: 

netsh interface portproxy add v4tov4 listenport=3000 listenaddress=0.0.0.0 connectport=3000 connectaddress=172.20.216.249


delete port:

netsh interface portproxy delete v4tov4 listenport=3000 listenaddress=0.0.0.0


show port:

netsh interface portproxy show all


ex.

PS C:\Windows\system32> netsh interface portproxy show all

Listen on ipv4:             Connect to ipv4:


Address         Port        Address         Port

--------------- ----------  --------------- ----------

0.0.0.0         3000        172.20.216.249  3000

0.0.0.0         8080        172.20.216.249  8080


Monday, December 7, 2020

PowerShell Connections for Office365 Administrators

Office 365/Azure AD

Microsoft Online Services Sign-in Assistant for IT Professionals 

PS C:\>Install-Module MSOnline

PS C:\>$credential = Get-Credential

PS C:\>Connect-MsolService -Credential $Credential


Azure AD

PS C:\>Install-Module AzureAD

PS C:\>Connect-AzureAD


Exchange Online

PS C:\>$credential = Get-Credential

PS C:\>$exosession = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid -Credential $credential -Authentication Basic –AllowRedirection

PS C:\>Import-PSSession $exosession


Microsoft Teams

PS C:\>Install-Module -Name MicrosoftTeams

PS C:\>Install-Module -Name MicrosoftTeams -AllowClobber

PS C:\>Connect-MicrosoftTeams


Skype for Business Online

Skype for Business Online PowerShell Module 

PS C:\>$credential = Get-Credential

PS C:\>$skypesession = New-CsOnlineSession -Credential $credential

PS C:\>Import-PSSession $skypesession


SharePoint Online

SharePoint Online Management Shell

PS C:\>$Credential = Get-Credential

PS C:\>Connect-SPOService -url https://yourtenantname-admin.sharepoint.com -Credential $credential

ex. Connect-SPOService -url https://my365-admin.sharepoint.com -Credential $credential

PS C:\>Get-Command -Noun SPO*


Security and Compliance Center

PS C:\>$credential = Get-Credential

PS C:\>$ccsession = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://ps.compliance.protection.outlook.com/powershell-liveid/ -Credential $Credential -Authentication Basic -AllowRedirection

PS C:\>Import-PSSession $ccsession


ALCATEL 6900

write memory copy running certified reload from working no rollback-timeout