2,271 questions with PowerShell-related tags

Sort by: Updated
0 answers

Azure Synapse LinkConnection template json

We have created a LinkConnection in Azure synapse, the source database is MS SQL Server and target database is Dedicated SQL Pool. We are trying to create powershell script to automate the creation of this LinkConnection for each environment - Testing,…

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,621 questions
Azure Automation
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
1,173 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,271 questions
asked 2024-07-03T19:21:58.6166667+00:00
Girish Prabhudesai 21 Reputation points
commented 2024-07-04T13:48:36.0433333+00:00
Girish Prabhudesai 21 Reputation points
0 answers

How to create a PS/CLI script for file share capacity alert with Action group

I want to create an alert for file capacity of files and I need an action group as well. Problem is that the storage account has 90 files and i need for each fileshare 1 Alert. I want to try using a script to avoid taking a lot of time doing it…

Azure Monitor
Azure Monitor
An Azure service that is used to collect, analyze, and act on telemetry data from Azure and on-premises environments.
2,967 questions
.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
326 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,271 questions
asked 2024-07-04T10:14:43.54+00:00
Sutheswaran, Suwhathi 70 Reputation points
edited the question 2024-07-04T11:30:13.76+00:00
Sutheswaran, Suwhathi 70 Reputation points
0 answers

backup azure APIM through power shell gives error forbidden.

Hi Team, we are trying to use service backup and restore in Azure API Management using PowerShell, just following doc gives error: Backup-AzApiManagement : Operation returned an invalid status code 'Forbidden'. I tried to use storage key based and user…

Azure API Management
Azure API Management
An Azure service that provides a hybrid, multi-cloud management platform for APIs.
1,905 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,271 questions
asked 2024-03-28T12:15:27.6333333+00:00
VANI GUNDRAJU, KRUPA (EXTERN) 0 Reputation points
edited a comment 2024-07-04T09:53:26.1966667+00:00
Muhammed Meethal 0 Reputation points
0 answers

Issue obtaining access token for Azure Video Indexer using PowerShell

Hello, I'm trying to obtain an access token for Azure Video Indexer using PowerShell. Here is what I've done so far: Created a Video Indexer account: Subscription ID: 06a3bdd8-f407-4903-9161-f7101c66d9e1 Account ID:…

Azure AI Video Indexer
Azure AI Video Indexer
An Azure video analytics service that uses AI to extract actionable insights from stored videos.
68 questions
Azure API Management
Azure API Management
An Azure service that provides a hybrid, multi-cloud management platform for APIs.
1,905 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,271 questions
asked 2024-07-03T17:23:33.82+00:00
Pedro Briceño 0 Reputation points
edited the question 2024-07-04T08:31:39.6033333+00:00
navba-MSFT 19,650 Reputation points Microsoft Employee
2 answers

Exchange admin center bugs for manage email forwarding

I have set up the email forwarding in the Exchange Admin Center, where it is mentioned that "The mailbox owner will not be able to view and change this forwarding address." But I found that user logging into their mailbox can see which…

Microsoft Exchange Online
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,271 questions
asked 2024-07-02T01:55:16.78+00:00
STKM2024 0 Reputation points
commented 2024-07-04T07:49:25.7566667+00:00
Xintao Qiao-MSFT 795 Reputation points Microsoft Vendor
4 answers

How to change drive letters (was: Can I use Visual C to program system tools)

I need to be able to write a tool that can change the drive letter in my application. When I insert a usb hard drive the program recognises the volume it should be with the drive letter in [] brackets in the label. When I insert the usb drive sometimes…

Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,496 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
8,778 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,271 questions
asked 2024-07-01T22:19:00.44+00:00
Terry Foster 0 Reputation points
commented 2024-07-04T07:09:28.9433333+00:00
Xiaopo Yang - MSFT 12,151 Reputation points Microsoft Vendor
1 answer

"Bandwidth Constraints for 12,000 Devices During .OST File Creation"

Hi Team, how can we implement bandwidth constraints for 12,000 devices when new .ost files are created and begin downloading emails?Also, Is there a way to use old .ost file with new outlook profile created in xyz.com domain outlook by deleting the new…

Windows Network
Windows Network
Windows: A family of Microsoft operating systems that run across personal computers, tablets, laptops, phones, internet of things devices, self-contained mixed reality headsets, large collaboration screens, and other devices.Network: A group of devices that communicate either wirelessly or via a physical connection.
696 questions
Outlook Management
Outlook Management
Outlook: A family of Microsoft email and calendar products.Management: The act or process of organizing, handling, directing or controlling something.
5,036 questions
Microsoft Exchange Hybrid Management
Microsoft Exchange Hybrid Management
Microsoft Exchange: Microsoft messaging and collaboration software.Hybrid Management: Organizing, handling, directing or controlling hybrid deployments.
1,974 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
8,778 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,271 questions
asked 2024-06-28T19:07:32.29+00:00
Prabhjot Singh 190 Reputation points
commented 2024-07-04T06:26:15.28+00:00
SokiGuo-MSFT 25,271 Reputation points Microsoft Vendor
0 answers

Powershell on Mac/Linux - New-PSSession to Exchange Server -> MI_RESULT_FAILED Error

How can the following error be resolved when trying to connect to an Exchange server via PowerShell from a Mac/Linux machine? "New-PSSession: [<exchangeserver.domain>] Connecting to remote server <exchangeserve.domain> failed with the…

Exchange Server
Exchange Server
A family of Microsoft client/server messaging and collaboration software.
1,169 questions
Exchange Server Management
Exchange Server Management
Exchange Server: A family of Microsoft client/server messaging and collaboration software.Management: The act or process of organizing, handling, directing or controlling something.
7,465 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,271 questions
asked 2024-07-03T08:53:54.16+00:00
ITS ByteSec 0 Reputation points
commented 2024-07-04T05:45:50.6766667+00:00
Bruce Jing-MSFT 2,070 Reputation points Microsoft Vendor
2 answers One of the answers was accepted by the question author.

Migration from OneDrive Business folder to Sharepoint documents while maintaining permissions

Hello, I have a OneDrive Business account (i.e. John Snow) with 35GB data (i.e. XYZ folder, in this folder a lot of folders and files). Currently files and folders are shared to other people, certain permissions are granted. Now, I want to migrate from…

OneDrive
OneDrive
A Microsoft file hosting and synchronization service.
937 questions
SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
10,147 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,271 questions
asked 2024-07-02T10:52:22.53+00:00
MRobert-5335 20 Reputation points
accepted 2024-07-04T05:04:36.5166667+00:00
MRobert-5335 20 Reputation points
0 answers

How can an AES Encrypted StreamWriter Send data before the connection closes?

Given this Reader/Server side code: $Listener = [System.Net.Sockets.TcpListener]61855 $Listener.Start() $Client = $Listener.AcceptTcpClient() $Stream = $Client.GetStream() [byte[]]$key =…

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,271 questions
asked 2024-07-03T16:18:19.5466667+00:00
Andrew Cover 0 Reputation points
edited the question 2024-07-04T01:30:57.9566667+00:00
Jiale Xue - MSFT 42,146 Reputation points Microsoft Vendor
2 answers One of the answers was accepted by the question author.

WARNING: Unable to acquire token for tenant 'organizations' with error 'InteractiveBrowserCredential authentication failed: Method not found: 'Void Microsoft.Identity.Client.Extensions.Msal.MsalCacheHelper.RegisterCache(Microsoft.Identity.Client.ITokenCa

Hi Team, Can someone here please assist me with this error to connect my PowerShell session using the Connect-AzAccount ? PS C:\WINDOWS\system32\WindowsPowerShell\v1.0> Connect-AzAccount WARNING: Unable to acquire token for tenant 'organizations' with…

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,245 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,271 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
20,343 questions
asked 2023-08-08T13:25:14.0933333+00:00
EnterpriseArchitect 5,016 Reputation points
commented 2024-07-03T22:40:33.67+00:00
Noman Ashrafi 0 Reputation points
3 answers One of the answers was accepted by the question author.

Having Trouble Running Powershell Scripts with Task Scheduler

I wrote a simple PowerShell script to back up a certain folder from a server to an external NAS, which is mapped as the N: drive. $sourcePath = "D:\SomeLocation\Folder" $destinationPath = "N:\BackupData" Copy-Item -Path $sourcePath…

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,271 questions
asked 2023-04-20T20:19:53.45+00:00
Mikros476 45 Reputation points
commented 2024-07-03T20:22:51.9966667+00:00
C A 0 Reputation points
1 answer

MgGraph PowerShell

Hi Everyone, I need to clear the User Consent permissions on an Enterprise App so I can run the 3rd party app again and then grant "Consent on behalf of your organisation" so all users (assigned to the Ent App) can access it. Using MgGraph…

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,245 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,271 questions
asked 2024-07-03T15:36:10.0166667+00:00
SenhorDolas 1,251 Reputation points
answered 2024-07-03T16:52:56.01+00:00
Vasil Michev 99,126 Reputation points MVP
15 answers

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…

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
11,057 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,271 questions
asked 2023-03-21T19:12:59.2566667+00:00
Steve Lo 105 Reputation points
commented 2024-07-03T16:09:48.26+00:00
Myles Prather 0 Reputation points
2 answers One of the answers was accepted by the question author.

Ev2 Shell Extension with Managed Identity accessing Storage Account blob

This is how we're accessing using MSI:    Connect-AzAccount -Identity -TenantId $env:TenantId -SubscriptionId $env:SubscriptionId         ## Attempt to upload payload to blob: $ctx = (Get-AzStorageAccount -ResourceGroupName $env:ResourceGroupName -Name…

Azure Storage Accounts
Azure Storage Accounts
Globally unique resources that provide access to data management services and serve as the parent namespace for the services.
2,867 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,271 questions
asked 2024-07-03T01:07:55.2866667+00:00
Minh Nguyen 0 Reputation points Microsoft Employee
commented 2024-07-03T15:51:33.6033333+00:00
Minh Nguyen 0 Reputation points Microsoft Employee
1 answer

PowerShell script for exporting Group Source from Entra ID

Hello experts, I have to export the group source that the whether the group is cloud or on-prem synced group from the Entra ID using powershell module. Can anyone help me out for the same? Looking for a quick reply. Thanks!

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,271 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
20,343 questions
asked 2024-07-03T10:54:43.8133333+00:00
Nidhi Priya 426 Reputation points
answered 2024-07-03T15:37:29.64+00:00
Vasil Michev 99,126 Reputation points MVP
2 answers

how to fix AAD issue "try again, that's not your current password"

Dear Experts, we created AD users from on premises, sync them to the cloud then enabled SSPR and password writeback, MFA. Here is the scenario when using Powershell script: User logs in with expired password (or recently changed temporary password) and…

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,271 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
20,343 questions
asked 2023-07-17T03:18:04.5133333+00:00
Eaven HUANG 2,156 Reputation points
answered 2024-07-03T13:43:05.4+00:00
WhatAmIDoingWrong 21 Reputation points
1 answer

PowerShell command outputting 'System.__ComObject' on Windows 11 23H2

I am working on a Windows 11 23H2 system and attempting to retrieve installed update details using the PowerShell command below, but it's giving me an output of System.__ComObject: $UpdateSession = New-Object -ComObject…

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,271 questions
asked 2024-07-02T12:00:45.7933333+00:00
VM 31 Reputation points
commented 2024-07-03T13:15:05.6966667+00:00
MotoX80 32,551 Reputation points
2 answers

How do I login in my Azure Account

Unable to login my azure portal via azure powershell by az login command there is an error as follows: Authentication failed against tenant 115142-e0fd-4b46-*718-9631f6a**53d8 'Default Directory': (pii). Status:…

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,271 questions
asked 2024-06-25T18:53:20.0933333+00:00
AKASH MAJUMDAR 0 Reputation points
answered 2024-07-03T07:42:58.4266667+00:00
Wesley Li 6,115 Reputation points
2 answers One of the answers was accepted by the question author.

Trying to add Microsoft Sentinel to a Log Analytics Workspace in Azure but keep getting error "The gateway did not receive a response from 'Microsoft.SecurityInsights' within the specified time period"

I am trying to add Microsoft Sentinel to a Log Analytics Workspace connected to a Virtual Machine in the Azure portal but keep getting the error "The gateway did not receive a response from 'Microsoft.SecurityInsights' within the specified time…

Microsoft Sentinel
Microsoft Sentinel
A scalable, cloud-native solution for security information event management and security orchestration automated response. Previously known as Azure Sentinel.
1,040 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,271 questions
asked 2024-06-27T04:27:49.0766667+00:00
Aaqib Ali 20 Reputation points
answered 2024-07-02T23:11:34.0633333+00:00
Aaqib Ali 20 Reputation points