Forum Discussion
Unable to obtain V1.1.130.0 public preview of the Azure AD PowerShell module
Update: Good response over in a different thread highlighting the need to now use the v2 AzureAD preview module to perform this configuration:
I am attempting to evaluate the ability to limit the creation of Office 365 groups via the implementation of the Azure AD configuration as explained here:
https://support.office.com/en-gb/article/Manage-Office-365-Group-Creation-4c46c8cb-17d0-44b5-9776-005fced8e618
as well as here:
In all cases, I am directed to use V1.1.130.0 public preview of the Azure AD PowerShell module. The link (http://connect.microsoft.com/site1164/Downloads/DownloadDetails.aspx?DownloadID=59185) provided in these articles only, even when logged in, provides access to v 1.1.166.0 which does not include the MsolAllSettings etc. cmdlets.
Can someone please advise on how as of 22-Mar-2017 management of Office 365 Group creation via Azure AD can be implemented?
get-msolsettings is gone, you have to use Get-AzureADDirectorySetting.
Thomas
8 Replies
- Aleksey AvdeevCopper Contributor
I do have
ModuleType Version Name
---------- ------- ----
Binary 2.0.0.131 AzureAD
Manifest 3.1.0.0 Microsoft.PowerShell.Management
Manifest 3.1.0.0 Microsoft.PowerShell.Utility
Manifest 1.1.166.0 MSOnline
Binary 1.0.0.1 PackageManagement
Script 1.0.0.1 PowerShellGet
Script 1.2 PSReadline(Get-Item C:\Windows\System32\WindowsPowerShell\v1.0\Modules\MSOnline\Microsoft.Online.Administration.Automation.PSModule.dll).VersionInfo.FileVersion
1.1.166.0
I can find only this command that gives me something similar result:
Get-AzureADDirectoryRoleTemplate
- Anonymous
Made 'some' progress with the code in the URL above. I get through each line (populating the variable settings) except the last: Set-AzureADDirectorySetting -ObjectId $settings.Id -DirectorySetting $settings
I keep getting this error: Set-AzureADDirectorySetting : A parameter cannot be found that matches parameter name 'ObjectId'.
Unfortunately, 'get-help' wasn't helpful.
I installed the 'AzureADPreview' module v2.0.0.85 for this, as I was having all kinds of problems trying to get this to work.
Strange that the parameter can't be found. Any ideas what I'm doing wrong, or is this a problem with the module (preview mode...).
- Anonymous
The below URL 'might' help. It shows that in the 2.0 version of the module some functionality has been renamed, but allegedly the functionality is there. I'm still working on it. No success yet. I've got a stupid 'you must call the connect-azureAD cmdlet before calling...' error message. Not sure why my creds aren't being held in session. MSOnline module is also loaded.
Anyway, HTH.
http://drewmadelung.com/managing-office-365-group-using-azure-ad-powershell-v2/
The switchover from the old MSOL cmdlets to the new AzureAD cmdlets is a royal pain in the rear end.
While you can manage the Azure AD directory policy for groups with the V2 module, I still have not worked out how to block guest user access for an individual group with V2. I guess I have to wait for an updated module...
TR
Hey I know that link :) I updated the scripts on my post linked here to support the latest preview verison 2.0.0.85. Thanks for the heads up!
- KoflTBrass Contributor
get-msolsettings is gone, you have to use Get-AzureADDirectorySetting.
Thomas
- Anonymous
Same here. All docs refer to the preview release, but link to the GA release. I took a plunge and saved/installed V 2.0.0.71 from the repository. Going through the steps in the
'Manage Group Creation' KB I run into a problem trying to run the 'get-msolallsettingtemplate' command.That's another roadblock for me, as I guess I'm unlucky enough to have installed the most recent version. Does the command still exist, but perhaps renamed?
https://support.office.com/en-us/article/Manage-Office-365-Group-Creation-4c46c8cb-17d0-44b5-9776-005fced8e618
I'm at a dead stop here and need help.
- Joe SutherlandCopper Contributor
Stopping by to add a "me too."