2,830 questions with PowerShell-related tags

Sort by: Updated
1 answer One of the answers was accepted by the question author.

Install-Module -Name d365fo.tools -force -verbose doesnt work in virtual machine

Hello, The command line Install-Module -Name d365fo.tools -force -verbose doent work in powershell in our virtual machine (Azure devbox). We have this error message : PackageManagement\Install-Package : Package 'PSFramework' failed to download. At…

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
8,432 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,830 questions
asked 2025-02-05T17:04:10.2933333+00:00
CSA - HFR HERMES 40 Reputation points
commented 2025-02-28T00:54:16.42+00:00
Mounika Reddy Anumandla 2,585 Reputation points Microsoft Vendor
0 answers

How to fix NPS extension installation script issue

Hi everyone, I am having issue to run '.\AzureMfaNpsExtnConfigSetup.ps1' for NPS Extension installation on my server, here is the error: I replaced the code '$binCert = $certx509[0].GetRawCertData() $credValue =…

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,830 questions
asked 2025-02-27T23:24:26.4766667+00:00
Nasrin Golbaz 0 Reputation points
0 answers

Can we remove the shared permission from one drive for a deleted user in one drive

# Define Azure AD App Credentials $tenantId = " $clientId = " $clientSecret = " $scope = "https://graph.microsoft.com/.default" # CSV file paths $ownersCsv = "D:\Owners.csv" $usersCsv =…

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,830 questions
asked 2025-02-27T17:38:15.97+00:00
Joel Kishor J H 0 Reputation points
1 answer

IP assignment

Hello, We have one virtual machine in azure, which has an interface with a lot of IP Addresses (25 IPs+ as secondary, see please screenshot). Also I have one identical virtual machine (state is down). And in case of failure of first machine I need to…

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,830 questions
asked 2025-02-24T13:20:27.1166667+00:00
immm 20 Reputation points
commented 2025-02-27T07:40:44.8733333+00:00
immm 20 Reputation points
1 answer One of the answers was accepted by the question author.

can't find calendar data for certain resource accounts

I'm attempting to get info on some of our resource calendars. Since this doesn't function well within the EXO Powershell, I was pointed towards the MSGraph module. So I use these commands: $StartDate = "2024-01-01T19:00:00-08:00" >>…

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
13,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,830 questions
asked 2025-01-29T15:20:42.2633333+00:00
Jamro Chris 20 Reputation points
accepted 2025-02-26T15:34:02.5733333+00:00
Jamro Chris 20 Reputation points
1 answer

Exception calling "UploadFile" with "2" argument(s)

Hi, I have this code, it used to work, but now it's giving an error: #we specify the directory where all files that we want to upload $Dir="C:\path\Generate XML Files" $DirArch="C:\path\Archive" #ftp server $ftp =…

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,830 questions
asked 2025-02-26T09:23:43.6433333+00:00
Hosea Motshwaedi 0 Reputation points
edited an answer 2025-02-26T15:12:47.08+00:00
MotoX80 35,596 Reputation points
0 answers

AZURE LogicApps: How to get the connection as runbook and use it for other runbooks

Hello I have created multiple Runbooks and I don't want to create always the same connection string include variables in each Runbook. So I have tried to use Start-AzAutomationRunbook but it makes no sense as I need to use always a connection…

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,830 questions
asked 2025-02-26T11:55:03.58+00:00
Damaschke, Michael 20 Reputation points
0 answers

Azure Agent SSL Issue: "an existing connection was forcibly closed by the remote host"

Windows server was updated from 10 to 11. TLS certificates were updated. I've verified that its using 1.2. SSL works as well. Azure DevOps is accessible via the server. Installing a new agent result in the same issue attempting to restart/remove the…

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,830 questions
asked 2025-02-26T05:19:18.83+00:00
Saeed, Hammad 0 Reputation points
0 answers

how can i direct an intune powershell output to a sharepoint file

using a powershell script, i want to collect data from my devices, (e.g. setpoints, local admins, among other data not readily available/usable in entra) and store the data in a file i can review. i'm assuming a sharepoint site/file with permissions for…

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,830 questions
asked 2025-02-25T18:34:32.03+00:00
Michael J. Langone 0 Reputation points
1 answer

Sorry, but we’re having trouble signing you in. AADSTS700016: Application with identifier 'd1ddf0e4-d672-4dae-b554-9d5bdfd93547' was not found in the directory

Whenever I start a new session for connect-MSGraph, it defaults to using the old AppID, even if I’ve updated the AppID in the previous session. Please suggest a way to update the AppID permanently. I am expecting that “connect-MSGraph” session should…

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
13,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,830 questions
asked 2024-05-23T10:34:22.19+00:00
Sivasankaran J 0 Reputation points
commented 2025-02-24T17:12:18.1433333+00:00
Beystor Makoala 20 Reputation points
1 answer

Is it possible to create a powershell 5.1 runbook to disable AI settings in a environment.

Working on runbooks in Azure, and i'm trying to disable AI settings with one of them, but it doesn't work.

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,830 questions
asked 2025-02-24T16:01:00.9133333+00:00
answered 2025-02-24T16:25:28.64+00:00
Gowtham CP 5,920 Reputation points
2 answers

How to publish a Runbook to latest runtime version using blob storage?

Hi, so i have written a Powershell script that publish a files to my blob storage, and i got it to upload the file(s) to Process Automation/Runbooks. But i cant seem to get the Runtime version to the latest, how can i do that? Right now a part of the…

Azure Automation
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
1,319 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,830 questions
asked 2025-02-12T12:46:12.4666667+00:00
André Lindqvist 20 Reputation points
edited a comment 2025-02-24T09:21:08.7366667+00:00
Naveena Patlolla 655 Reputation points Microsoft Vendor
0 answers

permissions for New-AzAKSCluster

Hello, I have 2 Azure environments (different Tennant / Subscription). In the first Tennant the script is running New-AzKeyVault ... New-AzAKSCluster ... without any problems... In the 2nd environment, New-AzKeyvault ... runs perfect and creates the…

Azure Kubernetes Service (AKS)
Azure Kubernetes Service (AKS)
An Azure service that provides serverless Kubernetes, an integrated continuous integration and continuous delivery experience, and enterprise-grade security and governance.
2,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,830 questions
asked 2025-02-17T21:48:03.4766667+00:00
Stefan Kiessig 40 Reputation points
commented 2025-02-21T20:41:15.9133333+00:00
Markapuram Sudheer Reddy 990 Reputation points Microsoft Vendor
0 answers

Form help needed

I could not delete the question for some reason, so this is what was left

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,830 questions
asked 2025-02-21T01:36:56.0466667+00:00
Belgian Malinois 461 Reputation points
edited the question 2025-02-21T12:47:09.5033333+00:00
Belgian Malinois 461 Reputation points
0 answers

STDOUT in AZurePowershell

Hi Team, I am using the CData PowerShell connector in an Azure PowerShell runbook and attempting to generate logs with the -logfile "STDOUT://" option. However, I am unable to see any logs in the console. When I try the same configuration in…

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,830 questions
asked 2025-02-21T12:30:42.58+00:00
Support Testing 5 Reputation points
1 answer

Powershell to .exe - ActiveX control '8856f961-340a-11d0-a96b-00c04fd705a2'

I am having an issue converting a powershell script to .exe The issue seems to lie with connecting to exchange. Is there a better way to do this when converting to .exe? When running in powershell it seems to work fine. Powershell version 7.4.4…

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,830 questions
asked 2024-08-03T05:54:42.7933333+00:00
Matt Wood 0 Reputation points
commented 2025-02-21T02:55:23.88+00:00
Matt Wood 1 Reputation point
1 answer

PowerShell Script to list all the files and folders that are being shared in a document library

Hello, I am trying to find out which folders or files on a Document Library are being shared, either internally or externally, and who was it shared to. Is there a powershell script that does this? Best.

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
11,231 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,830 questions
asked 2025-02-10T20:27:03.1333333+00:00
Xia, Henry 0 Reputation points
commented 2025-02-21T01:23:17.14+00:00
AllenXu-MSFT 23,976 Reputation points Microsoft Vendor
0 answers

A Datetime object string value coming from MSGraph is corrupted with an extra ending space, what is causing this ?

I am retrieving lastsigninDateTime of users with MSGraph, and I came upon this error with one of the users. It seems like the string value has an added space or null character in this case for some reason, and it can't properly convert this to a Datetime…

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,830 questions
asked 2025-02-20T22:03:53.8533333+00:00
BOUCHARD, David (MTL) 0 Reputation points
edited the question 2025-02-20T22:21:28.5066667+00:00
BOUCHARD, David (MTL) 0 Reputation points
1 answer

AZURE Disable "Enable Always-on soft delete" option

Hello everyone. I am currently stuck after accidentally activating the "Enable Always-on soft delete" box on my vault, and I cannot uncheck it, delete the vault, or delete the resource where the vault is located. I followed the microsoft…

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,830 questions
asked 2023-04-26T19:09:02.86+00:00
Thomas STEFANI 0 Reputation points
commented 2025-02-20T22:16:23.1166667+00:00
Wai Kuen Chau 0 Reputation points
0 answers

I need a full list of all mailboxes, shared mailboxes, and resources.

I am trying to get a single list that will show me all of our mailboxes, shared mailboxes, and resources, as well as show the license type. When I run this command (Get-Mailbox -ResultSize Unlimited | Select-Object DisplayName, RecipientTypeDetails,…

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,830 questions
asked 2025-02-20T22:02:14.2333333+00:00
SShu 0 Reputation points