2,132 questions with PowerShell-related tags

Sort by: Updated
1 answer

Cloud Shell Blank, No Heading Bar

I used Cloud Shell before w/o problem. Today, my Cloud Shell is blank, no cursor, no response when typing text. There is no header bar for me to select the shell (PowerShell / Bash). I checked the internet for solution, and tried such things as using…

Azure Cloud Services
Azure Cloud Services
An Azure platform as a service offer that is used to deploy web and cloud applications.
651 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,132 questions
asked 2024-05-15T15:39:11.7233333+00:00
Lawrence Man 11 Reputation points
commented 2024-05-18T05:29:27.0633333+00:00
Lawrence Man 11 Reputation points
1 answer

How to remove an app from user context and deploy this script via Intune

Hey guys, So I cant figure out why my script is not working. I am trying to uninstall a application called MicroSIP (website: microsip.org) via Microsoft Intune on all of our Windows machines but the script is says "not installed" or…

Microsoft Intune Configuration
Microsoft Intune Configuration
Microsoft Intune: A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.Configuration: The process of arranging or setting up computer systems, hardware, or software.
1,747 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,132 questions
asked 2024-05-17T22:37:55.2+00:00
Johnny T 0 Reputation points
answered 2024-05-18T03:54:49.9033333+00:00
Gowtham CP 1,005 Reputation points
0 answers

Cannot update or install modules in Azure Automation

I am having issues updating or installing modules in Azure Automation. Every time I initiate the import process, it never finishes. Even when I delete the imported job and try again, the results are still the same. This has persisted for a week now, and…

Azure
Azure
A cloud computing platform and infrastructure for building, deploying and managing applications and services through a worldwide network of Microsoft-managed datacenters.
992 questions
Azure Automation
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
1,138 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,132 questions
asked 2024-05-18T02:35:05.1733333+00:00
Chester Camlin 0 Reputation points
0 answers

Can't remove an app via Intune from user context

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,451 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,132 questions
asked 2024-05-17T22:54:58.47+00:00
Johnny T 0 Reputation points
0 answers

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,451 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,132 questions
asked 2024-05-17T22:50:49.1433333+00:00
Johnny T 0 Reputation points
3 answers

Powershell script to find freespace available on disk and send email

Here is the code and I am getting email The F: drive is below 150 GB and only at 0 GB - Please resolve, but that is not true. F drive is not low in space $disksize = $null $limitGB = $null $freeSpaceGB = $null Parameter $limitGB = 150 $disksize =…

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,132 questions
asked 2024-05-16T19:51:18.0666667+00:00
Avyayah 1,251 Reputation points
answered 2024-05-17T21:37:09.58+00:00
Andreas Baumgarten 98,446 Reputation points MVP
0 answers

Certificate authentication to Azure stopped work

Hi guys I found out that all my scripts that use Azure App Registration and Certificate to authenticate stopped work. I have a App registered in Entra ID with required permissions, certificate is valid. I also have administrator rights on server and…

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,132 questions
asked 2024-01-24T14:00:16.7466667+00:00
Gold, Petr 1 Reputation point
commented 2024-05-17T17:24:53.9033333+00:00
James M. Arthurs 41 Reputation points
1 answer

Request for Assistance with PowerShell Script for Email Signature Generation

Dear Microsoft Support Team, I hope this message finds you well. I am reaching out to seek assistance in developing a PowerShell script for automated email signature generation in our organization. I haven't started the script yet and would greatly…

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,396 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,132 questions
asked 2024-05-17T11:27:56.0066667+00:00
Nsovo Bostonia Maluleke 41 Reputation points
answered 2024-05-17T15:24:48.1333333+00:00
Rich Matheisen 45,111 Reputation points
6 answers One of the answers was accepted by the question author.

How to remove apps from user context and deploy this script via Intune.

Hi everyone, I was trying to remove some apps such as Chrome/Firefox/Zoom and others from many computers in my organization. These apps were installed manually by the user without admin rights(User Context), I was trying to create a script to remove…

Microsoft Intune
Microsoft Intune
A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.
4,451 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,132 questions
asked 2023-07-20T17:47:21.36+00:00
TZ 46 Reputation points
commented 2024-05-17T14:01:01.98+00:00
Johnny T 0 Reputation points
1 answer

Object reference not set to an instance of an object.

Hi all, We are trying to apply pnp-template by following this article. https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/applying-pnp-templates I have downloaded the 'theperspectivepnp' from the site and created a 'Mysite' in my tenant.…

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
9,793 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,132 questions
asked 2024-05-16T17:50:00.6166667+00:00
gokulnath palani 86 Reputation points
edited a comment 2024-05-17T12:38:17.7466667+00:00
gokulnath palani 86 Reputation points
2 answers One of the answers was accepted by the question author.

Can we run powershell script to shutdown the vms automatically?

I know we have auto shutdown option provided by azure to auto shut down the VM's at perticular intervals. But I have achieve this by running a script. Can anyone help me with the powershell script.

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,242 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,132 questions
asked 2024-05-17T08:53:23.3+00:00
Krishna Aswin 40 Reputation points
accepted 2024-05-17T12:09:46.03+00:00
Krishna Aswin 40 Reputation points
1 answer

Get-MgEntitlementManagementCatalogResourceRole - Can only retrieve roles for one resource

Hi, Microsoft.Graph.Identity.Governance I am not sure if I am doing something wrong, or whether there is an issue, but I am unable to retrieve the role details for my catalog resources. I have 7 resources assigned to my catalog, but if I run the below…

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,780 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,132 questions
asked 2024-05-14T15:29:45.9933333+00:00
Mark Brown 25 Reputation points
answered 2024-05-17T10:40:12.2233333+00:00
Mark Brown 25 Reputation points
0 answers

[Import-Certificate], UnauthorizedAccessException E_ACCESSDENIED when tring to import cert into Cert:\LocalMachine\TrustedPublisher

Hi, I'm really struggling with this one! So a bit of context first : I'm using a powershell module that I've made on my own. This module automatically creates à hyper-v VM, installs windows in it, runs scripts that install applications silently, syspreps…

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,132 questions
asked 2024-05-17T07:40:14.98+00:00
Julien POULAIN 0 Reputation points
edited the question 2024-05-17T07:46:01.5033333+00:00
Julien POULAIN 0 Reputation points
1 answer

How to find collapsible sections in home page of all sites using pnp powershell?

How we can find collapsible sections in home page of all SharePoint Online Sites using PnP Powershell? Get-PnPPageComponent -Page Home is not giving any output. PropertiesJson is blank for PageText webpart. How to disable this section collapsible using…

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
9,793 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,132 questions
asked 2024-05-15T15:49:02.9366667+00:00
H Risbud 251 Reputation points
commented 2024-05-17T02:20:43.0333333+00:00
AllenXu-MSFT 16,561 Reputation points Microsoft Vendor
0 answers

Powershell script getting error message - Get-NetAdapter : Invalid class

Hello all, I'm a noob here... I'm trying to run a script to get adapter info but getting error message. My goal is to get the adapter DNS ip info and changing it. Can someone tell whey I'm getting this message. Current system: Windows 11 Pro (build…

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,132 questions
asked 2024-05-17T00:35:40.6833333+00:00
GreenParks2024 0 Reputation points
5 answers

Connect-SPOService : No valid OAuth 2.0 authentication session exists ?

How to fix the issue to connect to SharePoint Online using PowerShell like below? Because when I am using the PowerShell ISE, and then the command: Connect-SPOService -Url 'https://CompanyName-admin.sharepoint.com' I got the error:…

SharePoint Server
SharePoint Server
A family of Microsoft on-premises document management and storage systems.
2,243 questions
SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
9,793 questions
SharePoint Server Development
SharePoint Server Development
SharePoint Server: A family of Microsoft on-premises document management and storage systems.Development: The process of researching, productizing, and refining new or existing technologies.
1,576 questions
SharePoint Server Management
SharePoint Server Management
SharePoint Server: A family of Microsoft on-premises document management and storage systems.Management: The act or process of organizing, handling, directing or controlling something.
2,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,132 questions
asked 2023-02-20T02:47:20.1466667+00:00
EnterpriseArchitect 4,866 Reputation points
edited a comment 2024-05-16T23:23:05.7866667+00:00
Diego Fernando Alvarez Rodriguez 0 Reputation points
4 answers

Powershell 5.1 not accepting keyboard input when using Remote Desktop HTML5 Web Client

Install the latest RDS HTML5 client on a RDS deployment as specified here: https://learn.microsoft.com/en-us/windows-server/remote/remote-desktop-services/clients/remote-desktop-web-client-admin Open a web browser session and start an RDS session. …

Windows
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.
4,822 questions
Remote Desktop
Remote Desktop
A Microsoft app that connects remotely to computers and to virtual apps and desktops.
4,282 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,396 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,132 questions
asked 2023-03-24T15:25:41.6533333+00:00
Ag-8821 41 Reputation points
commented 2024-05-16T21:33:09.6666667+00:00
Rhonda McMurphy 0 Reputation points
2 answers One of the answers was accepted by the question author.

Exchange Online PowerShell filter bug

The Exchange Online PowerShell module seems to have a bug within the -Filter argument for Get-Mailbox. Specifically with the AuditEnabled property of a mailbox. I've tried the following: Get-Mailbox -Filter 'AuditEnabled -eq $False' Get-Mailbox -Filter…

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,228 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,132 questions
asked 2024-05-16T15:17:49.7766667+00:00
D.M 20 Reputation points
commented 2024-05-16T18:48:24.88+00:00
Rich Matheisen 45,111 Reputation points
0 answers

how to retrieve the path to workspace_publish branch OR any branch in devops , use that path in azure powershell script to read file from that branch.

I want to retrieve path to the branch and folder inside it, basically i wan to read the jsons here and change the dev keyword with uat and save the file back to the sam folder in workspace_publish branch. I can change dev to uat, but am not able to…

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,442 questions
Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
9,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,132 questions
asked 2024-05-15T12:58:55.19+00:00
Wasim 20 Reputation points
commented 2024-05-16T16:26:35.4466667+00:00
ShaikMaheer-MSFT 38,126 Reputation points Microsoft Employee
1 answer

Authenticating verification of certificates in Power Shell

Hello, in collaboration with AI, I came up with a script for verifying the authenticity of the certificates I have on my PC. What I need to know is how serious it is if the certificate is not verified, or how should I solve this situation and what…

Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
8,358 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,132 questions
asked 2024-05-14T18:11:02.2166667+00:00
Orichi Panthe 0 Reputation points
commented 2024-05-16T15:18:53.7633333+00:00
Rich Matheisen 45,111 Reputation points