however once i execute the code i get the following errors. any help would be appreciated
The term 'Where-Object' is not recognized as the name of a cmdlet, function, script file, or operable program. Check
the spelling of the name, or if a path was included, verify that the path is correct and try again.
+ CategoryInfo : ObjectNotFound: (Where-Object:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
+ PSComputerName : petmulser009.peters.local
The term 'Get-Random' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the
spelling of the name, or if a path was included, verify that the path is correct and try again.
+ CategoryInfo : ObjectNotFound: (Get-Random:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
+ PSComputerName : petmulser009.peters.local
Cannot index into a null array.
+ CategoryInfo : InvalidOperation: (:) [], RuntimeException
+ FullyQualifiedErrorId : NullArray
+ PSComputerName : petmulser009.peters.local
Hi,
Just an update on my progress with the above issue. I believe i found a work around thanks to the article that john directed me to. in case anyone in the future stumbles upon this issue this could be a possible solution
create a remote PS Remote session to the exchange server
i then run my first PS remote job to get all Exchange servers mailbox databases. the invoke-command is run as a job so i can use receive-job to get the outback and save it to a variable
A function is then called New-ExchangeMailbox to sort exchange databases. The below function gets all mailbox databases and filters out the Archive databases. then returns the value back which is saved to $ExchangeDatbase
Hi,
Just an update on my progress with the above issue. I believe i found a work around thanks to the article that john directed me to. in case anyone in the future stumbles upon this issue this could be a possible solution
create a remote PS Remote session to the exchange server
i then run my first PS remote job to get all Exchange servers mailbox databases. the invoke-command is run as a job so i can use receive-job to get the outback and save it to a variable
A function is then called New-ExchangeMailbox to sort exchange databases. The below function gets all mailbox databases and filters out the Archive databases. then returns the value back which is saved to $ExchangeDatbase