Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 283
  • Last Modified:

powershell: missing cmdlets (Windows 7)

As a newcomer to PowerShell I am trying to use it to manage our (recently-acquired) domain at Office 365.
The MS folk have walked me through the process of reporting on our email domain, but left to myself and my own Win7 machine I am continually failing to proceed beyond the initialisation, at the point where I issue the 'Import' cmdlet - I get 'not recognized' for that, and for 'get-mailbox'.


Win7 Pro 64-bit SP1
Installed: MS Online Services Assistant; Windows Azure Active Directory Module for Windows PowerShell; Windows Management Framework 4; .NET framework 4.5.1.  Multiple restarts.

Sequence of PS commands to that point:

--------------------------------------------
$LiveCred = Get-Credential

$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://ps.outlook.com/powershell/ -Credential $LiveCred -Authentication Basic -AllowRedirection

Import -PSSession $Session
-------------------------------------------

(fails at 'Import')

What have I missed please?
0
phl6hal
Asked:
phl6hal
1 Solution
 
Peter HutchisonSenior Network Systems SpecialistCommented:
I don't think there supposed to be a space between Import and -PSSession.
0
 
phl6halAuthor Commented:
How simple is that!

Thanks!
0

Featured Post

NFR key for Veeam Agent for Linux

Veeam is happy to provide a free NFR license for one year.  It allows for the non‑production use and valid for five workstations and two servers. Veeam Agent for Linux is a simple backup tool for your Linux installations, both on‑premises and in the public cloud.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now