2,158 questions with PowerShell-related tags

Sort by: Updated
0 answers

DisConnect-MgGraph not resetting Scopes

Please can you help. I am new to MgGraph in PowerShell I have been playing around with different scopes. I now want to remove then, so that I get back to least privilege to deploy my powerhouse scipt. I have restarted powershell Issued Disconnect-MgGraph…

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,158 questions
asked 2024-05-24T16:20:05.23+00:00
Bridget Tompkin (Galliford Try) 41 Reputation points
0 answers

Can we get a list of Microsoft forms made by a specific user or all users in a Tenant using MS Graph API or PowerShell?

Hi All, We need to list all forms created by a user with their Display name, UPN, Created date and the URL to the form. I'm asking this because we are in a middle of a business aquisition and and we need to migrate this data from our tenant to another…

Office
Office
A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.
1,358 questions
Azure
Azure
A cloud computing platform and infrastructure for building, deploying and managing applications and services through a worldwide network of Microsoft-managed datacenters.
1,008 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,832 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,158 questions
asked 2024-05-24T15:17:18.4166667+00:00
Pasindu Fernando 0 Reputation points
0 answers

Exporting very large OneDrive content ?

How can I save OneDrive for Business files to my local PC as a ZIP file (many or single)? I have OneDrive with a total of 3.4 TB and various directories, the largest of which is the camera Roll directory, with each subdirectory comprising 300-400 GB and…

OneDrive
OneDrive
A Microsoft file hosting and synchronization service.
864 questions
SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
9,858 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.
2,712 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,148 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,158 questions
asked 2024-05-24T14:59:25.73+00:00
EnterpriseArchitect 4,871 Reputation points
1 answer

How to get list of all programs on system PATH that countain some characters in powershell/batch

So, i want to make a builder file for my C code, i use Clang compiler and wanted to link the Windows SDK's headers and make it multiplatform, so even VS 2015 is supported. I thought the easiest and best way will be to just find the programs that…

C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,562 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,158 questions
asked 2024-05-24T07:33:56.0666667+00:00
Freziyt223 0 Reputation points
answered 2024-05-24T12:59:08.6666667+00:00
MotoX80 32,246 Reputation points
3 answers

How can I resolved error an Object reference not set to an instance of an object.

I am getting am Object reference not set to an instance of an object when I try to Run a Azure PowerShell Function to connect to Azure SQL Managed Instance. Anyone have any suggestions?

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,381 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,158 questions
asked 2024-05-23T19:25:50.8+00:00
Shields, Timothy 0 Reputation points
answered 2024-05-24T12:58:35.74+00:00
Shields, Timothy 0 Reputation points
1 answer

Error attempting to CREATE USER FROM EXTERNAL PROVIDER using a User Assigned Managed Identity

I have an Azure Automation runbook (PowerShell 5.1) that attempts to run "CREATE USER <UserName> FROM EXTERNAL PROVIDER". This is part of a larger program, but this is the offending command so I created a test runbook to try and resolve…

Azure Automation
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
1,143 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,158 questions
asked 2024-05-13T15:25:11.9066667+00:00
Mike Welborn 51 Reputation points
answered 2024-05-24T12:50:58.5966667+00:00
AnuragSingh-MSFT 20,671 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.
10,832 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,158 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
19,842 questions
asked 2024-05-23T10:34:22.19+00:00
Sivasankaran J 0 Reputation points
commented 2024-05-24T10:13:28.95+00:00
Sivasankaran J 0 Reputation points
1 answer One of the answers was accepted by the question author.

Sum of Calculated Columns using Power Automate

Hi! I am a newbie to Power Automate. I am looking for some help with my project re leave management system. I want to create a flow to get the sum of my SharePoint list calculated columns and auto populate them to another SP list column. I have 3…

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
9,858 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,158 questions
asked 2024-05-22T08:01:53.54+00:00
Josephine 20 Reputation points
accepted 2024-05-24T09:23:29.57+00:00
Josephine 20 Reputation points
1 answer

How to create SharePoint Document Library and create columns using PowerShell

Hi there, I am new to using PowerShell to create SharePoint. May I know where can I find the relevant script to create a document library and create column accordingly? Appreciated. Note: I searched some script but unsure if the building block makes…

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.
2,712 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,158 questions
asked 2024-05-24T06:45:36.7+00:00
Chung Man 0 Reputation points
answered 2024-05-24T08:32:02.8166667+00:00
RaytheonXie_MSFT 32,166 Reputation points Microsoft Vendor
1 answer

Risk and consequence when executing Kerberos password reset in a Hybrid Azure AD - OnPremise AD DS?

What are the risks and consequences of resetting the Kerberos krbtgt account during business hours using the steps defined…

Active Directory
Active Directory
A set of directory-based technologies included in Windows Server.
5,994 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,406 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,158 questions
asked 2024-04-24T12:19:23.93+00:00
EnterpriseArchitect 4,871 Reputation points
commented 2024-05-24T08:22:38.1333333+00:00
MukeshAgarwal-MSFTE 0 Reputation points
0 answers

Sign-out from M365 application using script

Hi Team, There are windows 11 machines in our environment in which we have M365 applications installed, and we are willing to sign-out current logged-in user account from all M365 applications present in user device using PowerShell script. Like most…

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.
3,959 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
8,416 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,158 questions
asked 2024-05-24T07:12:46.8633333+00:00
Prabhjot Singh 165 Reputation points
1 answer One of the answers was accepted by the question author.

Does Dsregcmd \leave uneroll Win 11 device from intune??

Hi experts We have a Windows 11 device which is Hybrid joined as well as Co-Managed. We want to remove the device from the Intune. We are running the DSREGCMD /Leave command to unjoin the from hybrid. after this the device object is deleted from the…

Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
8,416 questions
Microsoft Intune
Microsoft Intune
A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.
4,475 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,158 questions
asked 2024-04-25T08:57:41.8933333+00:00
Anant Bera 86 Reputation points
accepted 2024-05-24T04:51:06.4266667+00:00
Anant Bera 86 Reputation points
4 answers

unable to run the DSREGCMD from PowerShell while deploying from SCCM

hey experts we are trying to run dsregcmd command from PowerShell but we are getting an error that dsregcmd is not recognized as an external or internal command. We are deploying the script using SCCM with the user rights. we have updated the code…

Microsoft Configuration Manager
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,158 questions
asked 2024-05-13T18:12:30.0433333+00:00
Anant Bera 86 Reputation points
answered 2024-05-24T04:49:28.2133333+00:00
Anant Bera 86 Reputation points
3 answers

Use PowerShell to enable 'Send copies of group conversations and events to group members' on a dynamic O365 group

I have done quite a bit of researching and asking 'Co-Pilot' without any luck. Essentially, I want to do what the title says, which is: Enable 'Send copies of group conversations and events to group members' for the specified group using PowerShell. The…

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.
3,959 questions
Microsoft Exchange
Microsoft Exchange
Microsoft messaging and collaboration software.
410 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,158 questions
asked 2024-05-23T20:54:43.1533333+00:00
Mark-3345 25 Reputation points
answered 2024-05-24T02:06:05.63+00:00
Bruce Jing-MSFT 1,150 Reputation points Microsoft Vendor
1 answer

Task Scheduler is unable to fetch credentials from Windows Credential Manager. It’s returning null for the username and password

We have one Task Scheduler job using Credential Manager to store service account credentials(Generic). After a password change, we started facing this issue. We have a PowerShell script configured as a Task Scheduler job that uses Credential Manager to…

Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
12,284 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,406 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,158 questions
asked 2024-05-23T12:09:22.66+00:00
Ava Tomlinson 96 Reputation points
answered 2024-05-24T01:12:19.4233333+00:00
Ian Xue (Shanghai Wicresoft Co., Ltd.) 31,166 Reputation points Microsoft Vendor
0 answers

How to find the creation date of a custom Sensitive Information Type

Hi, I have 20+ custom sensitive information types that have been created in my tenant. I am trying to find out the date these were created and if possible, the user who created them. I have looked everywhere...in the Compliance Portal and in the…

Microsoft Purview
Microsoft Purview
A Microsoft data governance service that helps manage and govern on-premises, multicloud, and software-as-a-service data. Previously known as Azure Purview.
964 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,158 questions
asked 2024-05-22T13:19:22.08+00:00
Kadivec, Mojca 0 Reputation points
commented 2024-05-23T21:06:10.1233333+00:00
BhargavaGunnam-MSFT 27,566 Reputation points Microsoft Employee
1 answer

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,471 questions
Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
9,750 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,158 questions
asked 2024-05-15T12:58:55.19+00:00
Wasim 20 Reputation points
commented 2024-05-23T16:49:52.46+00:00
ShaikMaheer-MSFT 38,126 Reputation points Microsoft Employee
2 answers

Get-QuarantineMessage only returns results for 1 day

When running any of the cmdlets below in Exchange Online, I receive results for no more than a few days. This is the primary cmdlet which only returns results for 1 day in spite of the request for the last 30 days. I don't believe it has anything to do…

Microsoft Exchange Online
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,246 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,158 questions
asked 2024-05-22T20:24:10.2233333+00:00
Demari S 0 Reputation points
edited a comment 2024-05-23T15:22:56.18+00:00
Demari S 0 Reputation points
1 answer

Azure Cloud shell doesn't input characters

Hi! So in the mobile app the Cloud Shell doesn't input any characters when I type, even when I paste. Also there is a spinning thing and then my typing cursor, nothing else. Isn't it supposed to display a welcome message? Like is it fully loaded like…

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,158 questions
asked 2024-05-22T09:11:41.3766667+00:00
Ssplanets 0 Reputation points
answered 2024-05-23T09:20:17.3566667+00:00
Jing Zhou 2,630 Reputation points Microsoft Vendor
0 answers

How to create a webapp slot without copying settings using PowerShell?

I want to create a Slot for an Azure WebApp using PowerShell, without copying any settings from the main production slot. The command I'm using is: New-AzWebAppSlot -ResourceGroupName $ResourceGroup -Name $ApplicationName -Slot $SlotName -ErrorAction…

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,158 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,032 questions
asked 2024-05-23T09:02:37.6566667+00:00
Vijay Kabbur 0 Reputation points