blog.icewolf.ch

Let's talk about IT!
posts - 2290, comments - 295, trackbacks - 0

My Links

Archives

Post Categories

icewolf

PowerShell

Scripting - the new way
Microsoft.Graph PowerShell Module 1.24.0 released

Hi All, Yesterday Microsoft has released a  new Version of Microsoft.Graph PowerShell Modules to the PowerShell Gallery. Microsoft.Graph 1.24.0 https://www.powershellgallery.com/packages/Microsoft.Graph/1.24.0 Release Notes https://github.com/microsoftgraph/msgraph-sdk-powershell/releases Let's check the installed Version and what's available on the PowerShell Gallery Get-InstalledModule Microsoft.Graph Find-Module Microsoft.Graph To install the newest Version of the PowerShell Modules and also uninstalling the old Versions, you can use my GitHub Script. It takes a while until all Modules are installed. Wait until "Cleanup finished" is shown. #Run Script directly from GitHub $ScriptFromGitHub = Invoke-WebRequest "https://raw.githubusercontent.com/BohrenAn/GitHub_PowerShellScripts/main/ExchangeOnline/GraphAPI/Cleanup-GraphModules.ps1" Invoke-Expression $($ScriptFromGitHub.Content) To list the Modules you can use the following Command Get-Module Microsoft.Graph* -ListAvailable Let's use one of the PowerShell Modules Connect-MgGraph -Scopes 'Group.Read.All' Get-MgGroup -Search "DisplayName:AAD-IcewolfUsers" -ConsistencyLevel eventual Get-MgGroup -Search "DisplayName:AAD-IcewolfUsers" -ConsistencyLevel...

posted @ Friday, March 24, 2023 8:22 AM | Filed Under [ PowerShell ]

Azure PowerShell Module Az 9.5.0 released

Hi All, Just a few Hours ago, a new Version of the AZ PowerShell Module has been released to PowerShell Gallery. Az 9.5.0 https://www.powershellgallery.com/packages/az/9.5.0 Release Notes https://learn.microsoft.com/en-us/powershell/azure/release-notes-azureps Show Installed AZ Module and what's available in the PowerShell Gallery Get-InstalledModule AZ Find-Module AZ #Run Script directly from GitHub $ScriptFromGitHub = Invoke-WebRequest "https://raw.githubusercontent.com/BohrenAn/GitHub_PowerShellScripts/main/Azure/Cleanup-AZModules.ps1" Invoke-Expression $($ScriptFromGitHub.Content) The AZ Module is just a Wrapper Module for all AZ* Modules Get-InstalledModule AZ* Regards Andres Bohren

posted @ Thursday, March 9, 2023 8:07 AM | Filed Under [ PowerShell Azure ]

Microsoft.Graph PowerShell Module 1.23.0 released

Hi All, Somehow i missed, that already yesterday Microsoft has released a new Version of Microsoft.Graph PowerShell Modules to the PowerShell Gallery. Microsoft.Graph 1.23.0 https://www.powershellgallery.com/packages/Microsoft.Graph/1.23.0 Release Notes (Not yet listed there) https://github.com/microsoftgraph/msgraph-sdk-powershell/releases Let's check the installed Version and what's available on the PowerShell Gallery Get-InstalledModule Microsoft.Graph Find-Module Microsoft.Graph To install the newest Version of the PowerShell Modules and also uninstalling the old Versions, you can use my GitHub Script. It takes a while until all Modules are installed. Wait until "Cleanup finished" is shown. #Run Script directly from GitHub $ScriptFromGitHub = Invoke-WebRequest "https://raw.githubusercontent.com/BohrenAn/GitHub_PowerShellScripts/main/ExchangeOnline/GraphAPI/Cleanup-GraphModules.ps1" Invoke-Expression $($ScriptFromGitHub.Content) To list the Modules you can use the following Command Get-Module Microsoft.Graph* -ListAvailable Let's use one of the PowerShell Modules Connect-MgGraph -Scopes...

posted @ Sunday, March 5, 2023 1:18 PM | Filed Under [ PowerShell ]

MicrosoftTeams PowerShell Module 5.0.0 released as GA

Hi All, Just a few Hours ago, Microsoft has released the MicrosoftTeams PowerShell Module 5.0.0 to the PowerShell Gallery. MicrosoftTeams 5.0.0 https://www.powershellgallery.com/packages/MicrosoftTeams/5.0.0 Microsoft Teams PowerShell Release Notes https://learn.microsoft.com/en-us/MicrosoftTeams/teams-powershell-release-notes Check installed Module and what's available in the PowerShell Gallery Get-InstalledModule MicrosoftTeams -AllVersions Find-Module MicrosoftTeams Uninstall the old Module and install the newest Module Uninstall-Module MicrosoftTeams Uninstall-Module MicrosoftTeams Install-Module MicrosoftTeams Testing Connect-MicrosoftTeams Get-CsOnlineUser -Identity <Identity> Some new Filering Get-CsOnlineUser -Filter {City -eq 'Bern'} | ft UserPrincipalName Get-CsOnlineUser -Filter {Company -like 'Ice*'} | ft UserPrincipalName Get-CsOnlineUser -Filter {FeatureTypes -contains "PhoneSystem"} | ft UserPrincipalName Regards Andres Bohren

posted @ Thursday, March 2, 2023 6:26 PM | Filed Under [ PowerShell MicrosoftTeams ]

PowerShell 7.3.3 released

Hi All, Today i realized that there is a new version of PowerShell 7. v7.3.3 Release of PowerShell https://github.com/PowerShell/PowerShell/releases/tag/v7.3.3 I have downloaded the x64 *.msi and these are the Screenshots from the Installation. I always enable "Enable PowerShell remoting" wich is not enabled by default. Let's start and see pwsh Get-Host Regards Andres Bohren

posted @ Wednesday, March 1, 2023 10:28 AM | Filed Under [ PowerShell ]

PowerShell Module Microsoft.Online.SharePoint.PowerShell 16.0.23408.12000 released

Hi All, Yesterday, Microsoft has released the Microsoft.Online.SharePoint.PowerShell 16.0.23408.12000. PowerShell Module Microsoft.Online.SharePoint.PowerShell 16.0.23408.12000 https://www.powershellgallery.com/packages/Microsoft.Online.SharePoint.PowerShell/16.0.23408.12000 Check the installed Version and what is available from the PowerShell Gallery Get-InstalledModule Microsoft.Online.SharePoint.PowerShell Find-Module Microsoft.Online.SharePoint.PowerShell Uninstall the old Version and install the new Version of the Module Uninstall-Module Microsoft.Online.SharePoint.PowerShell Install-Module Microsoft.Online.SharePoint.PowerShell Get-InstalledModule Microsoft.Online.SharePoint.PowerShell List the Commands of the Module Get-Command -Module Microsoft.Online.SharePoint.PowerShell Connect to Sharepoint Online Connect-SPOService -Url https://icewolfch-admin.sharepoint.com Get some Settings Get-SPOTenant | fl Regards Andres Bohren

posted @ Sunday, February 26, 2023 11:09 AM | Filed Under [ PowerShell ]

MSIdentityTools PowerShell Module v2.0.42 released

Hi All, Just a few Hours ago, Microsoft has released a new version of the  MSIdentityTools PowerShell Module. MSIdentityTools 2.0.42 https://www.powershellgallery.com/packages/MSIdentityTools/2.0.42 Check what Version of the Module is installed and what's available in the PowerShell Gallery Get-InstalledModule MSIdentityTools Find-Module MSIdentityTools Uninstall the old version of the PowerShell Module and install the newest one Uninstall-Module MSIdentityTools Install-Module MSIdentityTools Get-InstalledModule MSIdentityTools To see what commands are available use the following command Get-Command -Module MSIdentityTools To resolve an AppId to ObjectId you can use the Command below Connect-MgGraph Get-MsIdApplicationIdByAppId -AppId cd32481c-6da8-47a1-b55b-742d2c3af888 Regards Andres Bohren

posted @ Friday, February 24, 2023 8:14 AM | Filed Under [ PowerShell ]

Microsoft.Graph PowerShell Module 1.22.0 released

Hi All, Just a few Hours ago, Microsoft has released Microsoft.Graph PowerShell Module 1.22.0. Microsoft.Graph 1.22.0 https://www.powershellgallery.com/packages/Microsoft.Graph/1.22.0 Release Notes https://github.com/microsoftgraph/msgraph-sdk-powershell/releases Let's check the installed Version and what's available on the PowerShell Gallery Get-InstalledModule Microsoft.Graph Find-Module Microsoft.Graph To install the newest Version of the PowerShell Modules and also uninstalling the old Versions, you can use my GitHub Script. It takes a while until all Modules are installed. Wait until "Cleanup finished" is shown. #Run Script directly from GitHub $ScriptFromGitHub = Invoke-WebRequest "https://raw.githubusercontent.com/BohrenAn/GitHub_PowerShellScripts/main/ExchangeOnline/GraphAPI/Cleanup-GraphModules.ps1" Invoke-Expression $($ScriptFromGitHub.Content) To list the Modules you can use the following Command Get-Module Microsoft.Graph* -ListAvailable Regards Andres Bohren

posted @ Thursday, February 16, 2023 9:33 AM | Filed Under [ PowerShell ]

Directory Synchronization Features via Graph API

Hi All, Today i had an interesting case with AzureAD Connect Synchronization from Active Directory to Azure Active Directory. The Customer is in the middle of a reorganization and was changing the Domain. I've added the new UPN to the UPN Suffixes in Azure AD (domain.msc > Properties) We addet the new Domain to the M365 Tenant Then i've changed the UPN Suffix of a Testuser. But the UPN did not change in AzureAD after the AAD Connect Sync Cycle. I've never experienced that. And in my Tenant it works finde. After a while Googling i found out, that this Feature can be configured with the MSOnline...

posted @ Thursday, February 9, 2023 8:55 PM | Filed Under [ PowerShell Azure ]

Azure PowerShell Module Az 9.4.0 released

Hi All, Yesterday the new Version of the AZ PowerShell Module 9.4.0 has been released to PowerShell Gallery. Az 9.4.0 https://www.powershellgallery.com/packages/AZ/9.4.0 Azure PowerShell release notes https://learn.microsoft.com/en-us/powershell/azure/release-notes-azureps?view=azps-9.4.0 Show Installed AZ Module and what's available in the PowerShell Gallery Get-InstalledModule AZ Find-Module AZ To uninstall all the old Modules and install the new Modules i have written a PowerShell Script that is published at my GitHub Repo. #Run Script directly from GitHub $ScriptFromGitHub = Invoke-WebRequest "https://raw.githubusercontent.com/BohrenAn/GitHub_PowerShellScripts/main/Azure/Cleanup-AZModules.ps1" Invoke-Expression $($ScriptFromGitHub.Content) The AZ Module is just a Wrapper Module for all AZ* Modules Get-InstalledModule AZ* Regards Andres Bohren

posted @ Wednesday, February 8, 2023 1:50 PM | Filed Under [ PowerShell Azure ]

Full PowerShell Archive

Powered by:
Powered By Subtext Powered By ASP.NET