
**********************
Windows PowerShell transcript start
Start time: 20151116092819
Username  : ONS\igbina
Machine	  : ONS16359 (Microsoft Windows 7 Enterprise  6.1.7601 Service Pack 1)
**********************
Transcript started, output file is \\ndata11\igbina$\My Documents\PowerShell_transcript.20151116092819.txt

PS C:\Scripts> C:\Scripts\Modules\transcript.psm1

Name                      Alias                ServerName       ProhibitSendQuota                                                                                                                                                
----                      -----                ----------       -----------------                                                                                                                                                
Alberto Igbinedion        alberto.igbinedion   np3rvwmsxx469    181 MB (189,792,256 bytes)                                                                                                                                       


PS C:\Scripts> C:\Scripts\Modules\transcript.psm1
The operation couldn't be performed because 'richard.heys:\Top of Information Store' couldn't be found.
    + CategoryInfo          : NotSpecified: (:) [Add-MailboxFolderPermission], ManagementObjectNotFoundException
    + FullyQualifiedErrorId : [Server=FA1RVWAPXX398,RequestId=0c50d53e-35f5-4882-91f9-1553941d726d,TimeStamp=19/11/2015 16:40:33] [FailureCategory=Cmdlet-ManagementObjectNotFoundException] 96633695,Microsoft.Exchange.Managem 
   ent.StoreTasks.AddMailboxFolderPermission
    + PSComputerName        : fa1rvwapxx398
 

FolderName           User                 AccessRights                                                                                                                                                                           
----------           ----                 ------------                                                                                                                                                                           
All Mail             Nash, Hollie         {Owner}                                                                                                                                                                                
Big Story slides     Nash, Hollie         {Owner}                                                                                                                                                                                
Calendar             Nash, Hollie         {Owner}                                                                                                                                                                                
Contacts             Nash, Hollie         {Owner}                                                                                                                                                                                
{06967759-274D-40... Nash, Hollie         {Owner}                                                                                                                                                                                
GAL Contacts         Nash, Hollie         {Owner}                                                                                                                                                                                
Recipient Cache      Nash, Hollie         {Owner}                                                                                                                                                                                
Conversation Acti... Nash, Hollie         {Owner}                                                                                                                                                                                
Corporate Economics  Nash, Hollie         {Owner}                                                                                                                                                                                
Business cases       Nash, Hollie         {Owner}                                                                                                                                                                                
Deloittes Tender ... Nash, Hollie         {Owner}                                                                                                                                                                                
Management Inform... Nash, Hollie         {Owner}                                                                                                                                                                                
OCEA Finance         Nash, Hollie         {Owner}                                                                                                                                                                                
Pay Modelling        Nash, Hollie         {Owner}                                                                                                                                                                                
QA                   Nash, Hollie         {Owner}                                                                                                                                                                                
PSC Papers           Nash, Hollie         {Owner}                                                                                                                                                                                
Deleted Items        Nash, Hollie         {Owner}                                                                                                                                                                                
Drafts               Nash, Hollie         {Owner}                                                                                                                                                                                
Economic Capability  Nash, Hollie         {Owner}                                                                                                                                                                                
Recruitment          Nash, Hollie         {Owner}                                                                                                                                                                                
35                   Nash, Hollie         {Owner}                                                                                                                                                                                
AEs                  Nash, Hollie         {Owner}                                                                                                                                                                                
ERs                  Nash, Hollie         {Owner}                                                                                                                                                                                
University panel     Nash, Hollie         {Owner}                                                                                                                                                                                
G7s                  Nash, Hollie         {Owner}                                                                                                                                                                                
RAS                  Nash, Hollie         {Owner}                                                                                                                                                                                
Sandwich Students    Nash, Hollie         {Owner}                                                                                                                                                                                
Resources Committ... Nash, Hollie         {Owner}                                                                                                                                                                                
Economic Review      Nash, Hollie         {Owner}                                                                                                                                                                                
Human stuff          Nash, Hollie         {Owner}                                                                                                                                                                                
Forward Planner      Nash, Hollie         {Owner}                                                                                                                                                                                
HR system            Nash, Hollie         {Owner}                                                                                                                                                                                
ICT stuff            Nash, Hollie         {Owner}                                                                                                                                                                                
Laptop manual        Nash, Hollie         {Owner}                                                                                                                                                                                
Media Summary        Nash, Hollie         {Owner}                                                                                                                                                                                
Inbox                Nash, Hollie         {Owner}                                                                                                                                                                                
Journal              Nash, Hollie         {Owner}                                                                                                                                                                                
Junk Email           Nash, Hollie         {Owner}                                                                                                                                                                                
Meeting Acceptance   Nash, Hollie         {Owner}                                                                                                                                                                                
National Accounts    Nash, Hollie         {Owner}                                                                                                                                                                                
Bean                 Nash, Hollie         {Owner}                                                                                                                                                                                
Blue Book 2015       Nash, Hollie         {Owner}                                                                                                                                                                                
Blue Book media i... Nash, Hollie         {Owner}                                                                                                                                                                                
GDP Q2 2015          Nash, Hollie         {Owner}                                                                                                                                                                                
MPC Meeting feedback Nash, Hollie         {Owner}                                                                                                                                                                                
NA Delivery Board    Nash, Hollie         {Owner}                                                                                                                                                                                
PPP - September 2015 Nash, Hollie         {Owner}                                                                                                                                                                                
Really good balan... Nash, Hollie         {Owner}                                                                                                                                                                                
Notes                Nash, Hollie         {Owner}                                                                                                                                                                                
Outbox               Nash, Hollie         {Owner}                                                                                                                                                                                
Portfolio Scrutin... Nash, Hollie         {Owner}                                                                                                                                                                                
PQs                  Nash, Hollie         {Owner}                                                                                                                                                                                
11769 - Youth Pro... Nash, Hollie         {Owner}                                                                                                                                                                                
Private              Nash, Hollie         {Owner}                                                                                                                                                                                
Productivity         Nash, Hollie         {Owner}                                                                                                                                                                                
Bloom and Van Reenan Nash, Hollie         {Owner}                                                                                                                                                                                
Deflator Usage       Nash, Hollie         {Owner}                                                                                                                                                                                
ESRC Meet 9          Nash, Hollie         {Owner}                                                                                                                                                                                
10                   Nash, Hollie         {Owner}                                                                                                                                                                                
15                   Nash, Hollie         {Owner}                                                                                                                                                                                
Horizon 2020         Nash, Hollie         {Owner}                                                                                                                                                                                
ICP Publications     Nash, Hollie         {Owner}                                                                                                                                                                                
Internal Audit       Nash, Hollie         {Owner}                                                                                                                                                                                
KLEMS                Nash, Hollie         {Owner}                                                                                                                                                                                
Labour Productivity  Nash, Hollie         {Owner}                                                                                                                                                                                
Public Sector Pro... Nash, Hollie         {Owner}                                                                                                                                                                                
Prisons Example      Nash, Hollie         {Owner}                                                                                                                                                                                
UKCeGMA              Nash, Hollie         {Owner}                                                                                                                                                                                
SR bid               Nash, Hollie         {Owner}                                                                                                                                                                                
Workplan 2015        Nash, Hollie         {Owner}                                                                                                                                                                                
Key Workplan papers  Nash, Hollie         {Owner}                                                                                                                                                                                
Sent Items           Nash, Hollie         {Owner}                                                                                                                                                                                
Productivity         Nash, Hollie         {Owner}                                                                                                                                                                                
Bloom and Van Reenan Nash, Hollie         {Owner}                                                                                                                                                                                
ESRC Meet 9          Nash, Hollie         {Owner}                                                                                                                                                                                
10                   Nash, Hollie         {Owner}                                                                                                                                                                                
15                   Nash, Hollie         {Owner}                                                                                                                                                                                
KLEMS                Nash, Hollie         {Owner}                                                                                                                                                                                
SII                  Nash, Hollie         {Owner}                                                                                                                                                                                
London Presence      Nash, Hollie         {Owner}                                                                                                                                                                                
G6 - London PFI p... Nash, Hollie         {Owner}                                                                                                                                                                                
VML Web Survey       Nash, Hollie         {Owner}                                                                                                                                                                                
SII                  Nash, Hollie         {Owner}                                                                                                                                                                                
London Presence      Nash, Hollie         {Owner}                                                                                                                                                                                
Comms plan           Nash, Hollie         {Owner}                                                                                                                                                                                
Deflators            Nash, Hollie         {Owner}                                                                                                                                                                                
MMI                  Nash, Hollie         {Owner}                                                                                                                                                                                
PPP Expert           Nash, Hollie         {Owner}                                                                                                                                                                                
VAT (Finance trea... Nash, Hollie         {Owner}                                                                                                                                                                                
VAT QA               Nash, Hollie         {Owner}                                                                                                                                                                                
VML ARD              Nash, Hollie         {Owner}                                                                                                                                                                                
Tasks                Nash, Hollie         {Owner}                                                                                                                                                                                
Templates            Nash, Hollie         {Owner}                                                                                                                                                                                
Website              Nash, Hollie         {Owner}                                                                                                                                                                                
Working Set          Nash, Hollie         {Owner}                                                                                                                                                                                
The operation couldn't be performed because 'richard.heys:\Recoverable Items' couldn't be found.
    + CategoryInfo          : NotSpecified: (:) [Add-MailboxFolderPermission], ManagementObjectNotFoundException
    + FullyQualifiedErrorId : [Server=FA1RVWAPXX398,RequestId=2d38dc2b-c360-47e4-8e78-c23192d5e57e,TimeStamp=19/11/2015 16:41:38] [FailureCategory=Cmdlet-ManagementObjectNotFoundException] FFC0D14C,Microsoft.Exchange.Managem 
   ent.StoreTasks.AddMailboxFolderPermission
    + PSComputerName        : fa1rvwapxx398
 
The operation couldn't be performed because 'richard.heys:\Calendar Logging' couldn't be found.
    + CategoryInfo          : NotSpecified: (:) [Add-MailboxFolderPermission], ManagementObjectNotFoundException
    + FullyQualifiedErrorId : [Server=FA1RVWAPXX398,RequestId=a70187c1-6883-4cd0-a712-f8d521a9ad4f,TimeStamp=19/11/2015 16:41:38] [FailureCategory=Cmdlet-ManagementObjectNotFoundException] 5C380CBD,Microsoft.Exchange.Managem 
   ent.StoreTasks.AddMailboxFolderPermission
    + PSComputerName        : fa1rvwapxx398
 
The operation couldn't be performed because 'richard.heys:\Deletions' couldn't be found.
    + CategoryInfo          : NotSpecified: (:) [Add-MailboxFolderPermission], ManagementObjectNotFoundException
    + FullyQualifiedErrorId : [Server=FA1RVWAPXX398,RequestId=c0f53200-da00-4e9c-960f-4c0abdfea1c8,TimeStamp=19/11/2015 16:41:38] [FailureCategory=Cmdlet-ManagementObjectNotFoundException] CBC6086B,Microsoft.Exchange.Managem 
   ent.StoreTasks.AddMailboxFolderPermission
    + PSComputerName        : fa1rvwapxx398
 
The operation couldn't be performed because 'richard.heys:\Purges' couldn't be found.
    + CategoryInfo          : NotSpecified: (:) [Add-MailboxFolderPermission], ManagementObjectNotFoundException
    + FullyQualifiedErrorId : [Server=FA1RVWAPXX398,RequestId=5425b80a-d1c5-455e-8a82-45045fb4f832,TimeStamp=19/11/2015 16:41:39] [FailureCategory=Cmdlet-ManagementObjectNotFoundException] 85B42174,Microsoft.Exchange.Managem 
   ent.StoreTasks.AddMailboxFolderPermission
    + PSComputerName        : fa1rvwapxx398
 
The operation couldn't be performed because 'richard.heys:\Versions' couldn't be found.
    + CategoryInfo          : NotSpecified: (:) [Add-MailboxFolderPermission], ManagementObjectNotFoundException
    + FullyQualifiedErrorId : [Server=FA1RVWAPXX398,RequestId=5b191ba6-de7c-4035-9c1c-1f4c94138131,TimeStamp=19/11/2015 16:41:39] [FailureCategory=Cmdlet-ManagementObjectNotFoundException] 6ACE0079,Microsoft.Exchange.Managem 
   ent.StoreTasks.AddMailboxFolderPermission
    + PSComputerName        : fa1rvwapxx398
 


PS C:\Scripts> C:\Scripts\Modules\transcript.psm1

FolderName           User                 AccessRights                                                                                                                                                                           
----------           ----                 ------------                                                                                                                                                                           
Top of Informatio... Default              {None}                                                                                                                                                                                 
Top of Informatio... Anonymous            {None}                                                                                                                                                                                 


PS C:\Scripts> C:\Scripts\Modules\transcript.psm1
An existing permission entry was found for user: Nash, Hollie.
    + CategoryInfo          : NotSpecified: (:) [Add-MailboxFolderPermission], UserAlreadyExis...nEntryException
    + FullyQualifiedErrorId : [Server=FA1RVWAPXX398,RequestId=cb53d951-c255-49c2-9339-a1d27e7bdc1e,TimeStamp=19/11/2015 16:49:33] [FailureCategory=Cmdlet-UserAlreadyExistsInPermissionEntryException] B62CD681,Microsoft.Exchan 
   ge.Management.StoreTasks.AddMailboxFolderPermission
    + PSComputerName        : fa1rvwapxx398
 
PS C:\Scripts> C:\Scripts\Modules\transcript.psm1

FolderName           User                 AccessRights                                                                                                                                                                           
----------           ----                 ------------                                                                                                                                                                           
Calendar             Nash, Hollie         {Owner}                                                                                                                                                                                


PS C:\Scripts> C:\Scripts\Modules\transcript.psm1

FolderName           User                 AccessRights                                                                                                                                                                           
----------           ----                 ------------                                                                                                                                                                           
Top of Informatio... Default              {None}                                                                                                                                                                                 
Top of Informatio... Anonymous            {None}                                                                                                                                                                                 


PS C:\Scripts> C:\Scripts\Modules\transcript.psm1

Name                                                                                                TargetMailbox                                                                                       Status                   
----                                                                                                -------------                                                                                       ------                   
MailboxRestore                                                                                      Ons.Statistics.gov.uk/ONS/ExchangeObjects/Outlook Feedback                                          Completed                


PS C:\Scripts> C:\Scripts\Modules\transcript.psm1
Cannot process argument transformation on parameter 'Identity'. Cannot convert value "Outlook Feedback" to type "Microsoft.Exchange.MailboxReplicationService.MailboxRestoreRequestIdParameter". Error: "Invalid format for the 
Identity "Outlook Feedback".  Correct formats are: "RequestGuid" or "MailboxName\RequestName"."
    + CategoryInfo          : InvalidData: (:) [Remove-MailboxRestoreRequest], ParameterBindin...mationException
    + FullyQualifiedErrorId : ParameterArgumentTransformationError,Remove-MailboxRestoreRequest
    + PSComputerName        : fa1rvwapxx398
 
PS C:\Scripts> C:\Scripts\Modules\transcript.psm1
A positional parameter cannot be found that accepts argument 'Department*'.
    + CategoryInfo          : InvalidArgument: (:) [Get-Mailbox], ParameterBindingException
    + FullyQualifiedErrorId : PositionalParameterNotFound,Get-Mailbox
    + PSComputerName        : fa1rvwapxx398
 
PS C:\Scripts> C:\Scripts\Modules\transcript.psm1

Name                      Alias                ServerName       ProhibitSendQuota                                                                                                                                                
----                      -----                ----------       -----------------                                                                                                                                                
Sales Department          Sales                fa1rvwmsxx468    Unlimited                                                                                                                                                        
Enforcement Department    EnforcementDepart... np3rvwmsxx469    Unlimited                                                                                                                                                        


PS C:\Scripts> C:\Scripts\Modules\transcript.psm1

Name                      Alias                ServerName       ProhibitSendQuota                                                                                                                                                
----                      -----                ----------       -----------------                                                                                                                                                
Sales Department          Sales                fa1rvwmsxx468    Unlimited                                                                                                                                                        


PS C:\Scripts> C:\Scripts\Modules\transcript.psm1
At C:\Scripts\Commands.ps1:1 char:25
+                        ,
+                         ~
Missing expression after unary operator ','.

At C:\Scripts\Commands.ps1:4 char:1
+ New-Mailbox -Shared -Name "Sales Department" -DisplayName "Sales Department" -Al ...
+ ~~~~~~~~~~~
Unexpected token 'New-Mailbox' in expression or statement.


    + CategoryInfo          : ParserError: (:) [], ParentContainsErrorRecordException
    + FullyQualifiedErrorId : MissingExpressionAfterOperator
 
PS C:\Scripts> C:\Scripts\Modules\transcript.psm1
The operation couldn't be performed because object 'Alex.New' couldn't be found on 'FA1RPONSDC001.Ons.Statistics.gov.uk'.
    + CategoryInfo          : NotSpecified: (:) [Get-MailUser], ManagementObjectNotFoundException
    + FullyQualifiedErrorId : [Server=FA1RVWAPXX398,RequestId=3925c9ea-75d1-45e8-8a6c-333d4bfb78e7,TimeStamp=20/11/2015 09:53:29] [FailureCategory=Cmdlet-ManagementObjectNotFoundException] 4D48E299,Microsoft.Exchange.Managem 
   ent.RecipientTasks.GetMailUser
    + PSComputerName        : fa1rvwapxx398
 
PS C:\Scripts> C:\Scripts\Modules\transcript.psm1
The operation couldn't be performed because object 'Alex.New' couldn't be found on 'FA1RPONSDC001.Ons.Statistics.gov.uk'.
    + CategoryInfo          : NotSpecified: (:) [Get-Mailbox], ManagementObjectNotFoundException
    + FullyQualifiedErrorId : [Server=FA1RVWAPXX398,RequestId=4599b018-c8a7-4f98-bf5e-4ea60c6cd378,TimeStamp=20/11/2015 09:53:46] [FailureCategory=Cmdlet-ManagementObjectNotFoundException] 4D48E299,Microsoft.Exchange.Managem 
   ent.RecipientTasks.GetMailbox
    + PSComputerName        : fa1rvwapxx398
 
PS C:\Scripts> C:\Scripts\Modules\transcript.psm1
You cannot call a method on a null-valued expression.
At C:\Scripts\Create-NewUserMailEnableMB.ps1:16 char:1
+ $ExternalEmailAddress    = $User.ExternalEmailAddress.Trim()
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull
 
You cannot call a method on a null-valued expression.
At C:\Scripts\Create-NewUserMailEnableMB.ps1:17 char:1
+ $Firstname        = $User.FirstName.Trim()
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull
 
You cannot call a method on a null-valued expression.
At C:\Scripts\Create-NewUserMailEnableMB.ps1:18 char:1
+ $Lastname    = $User.Lastname.Trim()
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull
 
You cannot call a method on a null-valued expression.
At C:\Scripts\Create-NewUserMailEnableMB.ps1:20 char:1
+ $Password = $User.Password.Trim()
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull
 
You cannot call a method on a null-valued expression.
At C:\Scripts\Create-NewUserMailEnableMB.ps1:24 char:1
+ [string]$Name = ($Lastname.substring(0,7))+($Firstname.substring(2,1))
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull
 
You cannot call a method on a null-valued expression.
At C:\Scripts\Create-NewUserMailEnableMB.ps1:28 char:1
+ $Alias = $ExternalEmailAddress.Split("@")[0]
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull
 
Cannot bind argument to parameter 'Name' because it is an empty string.
    + CategoryInfo          : InvalidData: (:) [New-MailUser], ParameterBindingValidationException
    + FullyQualifiedErrorId : ParameterArgumentValidationErrorEmptyStringNotAllowed,New-MailUser
    + PSComputerName        : fa1rvwapxx398
 
A positional parameter cannot be found that accepts argument 'Name WhenChanged ExternalEmailAddress'.
    + CategoryInfo          : InvalidArgument: (:) [Get-MailUser], ParameterBindingException
    + FullyQualifiedErrorId : PositionalParameterNotFound,Get-MailUser
    + PSComputerName        : fa1rvwapxx398
 
PS C:\Scripts> C:\Scripts\Modules\transcript.psm1
You cannot call a method on a null-valued expression.
At C:\Scripts\Create-NewUserMailEnableMB.ps1:16 char:1
+ $ExternalEmailAddress    = $User.ExternalEmailAddress.Trim()
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull
 
You cannot call a method on a null-valued expression.
At C:\Scripts\Create-NewUserMailEnableMB.ps1:17 char:1
+ $Firstname        = $User.FirstName.Trim()
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull
 
You cannot call a method on a null-valued expression.
At C:\Scripts\Create-NewUserMailEnableMB.ps1:18 char:1
+ $Lastname    = $User.Lastname.Trim()
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull
 
You cannot call a method on a null-valued expression.
At C:\Scripts\Create-NewUserMailEnableMB.ps1:20 char:1
+ $Password = $User.Password.Trim()
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull
 
You cannot call a method on a null-valued expression.
At C:\Scripts\Create-NewUserMailEnableMB.ps1:24 char:1
+ [string]$Name = ($Lastname.substring(0,7))+($Firstname.substring(2,1))
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull
 
You cannot call a method on a null-valued expression.
At C:\Scripts\Create-NewUserMailEnableMB.ps1:28 char:1
+ $Alias = $ExternalEmailAddress.Split("@")[0]
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull
 
Cannot bind argument to parameter 'Name' because it is an empty string.
    + CategoryInfo          : InvalidData: (:) [New-MailUser], ParameterBindingValidationException
    + FullyQualifiedErrorId : ParameterArgumentValidationErrorEmptyStringNotAllowed,New-MailUser
    + PSComputerName        : fa1rvwapxx398
 
A positional parameter cannot be found that accepts argument 'Name WhenChanged ExternalEmailAddress'.
    + CategoryInfo          : InvalidArgument: (:) [Get-MailUser], ParameterBindingException
    + FullyQualifiedErrorId : PositionalParameterNotFound,Get-MailUser
    + PSComputerName        : fa1rvwapxx398
 
PS C:\Scripts> C:\Scripts\Modules\transcript.psm1
You cannot call a method on a null-valued expression.
At C:\Scripts\Create-NewUserMailEnableMB.ps1:17 char:1
+ $Firstname        = $User.FirstName.Trim()
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull
 
You cannot call a method on a null-valued expression.
At C:\Scripts\Create-NewUserMailEnableMB.ps1:18 char:1
+ $Lastname    = $User.Lastname.Trim()
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull
 
You cannot call a method on a null-valued expression.
At C:\Scripts\Create-NewUserMailEnableMB.ps1:20 char:1
+ $Password = $User.Password.Trim()
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull
 
You cannot call a method on a null-valued expression.
At C:\Scripts\Create-NewUserMailEnableMB.ps1:24 char:1
+ [string]$Name = ($Lastname.substring(0,7))+($Firstname.substring(2,1))
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull
 
Cannot bind argument to parameter 'Name' because it is an empty string.
    + CategoryInfo          : InvalidData: (:) [New-MailUser], ParameterBindingValidationException
    + FullyQualifiedErrorId : ParameterArgumentValidationErrorEmptyStringNotAllowed,New-MailUser
    + PSComputerName        : fa1rvwapxx398
 
A positional parameter cannot be found that accepts argument 'Name WhenChanged ExternalEmailAddress'.
    + CategoryInfo          : InvalidArgument: (:) [Get-MailUser], ParameterBindingException
    + FullyQualifiedErrorId : PositionalParameterNotFound,Get-MailUser
    + PSComputerName        : fa1rvwapxx398
 
PS C:\Scripts> C:\Scripts\Modules\transcript.psm1
Cannot bind parameter 'Alias' to the target. Exception setting "Alias": "Property expression "$User.ExternalEmailAddress.Trim()" isn't valid. Valid values are: Strings formed with characters from A to Z (uppercase or 
lowercase), digits from 0 to 9, !, #, $, %, &, ', *, +, -, /, =, ?, ^, _, `, {, |, } or ~. One or more periods may be embedded in an alias, but each period should be preceded and followed by at least one of the other 
characters. Unicode characters from U+00A1 to U+00FF are also valid in an alias, but they will be mapped to a best-fit US-ASCII string in the e-mail address, which is generated from such an alias."
At C:\Users\igbina\AppData\Local\Temp\tmp_pfkkoqkp.ufw\tmp_pfkkoqkp.ufw.psm1:37454 char:9
+         $steppablePipeline.End()
+         ~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : WriteError: (:) [New-MailUser], ParameterBindingException
    + FullyQualifiedErrorId : ParameterBindingFailed,Microsoft.Exchange.Management.RecipientTasks.NewMailUser
 
PS C:\Scripts> C:\Scripts\Modules\transcript.psm1
Cannot bind parameter 'Alias' to the target. Exception setting "Alias": "Property expression "$ExternalEmailAddress.Split("@")[0]" isn't valid. Valid values are: Strings formed with characters from A to Z (uppercase or 
lowercase), digits from 0 to 9, !, #, $, %, &, ', *, +, -, /, =, ?, ^, _, `, {, |, } or ~. One or more periods may be embedded in an alias, but each period should be preceded and followed by at least one of the other 
characters. Unicode characters from U+00A1 to U+00FF are also valid in an alias, but they will be mapped to a best-fit US-ASCII string in the e-mail address, which is generated from such an alias."
At C:\Users\igbina\AppData\Local\Temp\tmp_pfkkoqkp.ufw\tmp_pfkkoqkp.ufw.psm1:37454 char:9
+         $steppablePipeline.End()
+         ~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : WriteError: (:) [New-MailUser], ParameterBindingException
    + FullyQualifiedErrorId : ParameterBindingFailed,Microsoft.Exchange.Management.RecipientTasks.NewMailUser
 
PS C:\Scripts> C:\Scripts\Modules\transcript.psm1
Cannot process argument transformation on parameter 'AccessRights'. Cannot convert value "owner" to type "Microsoft.Exchange.Management.RecipientTasks.MailboxRights[]". Error: "Cannot convert value "owner" to type 
"Microsoft.Exchange.Management.RecipientTasks.MailboxRights". Error: "Unable to match the identifier name owner to a valid enumerator name.  Specify one of the following enumerator names and try again: FullAccess, SendAs, 
ExternalAccount, DeleteItem, ReadPermission, ChangePermission, ChangeOwner""
    + CategoryInfo          : InvalidData: (:) [Add-MailboxPermission], ParameterBindin...mationException
    + FullyQualifiedErrorId : ParameterArgumentTransformationError,Add-MailboxPermission
    + PSComputerName        : fa1rvwapxx398
 
PS C:\Scripts> C:\Scripts\Modules\transcript.psm1

Name                      Alias                ServerName       ProhibitSendQuota                                                                                                                                                
----                      -----                ----------       -----------------                                                                                                                                                
collyk                    keith.collyer-exch   np3rvwmsxx469    Unlimited                                                                                                                                                        


PS C:\Scripts> C:\Scripts\Modules\transcript.psm1
The string is missing the terminator: '.
    + CategoryInfo          : ParserError: (:) [], ParentContainsErrorRecordException
    + FullyQualifiedErrorId : TerminatorExpectedAtEndOfString
 
PS C:\Scripts> C:\Scripts\Modules\transcript.psm1
The operation couldn't be performed because object 'miles.o'toole' couldn't be found on 'FA1RVONSDC004.Ons.Statistics.gov.uk'.
    + CategoryInfo          : NotSpecified: (:) [Get-Mailbox], ManagementObjectNotFoundException
    + FullyQualifiedErrorId : [Server=FA1RVWAPXX398,RequestId=a8f2991c-3a82-44c5-9e60-34169d030967,TimeStamp=20/11/2015 11:23:19] [FailureCategory=Cmdlet-ManagementObjectNotFoundException] A80195A1,Microsoft.Exchange.Managem 
   ent.RecipientTasks.GetMailbox
    + PSComputerName        : fa1rvwapxx398
 
PS C:\Scripts> C:\Scripts\Modules\transcript.psm1

Name                                     RecipientType                                                                                                                                                                           
----                                     -------------                                                                                                                                                                           
otoolm                                   MailUser                                                                                                                                                                                


PS C:\Scripts> C:\Scripts\Modules\transcript.psm1

                                       IsInactiveMailbox EmailAddresses                                                                         EmailAddressPolicyEnabled WindowsEmailAddress                                    
                                       ----------------- --------------                                                                         ------------------------- -------------------                                    
                                                   False {smtp:David.Best-ex@ons.gov.uk, SMTP:David.Best@ons.g...                                                    True David.Best@ons.gov.uk                                  


PS C:\Scripts> C:\Scripts\Modules\transcript.psm1


IsInactiveMailbox         : False
EmailAddresses            : {smtp:David.Best-ex@ons.gov.uk, SMTP:David.Best@ons.gov.uk, smtp:David.Best-ex@exchange.ons.gov.uk, smtp:David.Best-ex@ons.gsi.gov.uk...}
EmailAddressPolicyEnabled : True
WindowsEmailAddress       : David.Best@ons.gov.uk



PS C:\Scripts> C:\Scripts\Modules\transcript.psm1


IsInactiveMailbox         : False
EmailAddresses            : {smtp:laura.kirke-ech@ons.gov.uk, SMTP:laura.kirke@ons.gov.uk, smtp:laura.kirke@ons.gsi.gov.uk, smtp:laura.kirke@exchange.ons.gov.uk...}
EmailAddressPolicyEnabled : True
WindowsEmailAddress       : laura.kirke@ons.gov.uk



PS C:\Scripts> C:\Scripts\Modules\transcript.psm1
Format-Table : A positional parameter cannot be found that accepts argument 'Remove-MailboxPermission'.
At line:1 char:59
+ Get-MailboxPermission -Identity "david.best@ons.gov.uk" | ft user,accessrights R ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (:) [Format-Table], ParameterBindingException
    + FullyQualifiedErrorId : PositionalParameterNotFound,Microsoft.PowerShell.Commands.FormatTableCommand
 
PS C:\Scripts> C:\Scripts\Modules\transcript.psm1
Format-Table : A positional parameter cannot be found that accepts argument 'Set-MailboxPermission'.
At line:1 char:59
+ Get-MailboxPermission -Identity "david.best@ons.gov.uk" | ft user,accessrights S ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (:) [Format-Table], ParameterBindingException
    + FullyQualifiedErrorId : PositionalParameterNotFound,Microsoft.PowerShell.Commands.FormatTableCommand
 
PS C:\Scripts> C:\Scripts\Modules\transcript.psm1
Format-Table : A positional parameter cannot be found that accepts argument 'add-MailboxPermission'.
At line:1 char:59
+ Get-MailboxPermission -Identity "david.best@ons.gov.uk" | ft user,accessrights a ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (:) [Format-Table], ParameterBindingException
    + FullyQualifiedErrorId : PositionalParameterNotFound,Microsoft.PowerShell.Commands.FormatTableCommand
 
PS C:\Scripts> C:\Scripts\Modules\transcript.psm1
Format-Table : A positional parameter cannot be found that accepts argument 'Remove-MailboxPermission'.
At line:1 char:59
+ Get-MailboxPermission -Identity "david.best@ons.gov.uk" | ft user,accessrights R ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (:) [Format-Table], ParameterBindingException
    + FullyQualifiedErrorId : PositionalParameterNotFound,Microsoft.PowerShell.Commands.FormatTableCommand
 
