Comments (5)
I'm not sure how you run Initialize-OnPremDSTGroupToCloud. Do you run as the example?
$DSTs = Get-DistributionGroup -Filter {IsDirSynced -eq $true} -Resultsize Unlimited
$DSTs.PrimarySmtpAddress | Initialize-OnPremDSTGroupToCloud -ExchangeServer exchprod01.contoso.com -Force
from distributiongroupmigration.
from distributiongroupmigration.
Have you verified the content in the CSV is correct when assigning to the $GroupDL variable?
You are using
Foreach ($GroupDL in $GroupDL)
{
Which will work one time, but I suspect that the $GroupDL with the property PrimarySMTPAddress is causing the error.
If you run this cmdlet, will it produce 5 email addresses?
foreach ($Group in ($GroupDL | Select-Object -First 5))
{
$Group.PrimarySMTPAddress
}
from distributiongroupmigration.
from distributiongroupmigration.
You can open the Initialize-OnPremDSTGroupToCloud.ps1 file and try to modify the row here to include -ResultSize Unlimited. https://github.com/PhilipHaglund/DistributionGroupMigration/blob/master/source/Public/Initialize-OnPremDSTGroupToCloud.ps1#L278
$Members = Get-EXCHDistributionGroupMember -Identity $ExchGroup.Identity -ErrorAction SilentlyContinue -ResultSize Unlimited
from distributiongroupmigration.
Related Issues (7)
- Installation fails HOT 4
- wrong output information when validating members of groups in Initialize-OnPremDSTGroupToCloud.ps1 script HOT 1
- Cannot bind argument to parameter 'Path' because it is null HOT 2
- Initialize-OnPremDSTGroupToCloud Could not find a part of the path HOT 5
- Mail Enabled Security Groups
- Error occurred, will export current configuration of all distribution groups colle cted and its properties to a PSFClixml object to $path
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from distributiongroupmigration.