unable to connect Azure
Hi All I use the below syntax to connect to Azure Powershell, but today i am unable to connect to azure powershell. it prompts me to enter tenant and subscription number. I have 1500 subscriptions, how can i know the subscription number for my…
How to export managed metadata from subfolders and documents to csv
I have a document library and at the top level we have a number of folders for each year i.e. 2024, 2023, 2022, 2021 etc. Against these yearly folders we have a Content Type of "Yearly Folder". Under each yearly folder we have a huge list of…
While getting owner of distribution group it returns wrong result
When I am trying to get distribution group with 1 owners from Distribution Group Name : Donotedit it has one owner with Name as Aasim_anwar2 but when I get using Get-Recipient -Identity "aasim_anwar2" | Select-Object…
How to delete DPM Backups from the Azure Service Recovery Vault
Hi, i have a OnPrem DPM Server which is connected with a Azure Recovery Service Vault. From the DPM i backup some OnPrem Servers to the Azure Recovery Service Vault. Currently i see some duplicated entrys and some entrys from old servers which no longer…
How do you assign the sensitivity label in the creation of a new team with 'New-MgTeam'?
Hi, We are currently trying to automate requests we get for the creation of a new Team. In this creation, we want to be able to assign a certain sensitivity label. In PowerShell, we've got it to generally work with basic information, but we can't…
Requesting a Cloud Shell.Failed to provision a Cloud Shell: {"code":"TenantDisabled","message":"Cloud Shell has been disabled in directory 'da0749be-51dd-419e-bbbd-6e8dde7db7db'."}
can someone help me with the below issue in Azure when I try to open cloudshell Requesting a Cloud Shell.Failed to provision a Cloud Shell: {"code":"TenantDisabled","message":"Cloud Shell has been disabled in directory…
Azure time trigger PowerShell function manual vs schedule
I have this Time Trigger Function that runs PowerShell code to fetch Azure storage accounts used capacity metrics based on the tags. The code works fine when I trigger the job manually and gives me the accurate details but fetches 0 value from all the…
Unable to create Azure Custom Role using JSON and the PoweShell New-AzRoleDefinition ?
When I execute the below PowerShell script to create a custom Azure Role based on the specific JSON content below. Script: $paramNewAzRoleDefinition = @{ InputFile = C:\Custom.JSON Verbose = $true Debug = $true } New-AzRoleDefinition…
Is it possible to create tenant level allow/block in Microsoft 365 via Graph API?
There is a method via Powershell that requires the Exchange.Manage permission and Exchange Administrator assigned role on a Service Principal. This method requires to connect to Exchange Online first and then running the New-TenantAllowBlockListItems…
Win32_TSLicenseReport not generating report when AD has Japanese usernames
$fileName = (Invoke-WmiMethod Win32_TSLicenseReport -Name GenerateReportEx).FileName $fileEntries = (Get-WmiObject Win32_TSLicenseReport | Where-Object FileName -eq $fileName).FetchReportEntries(0, 0).ReportEntries These commands succeed when I have…
How can I check if my OnPremise Exchange Server is still sending email as relay to the outside world?
How can I verify and check if my Exchange Servers are still sending emails to the external world? Because from this page I cannot see any list of servers: https://admin.exchange.microsoft.com/#/reports/onpremunpatchedserverdetails
Facing issue while creating PIM request using managed identity using graph sdk
Hi Team, I am using managed identity-based authentication to create a PIM role using power shell script. Below is the code snippet used. function Get-ManagedIdentityToken { param ( [string]$resource = "https://graph.microsoft.com" …
Last login details
Hi All, I am running an Exchange 2016 Hybrid environment in my test Azure Tenant. I create remote mailboxes from on-premises and have 150 Microsoft 365 E5 licenses. My users test M365 features and integrations in this tenant. Since I only have 150…
Silently connect to azure as a user in PowerShell using the authenticated account connected to windows
In my corporate device, which has Seamless SSO and PHS enabled, when I go to portal.azure.com, I can sign-in directly without entering my credentials. I want to know if I can replicate this when connecting to azure using Connect-AzAccount cmdlet in…
High CPU usage for vmmem
Hi, I have experienced high CPU usage for Vmmem frequently (~every 2days) and the only solution at the moment is simply restart my machine. It is understood that is related to WSL and I do have a Docker image running on Ubuntu on Windows. However it is…
Exporting Power Platform environment as CSV or Spreadsheet file?
How can I export the list of Power Platform environments shown in this page: https://admin.powerplatform.microsoft.com/environments as .CSV file ? I need to perform an audit of thousands of unused environments in my tenant.
Disable Auto-mapping
Is there a way I can run a PS script to auto disable automapping for current shared mailboxes, and when new ones are created automapping will be automatically turned off?
How do I execute "Test-ComputerSecureChannel"
Device: Surface - Windows 8 Pro OS: Windows 11 Note: I am not logged into the computer (that is kind of the problem). I am running command prompt from the Windows recovery environment which only gives me access to x:\ I believe i am trying to run a…
After 1/2 year API 403 error
I have a PowerShell script that runs daily and creates a folder in the employee contact lists via token (request) and writes the company's contacts in it so that everyone has them on their cell phone. The next day, this folder is deleted and the contacts…
SCCM + PowerShell - Detect Methods
Hi I trying to make Detect Method with PowerShell: I have done a Application Information New-CMApplication ` -Name "Adobe Acobat Reader" ` -Description "Adode Acrobe Reader 64 bits" ` -Publisher Adobe -SoftwareVersion…