2,584 questions with PowerShell-related tags

Sort by: Updated
2 answers

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…

Azure SQL Database
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,584 questions
asked 2023-05-22T23:21:41.7833333+00:00
William Li 0 Reputation points
commented 2024-11-07T11:38:56.54+00:00
Anil Kumar 0 Reputation points
0 answers

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…

Azure Virtual Network
Azure Virtual Network
An Azure networking service that is used to provision private networks and optionally to connect to on-premises datacenters.
2,504 questions
Azure Site Recovery
Azure Site Recovery
An Azure native disaster recovery service. Previously known as Microsoft Azure Hyper-V Recovery Manager.
718 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,584 questions
asked 2024-10-29T08:52:04.4633333+00:00
Vinmay Parkhi 0 Reputation points
commented 2024-11-07T11:27:08.51+00:00
Vinmay Parkhi 0 Reputation points
0 answers

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…

Office
Office
A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.
1,706 questions
Excel
Excel
A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
1,960 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,584 questions
asked 2024-11-07T05:03:57.15+00:00
Researcher 6 Reputation points
commented 2024-11-07T07:55:01.5766667+00:00
Jiajing Hua-MFST 10,645 Reputation points Microsoft Vendor
0 answers

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 :-…

Azure Synapse Analytics
Azure Synapse Analytics
An Azure analytics service that brings together data integration, enterprise data warehousing, and big data analytics. Previously known as Azure SQL Data Warehouse.
4,992 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,584 questions
asked 2024-11-06T21:31:49.4833333+00:00
vaddi_dataengineer 0 Reputation points
edited a comment 2024-11-07T04:08:57.8133333+00:00
vaddi_dataengineer 0 Reputation points
2 answers

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…

Azure Role-based access control
Azure Role-based access control
An Azure service that provides fine-grained access management for Azure resources, enabling you to grant users only the rights they need to perform their jobs.
830 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,584 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
22,086 questions
asked 2024-11-06T08:56:23.8433333+00:00
Nadia Hansen 5 Reputation points
commented 2024-11-07T03:59:17.1433333+00:00
Givary-MSFT 33,081 Reputation points Microsoft Employee
1 answer

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…

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,259 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,584 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
22,086 questions
asked 2024-10-22T13:22:09.72+00:00
John Magin 0 Reputation points
commented 2024-11-07T01:26:24.34+00:00
Goutam Pratti 265 Reputation points Microsoft Vendor
1 answer

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…

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,584 questions
Microsoft Entra
asked 2024-10-31T04:03:51.1866667+00:00
Michael Chong 0 Reputation points
commented 2024-11-07T01:25:50.98+00:00
Goutam Pratti 265 Reputation points Microsoft Vendor
2 answers

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

Microsoft System Center
Microsoft System Center
A suite of Microsoft systems management products that offer solutions for managing datacenter resources, private clouds, and client devices.
1,011 questions
Microsoft Intune
Microsoft Intune
A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.
5,193 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,584 questions
asked 2024-10-27T19:22:09.4266667+00:00
TechUST 516 Reputation points
edited a comment 2024-11-06T23:13:13.3+00:00
TechUST 516 Reputation points
3 answers One of the answers was accepted by the question author.

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 =…

Microsoft Teams
Microsoft Teams
A Microsoft customizable chat-based workspace.
10,304 questions
Microsoft Teams Development
Microsoft Teams Development
Microsoft Teams: A Microsoft customizable chat-based workspace.Development: The process of researching, productizing, and refining new or existing technologies.
3,334 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,584 questions
asked 2024-05-20T05:45:02.89+00:00
Bob Pendon 20 Reputation points
commented 2024-11-06T23:05:29.1133333+00:00
Daniel Rau 0 Reputation points
3 answers

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…

Windows Server Printing
Windows Server Printing
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.Printing: Printer centralized deployment and management, scan and fax resources management, and document services
688 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,584 questions
asked 2024-11-01T16:27:40.0233333+00:00
Jan 5 Reputation points
answered 2024-11-06T14:30:05.9233333+00:00
Göth Radim 0 Reputation points
1 answer

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…

Azure Blob Storage
Azure Blob Storage
An Azure service that stores unstructured data in the cloud as blobs.
2,918 questions
SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
13,979 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,584 questions
asked 2024-11-04T11:56:59.7933333+00:00
Aravapalli Ojeswi 0 Reputation points
commented 2024-11-06T12:27:55.2333333+00:00
ShaktiSingh-MSFT 15,421 Reputation points
0 answers

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…

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,990 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,584 questions
asked 2024-11-06T12:05:07.6266667+00:00
Akshay Mane 0 Reputation points
3 answers

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 =…

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,584 questions
asked 2023-03-16T16:51:25.44+00:00
Konstantin F 11 Reputation points
commented 2024-11-06T11:38:55.37+00:00
msaiters 0 Reputation points
1 answer

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…

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,093 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,584 questions
asked 2024-11-04T09:21:54.9266667+00:00
adm_braskic 0 Reputation points
edited a comment 2024-11-06T10:40:06.6633333+00:00
adm_braskic 0 Reputation points
0 answers

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…

Remote Desktop
Remote Desktop
A Microsoft app that connects remotely to computers and to virtual apps and desktops.
4,599 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,584 questions
asked 2024-11-05T20:20:08.3466667+00:00
Yunho Kwon 0 Reputation points
edited a comment 2024-11-06T00:59:14.33+00:00
Yunho Kwon 0 Reputation points
2 answers

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…

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
39,692 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,584 questions
asked 2024-11-02T12:38:59.3966667+00:00
Jan Vávra 321 Reputation points
answered 2024-11-05T12:58:12.4733333+00:00
Jan Vávra 321 Reputation points
1 answer

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…

Microsoft Exchange Online Management
Microsoft Exchange Online Management
Microsoft Exchange Online: A Microsoft email and calendaring hosted service.Management: The act or process of organizing, handling, directing or controlling something.
4,576 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,584 questions
asked 2024-10-17T17:37:22.63+00:00
Shawn Imholte 20 Reputation points
edited the question 2024-11-05T08:18:50.9833333+00:00
Givary-MSFT 33,081 Reputation points Microsoft Employee
3 answers

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…

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,259 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,584 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
22,086 questions
asked 2024-10-31T19:08:22.47+00:00
bezell-6128 21 Reputation points
commented 2024-11-05T08:03:52.8666667+00:00
Givary-MSFT 33,081 Reputation points Microsoft Employee
1 answer One of the answers was accepted by the question author.

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…

SharePoint Development
SharePoint Development
SharePoint: A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.Development: The process of researching, productizing, and refining new or existing technologies.
3,038 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,584 questions
asked 2024-11-01T12:21:58.72+00:00
Matthias 20 Reputation points
commented 2024-11-05T06:51:02.6966667+00:00
Yanli Jiang - MSFT 26,766 Reputation points Microsoft Vendor
0 answers

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…

Microsoft Teams
Microsoft Teams
A Microsoft customizable chat-based workspace.
10,304 questions
Microsoft Teams Development
Microsoft Teams Development
Microsoft Teams: A Microsoft customizable chat-based workspace.Development: The process of researching, productizing, and refining new or existing technologies.
3,334 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,584 questions
asked 2024-11-04T20:54:00.16+00:00
ANA BELEN RAMIREZ ESPINOSA 0 Reputation points
commented 2024-11-05T05:38:23.0333333+00:00
Prasad-MSFT 6,876 Reputation points Microsoft Vendor