5,416 questions with Windows Server PowerShell tags

Sort by: Updated
0 answers

What is the best way to execute PowerShell graph command executed against Azure / Entra ID ?

What is the best way to execute the PowerShell graph command executed against Azure / Entra ID ? $date = (Get-Date -Format "yyyy-MM-dd") 2Get-MgRiskDetection -All -Filter "ActivityDateTime ge $date and RiskLevel eq 'high'" The report…

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,888 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,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,175 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,913 questions
asked 2024-05-27T14:14:48.94+00:00
EnterpriseArchitect 4,891 Reputation points
commented 2024-05-29T21:13:02.5633333+00:00
Sina Salam 4,311 Reputation points
0 answers

Rebuild server from core to desktop

I accidentally installed server core on an old PC i have and want to rebuild the server to Desktop, I have seen all the answers online and am aware that the only option is to rebuild the server. i have searched all over the internet on how to rebuild a…

Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
12,314 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,416 questions
asked 2024-05-29T19:30:15.68+00:00
Abdulla Al-Haroon 0 Reputation points
3 answers

EventID for the GPO

I have enabled the GPO (Turn on PowerShell Transcription): Computer Configuration-Administrative Templates-Windows Components-Windows PowerShell. Turn on PowerShell Transcription: Enabled. Should I see any other Event ID besides 4103 in Event Viewer with…

Windows Server 2019
Windows Server 2019
A Microsoft server operating system that supports enterprise-level management updated to data storage.
3,514 questions
Windows Server 2016
Windows Server 2016
A Microsoft server operating system that supports enterprise-level management updated to data storage.
2,406 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
12,314 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,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,175 questions
asked 2024-05-28T15:51:47.9+00:00
Glenn Maxwell 10,326 Reputation points
answered 2024-05-29T16:17:52.2433333+00:00
Glenn Maxwell 10,326 Reputation points
1 answer

Connect-MgGraph : Invalid JWT access token. Connect-AzAccount : InteractiveBrowserCredential authentication failed

I need help and a solution to rectify the below error when executing the PowerShell Connect-* command. $TenantID = '22bb9241-65c8-45b4-94f9-7c151e154693' $AzSubscriptionID = 'd487514e-4317-447f-af79-5022d310f6bd' $paramConnectMgGraph = @{ Scopes =…

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,888 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,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,175 questions
Microsoft Entra
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
19,913 questions
asked 2024-05-28T07:17:43.8466667+00:00
EnterpriseArchitect 4,891 Reputation points
commented 2024-05-29T15:45:38.6533333+00:00
Givary-MSFT 28,576 Reputation points Microsoft Employee
0 answers

Stop-pnpworkflowinstance not working as expected

While trying to use the command stop-workflowinstance , workflow subscription always return null

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
9,894 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,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,175 questions
Microsoft Power Platform Training
Microsoft Power Platform Training
Microsoft Power Platform: An integrated set of Microsoft business intelligence services.Training: Instruction to develop new skills.
126 questions
asked 2024-05-29T14:54:13.6133333+00:00
Nirenjana Raghupathy 21 Reputation points
1 answer One of the answers was accepted by the question author.

How to read contents of a CSV in Azure Blob storage using powershell

Hi, Is there any way to read the contents of a file in Azure blob using Powershell? I tried Get-AzStorageBlobContent but this stores the file in a local folder. I don't want to store the file locally. My requirment is to read the file from blob and…

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,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,175 questions
asked 2023-01-27T07:36:01.7+00:00
Biju Mathew 476 Reputation points
commented 2024-05-29T12:18:02.19+00:00
Lucas, Stephen 0 Reputation points
1 answer

GPO is not applying

Hi All i am applying the below GPO on an OU, this OU has Windows 2019/2016 Servers. My domain controllers are a mix of Windows 2019/2016. On the member server when i check RSOP i am seeing that the GPO is applied but when i check from gpedit.msc the gpo…

Windows Server 2019
Windows Server 2019
A Microsoft server operating system that supports enterprise-level management updated to data storage.
3,514 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
12,314 questions
Active Directory
Active Directory
A set of directory-based technologies included in Windows Server.
6,008 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,416 questions
asked 2024-05-27T17:38:21.0133333+00:00
Roger Roger 4,961 Reputation points
answered 2024-05-29T11:51:31.29+00:00
Daisy Zhou 19,276 Reputation points Microsoft Vendor
1 answer

How to generate a report on a conditional access policy with Report Only mode ?

Hello Team, I'm looking for a free way even with a PowerShell script to get a report on a conditional access policy with Report Only mode. Thanks, Alaa Elrayes

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,416 questions
Microsoft Intune Reporting
Microsoft Intune Reporting
Microsoft Intune: A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.Reporting: The process of giving an account of something that has been observed, heard, done, or investigated.
62 questions
Microsoft Intune
Microsoft Intune
A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.
4,499 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,175 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,913 questions
asked 2024-05-28T08:18:26.5433333+00:00
A.Elrayes 186 Reputation points
commented 2024-05-29T06:33:31.8+00:00
A.Elrayes 186 Reputation points
2 answers

Can I put the value of instanceDurationInDays in minutes for the QA while creating access reviews using powershell?

I am able to create an azure access reviews with Graph API 1.0 using PowerShell. Now, there is a property called instanceDurationInDays which should have an integer value. The access review will remain active for the number of days of the value of…

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,888 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,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,175 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,913 questions
asked 2024-05-27T13:42:49.5833333+00:00
Sumit Bhargav 0 Reputation points
answered 2024-05-29T06:22:57.7466667+00:00
Shweta Mathur 28,196 Reputation points Microsoft Employee
1 answer

PowerShell compares a file on a file server with a file uploaded to a SharePoint Online document library.

Good afternoon. I hope you are well. I have a question about how I can compare a file on a file server with a file uploaded to a SharePoint Online document library. In order to check if the file is the same or has changed to check if it needs to be…

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
9,894 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,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,175 questions
asked 2024-05-24T20:03:58.29+00:00
Jairo Javier Baleta Cali 131 Reputation points
commented 2024-05-29T02:40:04.6633333+00:00
Rich Matheisen 45,186 Reputation points
2 answers

Powershell ISE Illegal characters in path with literalpath

Hello! I have encountered the problem of running PowerShell cmdlets using "LiteralPath" in PowerShell ISE, when folder is existing. Error message: Get-ChildItem : Illegal characters in path. At line:1 char:1 + Get-ChildItem -LiteralPath…

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,416 questions
asked 2024-05-27T08:27:00.97+00:00
Step to IT 80 Reputation points
edited an answer 2024-05-28T19:27:08.1+00:00
Rich Matheisen 45,186 Reputation points
2 answers One of the answers was accepted by the question author.

WinGet.exe upgrade --all -Exclude

How to exclude the list of apps [third-party application, MS applications, and MS KBnumbers] while running winget upgrade -all commands. Is there any parameter to exclude any application? It will be appriciated

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
10,833 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,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,499 questions
asked 2023-04-07T17:32:54.1133333+00:00
Vij 306 Reputation points
answered 2024-05-26T00:44:10.2333333+00:00
Amal Chandrappan 0 Reputation points
1 answer

Problème d'autorisation lors de la récupération de photos OneDrive personnel avec PowerShell et Microsoft Graph API

Bonjour, J'essaie d'extraire massivement des liens URL de photos situées dans mon OneDrive personnel à l'aide de PowerShell et de l'API Microsoft Graph. J'ai créé un compte Azure et une application appelée "PowerShell Graph API OneDrive…

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,416 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,913 questions
asked 2024-05-20T10:32:47.8566667+00:00
Mo7Z 0 Reputation points
commented 2024-05-25T16:35:42.03+00:00
Mo7Z 0 Reputation points
6 answers

convert xlsx to csv using powershell

Hi, I have looked around a lot to find a script that converts xlsx-files in a folder to csv-files. I have found script that does this but only for one file and with a certain file name. Below works fine for one file with a certain name…

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,416 questions
asked 2021-10-20T19:00:18.507+00:00
Fredrik Söderlind 1 Reputation point
commented 2024-05-24T19:48:13.91+00:00
Scott Foulk 0 Reputation points
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.
6,008 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,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,175 questions
asked 2024-04-24T12:19:23.93+00:00
EnterpriseArchitect 4,891 Reputation points
commented 2024-05-24T08:22:38.1333333+00:00
MukeshAgarwal-MSFTE 0 Reputation points
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,314 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,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,175 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,256 Reputation points Microsoft Vendor
1 answer

Disabling TLS 1.0 and 1.1 at the Windows OS level

Hello,   I am trying to determine if there is a way to permanently remove a windows OS ability to communicate using TLS 1.0 and 1.1.   I am familiar with the registry changes to disable TLS 1.0 and 1.1 but I am looking for a solution that cannot be…

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,869 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
12,314 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,416 questions
asked 2024-05-23T20:20:00.6966667+00:00
Babar Zaheer 0 Reputation points
answered 2024-05-24T00:55:28.37+00:00
Ian Xue (Shanghai Wicresoft Co., Ltd.) 31,256 Reputation points Microsoft Vendor
4 answers

Create Address List in Exchange online based on Group Membership?

I would like to create some address lists which I know I have to do in Powershell. How would I do this so the list is made up of users who are members of a particular group please and are only mailboxes, so no contacts etc. Thank you.

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,405 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,416 questions
asked 2021-10-28T10:02:07.25+00:00
Darryl 51 Reputation points
answered 2024-05-23T17:36:39.1233333+00:00
Korbyn Forsman 5 Reputation points
1 answer One of the answers was accepted by the question author.

PowerShell command to execute below SSIS.exe file with no prompting window

HI Please assist me in executing below command, you can see respective .exe file is there in the respective folder. Please assist on this

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,299 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,416 questions
asked 2024-05-02T07:49:22.73+00:00
Varma 1,230 Reputation points
accepted 2024-05-23T10:27:22.5966667+00:00
Varma 1,230 Reputation points
3 answers

Change MaximumFileDownloaded on WSUS server with widDB

Hey all, We have an offline WSUS upstream server and a few replica servers. We wanted to accelerate the download rate of files from the upstream server. We already have the wright definition to the BITS service (we changed the proper value in the…

Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
12,314 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,416 questions
asked 2020-12-17T18:42:57.973+00:00
עידן טנקל 26 Reputation points
commented 2024-05-23T08:24:33.4966667+00:00
Michael Marending 0 Reputation points