blog.icewolf.ch

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

My Links

Archives

Post Categories

icewolf

PowerShell

Scripting - the new way
PowerShell Module Microsoft.Online.SharePoint.PowerShell 16.0.22921.12000 released

Hi All, A few hours ago, Microsoft has released a new Version of the SharePoint Online PowerShell Module. Microsoft.Online.SharePoint.PowerShell 16.0.22921.12000 https://www.powershellgallery.com/packages/Microsoft.Online.SharePoint.PowerShell/16.0.22921.12000 Check what Module Version is installed and what's available from the PowerShell Gallery Get-InstalledModule Microsoft.Online.SharePoint.PowerShell Find-Module Microsoft.Online.SharePoint.PowerShell Uninstall the old Module and install the new Version Uninstall-Module Microsoft.Online.SharePoint.PowerShell Install-Module Microsoft.Online.SharePoint.PowerShell Get-InstalledModule Microsoft.Online.SharePoint.PowerShell Regards Andres Bohren

posted @ Friday, September 30, 2022 8:40 AM | Filed Under [ PowerShell ]

Microsoft.Graph PowerShell Module 1.12.2 released

Hi All, A few hours ago, Microsoft has released a new Version of the Microsoft.Graph PowerShell Module. Apparently it covers the latest API version and some minor fixes. Microsoft.Graph 1.12.2 https://www.powershellgallery.com/packages/Microsoft.Graph/1.12.2 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) Let's check Get-InstalledModule Microsoft.Graph Get-InstalledModule Microsoft.Graph* Regards Andres Bohren

posted @ Friday, September 30, 2022 8:28 AM | Filed Under [ PowerShell ]

MSIdentityTools PowerShell Module 2.0.21 released

Hi All, Microsoft has released another Version of theyr MSIdentityTools PowerShell Module to the Powershell Gallery. MSIdentityTools 2.0.21 https://www.powershellgallery.com/packages/MSIdentityTools/2.0.21 Uninstall the old version of the PowerShell Module and install the newest one Get-InstalledModule MSIdentityTools Find-Module MSIdentityTools Uninstall-Module MSIdentityTools Install-Module MSIdentityTools To see what commands are available use the following command Get-Command -Module MSIdentityTools It's best to use PowerShell 7 with that Module Get-MsIdAuthorityUri Regards Andres Bohren

posted @ Wednesday, September 28, 2022 8:58 AM | Filed Under [ PowerShell ]

Microsoft.Graph PowerShell Module 1.12.0 released

Hi All, Microsoft.Graph 1.12.0 https://www.powershellgallery.com/packages/Microsoft.Graph/1.12.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 #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) It takes a while until all Modules are installed. Wait until "Cleanup finished" is shown Let's check Get-InstalledModule Microsoft.Graph Get-InstalledModule Microsoft.Graph* Regards Andres Bohren

posted @ Thursday, September 22, 2022 7:47 AM | Filed Under [ PowerShell ]

MSIdentityTools PowerShell Module v2.0.20 released

Hi All, Microsoft has released the Version 2.0.20 of the MSIdentityTools PowerShell Module. MSIdentityTools 2.0.20 https://www.powershellgallery.com/packages/MSIdentityTools/2.0.20 Check installed PowerShell Module Version and what is available in the PowerShell Gallery (Needs to run "As Administrator") Get-InstalledModule MSIdentityTools Find-Module MSIdentityTools Uninstall the old PowerShell Module and install the new one Uninstall-Module MSIdentityTools Install-Module MSIdentityTools I would recommend to use PowerShell 7 with this Module Get-Command -Module MSIdentityTools Let's use this command. Gives you the same Result as in my Blog where i explained how it's calculated How AAD Connect calculates ImmutableId https://blog.icewolf.ch/archive/2020/07/18/how-aad-connect-calculates-immutableid.aspx ConvertFrom-MsIdAzureAdImmutableId -InputObject <ImmutableId> Regards Andres Bohren

posted @ Thursday, September 15, 2022 7:58 AM | Filed Under [ PowerShell ]

ExchangeOnlineManagement 2.0.6-Preview8 is available

Hi All, Microsoft has released a new Preview of theyr ExchangeOnlineManagemen PowerShell Module ExchangeOnlineManagement 2.0.6-Preview8 https://www.powershellgallery.com/packages/ExchangeOnlineManagement/2.0.6-Preview8 v2.0.6-Preview8 :    1. Support for system-assigned and user-assigned Managed Identity from Azure Functions.        - The -ManagedIdentity switch parameter, and the -Organization parameters need to be provided to indicate that a managed identity should be used. This will by default attempt to use a system-assigned managed identity.        - For specifying a user-assigned managed identity, in addition to the parameters specified above, the AppID of the service principal corresponding to the user-assigned identity needs to be passed to the -ManagedIdentityAccountId.    2. Support for formatted output data added.    - By default, the output now will be...

posted @ Saturday, September 10, 2022 12:16 PM | Filed Under [ Exchange PowerShell ]

Azure PowerShell Module Az 8.3.0 released

Hi All, Yesterday Microsoft has released the Version 8.3.0 from the AZ PowerShell Module Az 8.3.0 https://www.powershellgallery.com/packages/AZ/8.3.0 Check your current installed Module and what is available on PowerShell Gallery Get-InstalledModule AZ Find-Module AZ I've published a Script in my GitHub Repo to uninstall the old Modules and install the new Modules https://github.com/BohrenAn/GitHub_PowerShellScripts/blob/main/AzureAD/Microsoft.Graph_HowToStart.ps1 Or you can run the Script below to directly execute that Script #Run Script directly from GitHub $ScriptFromGitHub = Invoke-WebRequest "https://raw.githubusercontent.com/BohrenAn/GitHub_PowerShellScripts/main/Azure/Cleanup-AZModules.ps1" Invoke-Expression $($ScriptFromGitHub.Content) Check the Modules Get-InstalledModule AZ Get-InstalledModule AZ.* Regards Andres Bohren

posted @ Wednesday, September 7, 2022 9:02 AM | Filed Under [ PowerShell Azure ]

MSIdentityTools PowerShell Module v2.0.19 released

Hi All, Microsoft has released the Version 2.0.19 of the MSIdentityTools PowerShell Module. MSIdentityTools 2.0.19 https://www.powershellgallery.com/packages/MSIdentityTools/2.0.19 Check installed PowerShell Module Version and what is available in the PowerShell Gallery (Needs to run "As Administrator") Get-InstalledModule MSIdentityTools Find-Module MSIdentityTools Uninstall the old PowerShell Module and install the new one Uninstall-Module MSIdentityTools Install-Module MSIdentityTools Get-InstalledModule MSIdentityTools I would recommend to use PowerShell 7 with this Module Connect-MgGraph -Scopes Application.Read.All Get-MsIdApplicationIdByAppId -AppId b1fe3302-d057-4fe3-84ac-c507ecdb6d0d Regards Andres Bohren

posted @ Wednesday, September 7, 2022 12:22 AM | Filed Under [ PowerShell ]

MicrosoftTeams PowerShell Module 4.7.0 released as GA

Hi All, A few hours ago, Microsoft has released the MicrosoftTeams PowerShell Module 4.7.0 as GA (Generally Available) in the PowerShell Gallery. MicrosoftTeams 4.7.0 https://www.powershellgallery.com/packages/MicrosoftTeams/4.7.0 Release Notes https://docs.microsoft.com/en-us/MicrosoftTeams/teams-powershell-release-notes Find the PowerShell Module in the PowerShell Gallery and install it Find-Module MicrosoftTeams Install-Module MicrosoftTeams Get-InstalledModule MicrosoftTeams Uninstall the old Module and install the new Module Uninstall-Module MicrosoftTeams Install-Module MicrosoftTeams Get-InstalledModule MicrosoftTeams Testing Connect-MicrosoftTeams Get-Team Get-CsOnlineUser -Identity a.bohren@icewolf.ch | fl *Ent*,*host*,*voice*, *line* Regards Andres Bohren

posted @ Friday, September 2, 2022 10:16 AM | Filed Under [ PowerShell MicrosoftTeams ]

Switch Open Data .ch and .li Domains

Hi All, Switch the Swiss Registrar for .ch and .li Domains has published the Domains on a Open Data Policy. You can download the top 1'000 Domains or use a Zone Transfer Switch Open Data https://www.switch.ch/open-data/#tab-c5442a19-67cf-11e8-9cf6-5254009dc73c-3 You need to create the TSIG Key # filename ch_zonedata.keykey tsig-zonedata-ch-public-21-01 { algorithm hmac-sha512; secret "stZwEGApYumtXkh73qMLPqfbIDozWKZLkqRvcjKSpRnsor6A6MxixRL6C2HeSVBQNfMW4wer+qjS0ZSfiWiJ3Q=="; }; then use dig to initiate the Zone Transfer dig -k ch_zonedata.key @zonedata.switch.ch +noall +answer +noidnout +onesoa AXFR ch. > ch.txt Looks like this I have used psftp.exe to transfer the ch.txt File to my Computer open 172.21.175.80 cd /var/tmp lcd E:\ get ch.txt The Zone File looks like "TAB" separated. But is not consistent...

posted @ Tuesday, August 30, 2022 9:01 PM | Filed Under [ Web PowerShell SQL ]

Full PowerShell Archive

Powered by:
Powered By Subtext Powered By ASP.NET