Archive for March, 2018


Here are two articles to explain the usage of USAGE LOCATION field, required when assigning an Office 365 license:

Assigning an Office 365 license: https://products.office.com/fr-FR/business/microsoft-office-license-restrictions?legRedir=true&CorrelationId=14294ffb-72ea-4e34-b7db-a284839a95c2#fbid=R212J1RT6HT

Usage Location and the Limits depending of the countries: http://mstechtalk.com/office-365-usage-restrictions/

Advertisements

How to install the Exchange management tools and PowerShell cmdlets:

For Exchange 2016:

https://technet.microsoft.com/en-us/library/bb232090(v=exchg.160).aspx

in short: Setup.exe /Role:ManagementTools /IAcceptExchangeServerLicenseTerms

Best practices:

Connecting to Exchange on-premises using PowerShell remoting is a simple task, and means that you do not need to go the trouble of installing the Exchange management tools on your computer just to perform day to day administrative tasks.

There are three steps to establishing a remote PowerShell session to your Exchange server:

  • Capture admin credentials
  • Create a new PSSession
  • Import the PSSession

https://practical365.com/exchange-server/powershell-function-to-connect-to-exchange-on-premises/

Usage: Connect-Exchange -URL exchange2.mydomain.local

 

Scripts repository for Exchange:

https://github.com/cunninghamp/Powershell-Exchange

 

 

 

Web resources:

https://practical365.com/exchange-server/hybrid-exchange-office-365/

 

New Microsoft French Datacenters:

  • 3 new datacenters in Paris working synchronously + 1 datacenter in Marseille working asynchronously with Paris.

Interesting in the context of GDPR rules and sovereign data. But also important will be the Multi-Geos offer coming to provide worldwide presence:

Control where each user’s data is stored

  • Meet your data residency needs in the cloud by storing your Office 365 data at-rest, on a per-user basis, in chosen Office 365 datacenter geographies

Empower global collaboration

  • Migrate from on-premises to a single Office 365 tenant and enable a unified communication & collaboration experience across your company

Supported DATA: Exchange, Sharepoint, Onedrive

Some links:

Microsoft Trust Center

http://office.com/datamaps

http://aka.ms/microsoftOST

Data Resiliency in Microsoft Office 365

http://aka.ms/stp

Cloud for Good

LinkedIn: Yes, you can put your toxic data in Office 365

http://aka.ms/O365protect_files

By default Microsoft does not provide tools to migrate OneDrive data; Sharepoint data; exchange mailboxes data from a O365 tenant to another O365 tenant, in a context of company acquisition or devestiture:

Here is the List of software vendors for Azure/Office 365 tenant data migrations:

Skysync

Quest => pros: for exchange online migrations

Avepoint => pros: for sharepoint, exchange online, onedrive online migrations

Sharegate => pros: for sharepoint online migrations

Cloud fastpath by tervela => pros: for box to onedrive, for data migrations

code2 => pros: Exchange online migrations

Cloudiway

Metalogix

Cloudsfer

Cloud migrator 365

bitTitan => pros: for exchange online migrations

Aspera

Beezy

Metalogix

 

Deciding which protocol to use for which service

The key distinguishing factor for our service will be found in the URL of the resource… If our URL looks like X, then it is a Y service, and you use Z tool to get to it

URL Service Type Cmdlet
Ends in .asmx or ?WSDL SOAP New-WebServiceProxy
Contains API, especially api/v2 REST Invoke-RESTMethod
Ends in .php PHP/Form Invoke-WebRequest

REST v. Soap, whats the difference?

Both REST and SOAP are simply methods of accessing information presented via web services. It will suffice to say that REST is now in vogue, and is generally believed to be easier to use and manage than SOAP, which tends to be a bit heavier on XML.

“A nice analogy for REST vs. SOAP is mailing a letter: with SOAP, you’re using an envelope; with REST, it’s a postcard. ”

Resources:

https://www.codeproject.com/Tips/794949/Query-Webservices-with-Powershell

Working with Web Services, SOAP, PHP and all the REST with PowerShell

PowerShell Core 6.0 is a new edition of PowerShell that is cross-platform (Windows, macOS, and Linux), open-source, and built for heterogeneous environments and the hybrid cloud.

The goal of PowerShell Core is to remain as compatible as possible with Windows PowerShell. PowerShell Core uses .NET Standard 2.0 to provide binary compatibility with existing .NET assemblies

Microsoft will not replace the standard PowerShell by PowerShell Core. Both will coexist side by side until further notice.

powershell

pwsh

https://docs.microsoft.com/en-us/powershell/scripting/whats-new/what-s-new-in-powershell-core-60?view=powershell-6

Installing PowerShell core:

https://docs.microsoft.com/en-us/powershell/scripting/setup/installing-powershell-core-on-windows?view=powershell-6

https://docs.microsoft.com/en-us/powershell/scripting/setup/installing-powershell-core-on-linux?view=powershell-6

 

This was one of the main blockers of Firefox adoption in the enterprise : https://bugzilla.mozilla.org/show_bug.cgi?id=1433136

 

PowerShell remoting with SSH:

https://docs.microsoft.com/en-us/powershell/scripting/core-powershell/ssh-remoting-in-powershell-core?view=powershell-6

========================================================================================

How to use SFTP (and SSH) with Powershell?

http://www.powershellmagazine.com/2014/07/03/posh-ssh-open-source-ssh-powershell-module/

https://github.com/darkoperator/Posh-SSH

or Using WinSCP: http://winscp.net/eng/docs/library_powershell#using_from_powershell

Else other:

SFTP powershell snap-in: http://www.k-tools.nl/index.php/download-sftp-powershell-snap-in/

and paying software: http://www.powershellserver.com/download/

 

example of code using POSH SSH to use SFTP for secure file transfer (certified working! ;)))

$sftpUser = “myaccount”
$sftpServer = “103.x.y.z”
$LocalFile = “d:\data\filetoupload.txt”
$sftpPass = ConvertTo-SecureString -String “ttIJP0YPuPS6” -AsPlainText -Force
$sftpCred = new-object -typename System.Management.Automation.PSCredential -argumentlist $sftpUser, $sftpPass
$sftpSession = New-SFTPSession -ComputerName $sftpServer -Credential $sftpCred

Set-SFTPFile -SFTPSession $sftpSession -LocalFile $Localfile -RemotePath “/tmp/mydirectory/” -Overwrite

 

 

Reference: https://thehackernews.com/2018/03/kali-linux-hacking-windows.html

Now you can download and install Kali Linux directly from the Microsoft App Store on Windows 10 just like any other application:

First install the Linux subsystem and restart:

You can even do the same by opening PowerShell as Administrator and running the following command and restart your computer.

Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux