2,328 questions with PowerShell-related tags

Sort by: Updated
1 answer

Azure Automation PowerShell - While trying to connect to AzureAD using 'Connect-AzureAD' it give me issue of cmdlet not recognized.

I am trying to get all the users in AD using PowerShell automation runbook. The modules are installed in the shared resources. Still when executing line : 'Connect-AzureAD' throws error of : I have tried options like : Importing the modules…

Azure Automation
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
1,195 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,328 questions
asked 2024-07-08T01:54:06.11+00:00
Rituparna Khatua 0 Reputation points
answered 2024-07-08T05:29:56.45+00:00
akinbade abiola 9,315 Reputation points
1 answer

Remove app from user context and deploy this script via Intune

I am trying to uninstall a application called MicroSIP via Microsoft Intune on all of our Windows machines but the script is says "not installed" every time I run it. I have tied multiple scripts but no luck. I did find my issue. So here it is.…

Microsoft Intune
Microsoft Intune
A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.
4,743 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,328 questions
asked 2024-05-17T22:50:49.1433333+00:00
Johnny T 0 Reputation points
answered 2024-07-07T07:50:12.3233333+00:00
Khaled Elsayed Mohamed 1,260 Reputation points
1 answer

How can I send Outlook (Microsoft 365) meeting invitations from one email account to multiple email accounts using PowerShell?

I need your help to create a PowerShell script to send invitations to an Outlook (Microsoft 365) meeting from an email account user@domino to multiple email accounts (user1@domino, user2@domino...) through from PowerShell I hope you can help me.

Outlook
Outlook
A family of Microsoft email and calendar products.
3,420 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,071 questions
Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,462 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,328 questions
asked 2024-01-18T21:19:08.5933333+00:00
Jairo Javier Baleta Cali 131 Reputation points
answered 2024-07-07T06:44:40.2266667+00:00
Khaled Elsayed Mohamed 1,260 Reputation points
1 answer One of the answers was accepted by the question author.

Disable WinRM PowerShell Remoting

Hi All I have a requirement to Disable or Harden PowerShell Remoting and WinRM Services. The impact what i see is one server cannot connect to another server using remote powershell scripts. Please also let me know what possible issues we can come across…

Windows Server 2019
Windows Server 2019
A Microsoft server operating system that supports enterprise-level management updated to data storage.
3,612 questions
Windows Server 2016
Windows Server 2016
A Microsoft server operating system that supports enterprise-level management updated to data storage.
2,435 questions
Windows Server Security
Windows Server Security
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.Security: The precautions taken to guard against crime, attack, sabotage, espionage, or another threat.
1,782 questions
Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,462 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,328 questions
asked 2023-12-30T11:24:40.5166667+00:00
Roger Roger 5,446 Reputation points
accepted 2024-07-06T09:29:44.6566667+00:00
Roger Roger 5,446 Reputation points
1 answer

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.
3,035 questions
.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
328 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,328 questions
asked 2024-07-04T10:14:43.54+00:00
Sutheswaran, Suwhathi 70 Reputation points
answered 2024-07-05T15:47:27.8666667+00:00
Rich Matheisen 45,906 Reputation points
1 answer

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? (working fine from windows machine though) "New-PSSession: [<exchangeserver.domain>] Connecting to remote server…

Exchange Server
Exchange Server
A family of Microsoft client/server messaging and collaboration software.
1,194 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
12,634 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,500 questions
Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,462 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,328 questions
asked 2024-07-03T08:53:54.16+00:00
ITS ByteSec 0 Reputation points
answered 2024-07-05T15:37:17.6666667+00:00
Rich Matheisen 45,906 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,957 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,328 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
1 answer

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.
71 questions
Azure API Management
Azure API Management
An Azure service that provides a hybrid, multi-cloud management platform for APIs.
1,957 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,328 questions
asked 2024-07-03T17:23:33.82+00:00
Pedro Briceño 0 Reputation points
answered 2024-07-04T08:30:37.3066667+00:00
navba-MSFT 20,810 Reputation points Microsoft Employee
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.
712 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,071 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,998 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
8,986 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,328 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,751 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.
980 questions
SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
10,291 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,328 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,328 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 43,046 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,443 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,328 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,624 questions
asked 2023-08-08T13:25:14.0933333+00:00
EnterpriseArchitect 5,136 Reputation points
commented 2024-07-03T22:40:33.67+00:00
Noman Ashrafi 5 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,328 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,443 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,328 questions
asked 2024-07-03T15:36:10.0166667+00:00
SenhorDolas 1,271 Reputation points
answered 2024-07-03T16:52:56.01+00:00
Vasil Michev 100.2K 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,194 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,328 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,942 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,328 questions
asked 2024-07-03T01:07:55.2866667+00:00
Minh Nguyen 20 Reputation points Microsoft Employee
commented 2024-07-03T15:51:33.6033333+00:00
Minh Nguyen 20 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,328 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,624 questions
asked 2024-07-03T10:54:43.8133333+00:00
Nidhi Priya 446 Reputation points
answered 2024-07-03T15:37:29.64+00:00
Vasil Michev 100.2K 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,328 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,624 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
3 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,521 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
8,986 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,328 questions
asked 2024-07-01T22:19:00.44+00:00
Terry Foster 0 Reputation points
commented 2024-07-03T11:24:28.1+00:00
Terry Foster 0 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,328 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,760 Reputation points