2,597 questions with PowerShell-related tags

Sort by: Updated
0 answers

is it even possible to use Microsoft.PowerApps.Administration.PowerShell in an Azure Runbook?

Import-Module Microsoft.PowerApps.Administration.PowerShell Import-Module Microsoft.PowerApps.PowerShell #Add-PowerAppsAccount #Use for desktop..[desktop works. It returns the filtered environment] #Use for Azure Automation…

Azure Automation
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
1,257 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,597 questions
asked 2024-11-07T18:07:26.64+00:00
Guy Martinello 0 Reputation points
commented 2024-11-11T00:50:30.3266667+00:00
Rahul Podila 195 Reputation points Microsoft Vendor
1 answer

Package script is working through SCCM, but there’s a deployment error in Intune

Hi There, I am working on the Oracle 19c client app. I’ve tried packaging it with both batch and PowerShell scripts, and it’s working manually as well as through SCCM, but when deploying through Intune, it’s giving an error. Could you help me with any…

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,014 questions
Microsoft Intune
Microsoft Intune
A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.
5,203 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,597 questions
asked 2024-11-10T15:01:47.8833333+00:00
TechUST 516 Reputation points
commented 2024-11-10T18:13:30.72+00:00
MotoX80 34,431 Reputation points
1 answer

Query on Snapsht

Hi All, I am using the PowerShell syntax below to take snapshots of Windows VMs. Will the current syntax use an incremental or full snapshot? I want to use a full snapshot. Additionally, I would like to take snapshots of Linux VMs. If I change -OsType…

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,996 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,553 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,597 questions
asked 2024-11-09T22:07:37.7033333+00:00
Glenn Maxwell 11,496 Reputation points
answered 2024-11-10T16:59:40.5866667+00:00
Rich Matheisen 46,811 Reputation points
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.htm..

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,014 questions
Microsoft Intune
Microsoft Intune
A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.
5,203 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,597 questions
asked 2024-10-27T19:22:09.4266667+00:00
TechUST 516 Reputation points
edited the question 2024-11-10T15:48:01.42+00:00
TechUST 516 Reputation points
2 answers

Disabling OneDrive Access and Removing Data for Specific Users via PowerShell

I would like to explore options for deleting specific users' OneDrive data using a PowerShell script. I have around 1500+ active users with OneDrive access, and I want to disable OneDrive access for around 500+ specific users and remove the files from…

OneDrive Management
OneDrive Management
OneDrive: A Microsoft file hosting and synchronization service.Management: The act or process of organizing, handling, directing or controlling something.
1,276 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,597 questions
asked 2024-11-02T09:58:12.0833333+00:00
Muhammad Faraz Imran 0 Reputation points
commented 2024-11-10T15:47:09.0666667+00:00
Vasil Michev 108.1K Reputation points MVP
3 answers One of the answers was accepted by the question author.

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,597 questions
asked 2024-11-01T16:27:40.0233333+00:00
Jan 25 Reputation points
accepted 2024-11-10T09:41:20.9866667+00:00
Jan 25 Reputation points
1 answer

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,604 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,597 questions
asked 2024-11-05T20:20:08.3466667+00:00
Yunho Kwon 0 Reputation points
edited a comment 2024-11-08T23:29:09.1133333+00:00
Yunho Kwon 0 Reputation points
2 answers

Using Powershell to parse Device Manger, View by Connection

In Device Manager, and you can change the "View" and select Device by connection. With this view you can see how devices are connected or chained together in cascade view. In Powershell when I run Get-PnpDevice -FriendlyName 'USB4*' -class…

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,597 questions
asked 2024-11-08T19:42:56.5766667+00:00
johnch99 1 Reputation point
answered 2024-11-08T20:02:22.1666667+00:00
Nicolai Samuelsen 0 Reputation points
3 answers

hexadecimal value 0x00, is an invalid character. Line 2, position 1

VbrAnswerFile_install.txt Hi Experts, We are running an PowerShell comment in that PowerShell comment we are calling the XML file and trying to install veeam software. I am getting an error like "hexadecimal value 0x00, is an invalid character.…

Windows Server 2019
Windows Server 2019
A Microsoft server operating system that supports enterprise-level management updated to data storage.
3,797 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
13,228 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,553 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,597 questions
asked 2024-11-07T14:28:11.7+00:00
Jimmy Afflick 80 Reputation points
answered 2024-11-08T19:43:12.8333333+00:00
Rich Matheisen 46,811 Reputation points
0 answers

Need a Powershell script to export the SharePoint Sites with a condition..

Hi All, I need a Powershell script to export the SharePoint Sites with a condition - Zero Members and only one Owners. Any help would be greatly appreciated! Regards, SK

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
10,828 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,597 questions
asked 2024-11-08T17:30:56.5633333+00:00
Santhosh Kumar 0 Reputation points
0 answers

In Cntn of this question from SharePoint forum - Need help in gathering all Archived SharePoint Sites details..

Hi All, I have a question that’s been under discussion in the SharePoint Forum, but due to limited knowledge of PowerShell Scripts there, I was directed here for assistance. I’m looking to pull the exact time when a SharePoint site was archived using…

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,597 questions
asked 2024-11-08T17:21:51.8633333+00:00
Santhosh Kumar 0 Reputation points
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,997 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,597 questions
asked 2024-11-06T21:31:49.4833333+00:00
vaddi_dataengineer 0 Reputation points
commented 2024-11-08T15:10:08.0333333+00:00
Ganesh Gurram 1,110 Reputation points Microsoft Vendor
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,509 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,597 questions
asked 2024-10-29T08:52:04.4633333+00:00
Vinmay Parkhi 0 Reputation points
edited a comment 2024-11-08T13:31:18.85+00:00
Ganesh Patapati 1,275 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

AZURE AD POWER SHELL - ERROR WHEN UPDATING SPECIFIC USER ATTRIBUTES WITH CSV

Greetings everyone. I want to update some attributes of all my users in AZURE ENTRA ID by using uploaded CSV file in AZURE CLOUD POWER SHELL. It works fine on some attributes but I have problem with specific attributes like telephoneNumber. When I had…

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,597 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,122 questions
asked 2024-11-07T23:09:01.98+00:00
Faniry RAVELOMANANTSOA 20 Reputation points
accepted 2024-11-08T10:33:55.4966667+00:00
Faniry RAVELOMANANTSOA 20 Reputation points
1 answer

Intune script that will check the uptime of each machine in the organization and restart laptop after checks

Hello everyone, I need your help, please, because I’m feeling desperate. I want to create a detection and a remediation script in Intune. As a result, I would like it to check if the uptime of each machine reaches 5 days and send a warning to the user:…

Microsoft Intune
Microsoft Intune
A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.
5,203 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,597 questions
asked 2024-10-23T10:24:26.2633333+00:00
Christos Christopoulos 20 Reputation points
commented 2024-11-08T08:49:31.4033333+00:00
Christos Christopoulos 20 Reputation points
0 answers

PowerShell Script - Get-MessageTrace

Hi, I am currently running an unattended powershell script that connect to Exchange Online via a certificate that is saved in Azure. It was working until this afternoon and now it gives me the below error. Get-MessageTrace : The term 'Get-MessageTrace'…

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,597 questions
asked 2024-11-07T17:04:20.5466667+00:00
Keavie Bissell-Smith 0 Reputation points
edited a comment 2024-11-08T08:46:06.1333333+00:00
Keavie Bissell-Smith 0 Reputation points
1 answer

Granting permissions to sharepoint site via powershell

I would like to use powershell to grant permissions to multiple users via a csv/txt file to a sharepoint site. I doesn't want to add them to any group, neither sharepoint group nor domain group. I want them to appear in the members tab (not site members)…

Microsoft 365
Microsoft 365
Formerly Office 365, is a line of subscription services offered by Microsoft which adds to and includes the Microsoft Office product line.
5,128 questions
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,044 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,597 questions
asked 2024-11-07T14:32:47.0933333+00:00
Sebastian Biały 0 Reputation points
answered 2024-11-08T08:36:45.6633333+00:00
Yanli Jiang - MSFT 26,766 Reputation points Microsoft Vendor
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,996 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,597 questions
asked 2024-11-06T12:05:07.6266667+00:00
Akshay Mane 0 Reputation points
commented 2024-11-08T07:12:48.5333333+00:00
Prrudram-MSFT 25,321 Reputation points
1 answer

Error granting permissions to a folder in a document library in Sharepoint via PowerShell

I plan to create a file exchange in the document library where everyone can only see their folder and only within that folder have the ability to share files outside the organization. I have created a script that creates a folder in the document library,…

Microsoft 365
Microsoft 365
Formerly Office 365, is a line of subscription services offered by Microsoft which adds to and includes the Microsoft Office product line.
5,128 questions
SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
10,828 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,597 questions
asked 2024-11-07T14:28:53.7233333+00:00
Sebastian Biały 0 Reputation points
edited an answer 2024-11-08T06:59:25.98+00:00
Ling Zhou_MSFT 18,100 Reputation points Microsoft Vendor
1 answer

Restore OneDrive files in bulk from Preservation Library - Powershell

Is there a way to pull files from the OneDrive Preservation library in bulk? User had two computers and had OneDrive sync'd on both. While in the process of issues they lost their OneDrive files and had cleared the trash. They are all now located in the…

OneDrive
OneDrive
A Microsoft file hosting and synchronization service.
1,146 questions
SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
10,828 questions
OneDrive Management
OneDrive Management
OneDrive: A Microsoft file hosting and synchronization service.Management: The act or process of organizing, handling, directing or controlling something.
1,276 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,553 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,597 questions
asked 2024-11-07T20:09:27.5433333+00:00
Capt America 0 Reputation points
edited an answer 2024-11-08T05:16:20.32+00:00
Ling Zhou_MSFT 18,100 Reputation points Microsoft Vendor