Integrate Azure Powershell result into Azure workbook
I want to grab the PITR and longTermRetentionWeeks for all the sql databases in azure and display this along with some other basic values in azure workbook(for example subscription name, resource group name, db name, PITR, etc). Seems these 2 values are…
How to assign Static Private IP address to Network interface of replicated item under Azure Recovery service vault using PowerShell
Using below script to assign Virtual network and static IP to replicated item under Recovery service vault. Script successfully assigns virtual network and static IP to the replicated item as per Job status. But static IP is not reflecting on Azure…
How to Set Excel's "Find All" Feature to Search Entire Workbook by Default Instead of Current Sheet?
I'm trying to adjust Excel's "Find All" feature so that it searches the entire workbook by default, rather than only the current sheet. I’ve researched this and found that there are third-party tools and VBA macros that can accomplish this, but…
Unable to delete Azure Synapse Workspace even through Powershell force deletion
Hello Team, I am unable to delete synapse analytics even though following up post through webUI or powershell. I tried following the steps mentioned in the link below :-…
Forbidden Error When Assigning 'Contributor' Role to Service Principal in Aadiam Scope
I'm encountering an issue when trying to run the following PowerShell command: New-AzRoleAssignment -ObjectId $objectId -Scope "/providers/Microsoft.aadiam" -RoleDefinitionName 'Contributor' -ObjectType 'ServicePrincipal' I have Global Admin…
Entra exporter after the backup shows completed, nothing is in the backup folder.
I am attempting to run a script on one of our internal servers to back up our Entra tenant config using Entra exporter. I customized the solution to use MSAL and an app registration to authenticate to our tenant. I am using the Connect-MgGraph option for…
Resource "some application ID" does not exist or one of its queried reference-property objects are not present.
When I run: Get-MgApplication | FL DisplayName, AppID I get some application IDs and when I run: Get-MgApplication -ApplicationId "any application ID from above" it shows: Get-MgApplication : Resource 'xxxxxxxxxxxxxxxxxx' does not exist or one…
Need to Ps1 script for Oracle database client
I want to package the Oracle Database 19c client through PowerShell to deploy it via SCCM. Can you help me create the PowerShell script. https://www.oracle.com/database/technologies/oracle19c-windows-downloads.html
A Powershell Script to remove Microsoft Teams Classic
Anyone who can share a powershell script that will remove Microsoft Teams Classic? Current script i have is that it will detect if Teams classic is installed then it will proceed to remove. Check if Microsoft Teams Classic is installed $teamsClassic =…
Add a local IPP printer queue programmatically or with Powershell when Windows protected print mode is enabled
After enabling Windows protected print mode I am no longer able to add a printer queue programmatically using the Win32 API nor using Powershell. Windows protected print mode requires me to use the built-in driver called Microsoft IPP Class Driver. The…
Please provide windows powershell commands to import a database backup file which is on azure blob storage account to my azure SQL vm in which sql image is installed
we have a windows sql vm where we have a preinstalled sql windows 2022 image in it. Now there is a database backup file that is stored in azure blob storage now we want to import that file into this azure sql vm can we get any powershell commands for…
Changing Desktop Wallpaper Programmatically After VM Deployment on Azure
I'm using the Azure Custom Script Extension to run a PowerShell script remotely for VM creation, and it uses a workgroup/system user account for executing the script. The goal is to change the desktop background of the VM after the deployment is…
Invoke-WebRequest and UTF-8
Hi. I have a function for sending message from powershell to webex by rest api: Function WebexStringNotify ([String]$string) { # $enc = [System.Text.Encoding]::UTF8 # $dec = [System.Text.Encoding]::Unicode # $string =…
Azure Function running simple Powershell script is running out of Temp folder storage despite the cleanup steps
Hello! I am facing an exception: "Failed to create "C:\local\Temp\tmpEXO..psm1' with allocation size X because the disk was full" with my Azure Function running powershell on consumption plan. I understand that with this plan you only get…
Remote Desktop shorcut and powershell
Hi team, I'm attempting to automate the activation of the Remote Desktop Connection bar using the keyboard shorcut Ctrl + Alt + Home. I've created a Powershell script and C# code that utilises keybd_event function from user32.dll library to simulate…
Update-AzVM will not assinged a user defined identity
Hello, I am creating a set o virtual machines and need to assign them a user defined identity. This code below at the last command returns everything is ok but at the Azure portal the identity is not assigned. I still can assing it at the portal but…
Unauthorized when using Add-DistributionGroupMember to add user to Exchange managed Distribution
I followed the steps in this article https://video2.skills-academy.com/en-us/powershell/exchange/connect-exo-powershell-managed-identity?view=exchange-ps&WT.mc_id=M365-MVP-9501 to use my Azure Automation System managed identity to connect to ExchangeOnline…
Script to request and get access token from Microsoft graph API with certificate instead of client secret
I want to avoid using the standard MSGraph or AzureAD modules by using Invoke-WebRequest. There are plenty of examples on how to use a client secret for App Registration authentication with Invoke-WebRequest. The below is from Vasil Michev's excellent…
Connect-SPOService : No valid OAuth 2.0 authentication session exists ?
I have not been able to connect using the command “Connect-SPOService -Url https://company-admin.sharepoint.com” for several months now. I pick account Enter password click "Next" And get this empty "working..." window…
Asignar la Política a los Usuarios- cmdlet New-CsBatchPolicyAssignmentOperation
Ayuda con el siguiente error PS C:\Windows\system32> Connect-MicrosoftTeams Account Environment Tenant TenantId ramirez.ana-its@_____.mx AzureCloud e792aff2-d2d4-41ba-b6c4-f66f5a927247…