5,407 questions with Windows Server PowerShell tags

Sort by: Updated
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,813 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,407 questions
Microsoft Intune
Microsoft Intune
A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.
4,480 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
2 answers

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

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,868 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,407 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,161 questions
asked 2024-05-24T20:03:58.29+00:00
Jairo Javier Baleta Cali 131 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,407 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.
5,997 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,407 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,161 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
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,287 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,407 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,161 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,171 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,850 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
12,287 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,407 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,171 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,392 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,407 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,285 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,407 questions
asked 2024-05-02T07:49:22.73+00:00
Varma 1,210 Reputation points
accepted 2024-05-23T10:27:22.5966667+00:00
Varma 1,210 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,287 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,407 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
1 answer One of the answers was accepted by the question author.

I am getting error, When I am trying to update the GPO by executing gpupdate /force.

Hi Experts, I have applied the GPO to disable windows auto update and Trying to update the GPO. But I am getting below error while I am trying to update the GPO. "Windows failed to applied the {F312195E-sD90-447A-A3F5-08DFFA24735E) settings .…

Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
12,287 questions
Active Directory
Active Directory
A set of directory-based technologies included in Windows Server.
5,997 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,407 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,161 questions
asked 2024-05-21T06:21:54.51+00:00
Jimmy Afflick 40 Reputation points
commented 2024-05-23T07:02:51.35+00:00
Daisy Zhou 19,276 Reputation points Microsoft Vendor
1 answer

Forwarding Windows Server firewall logs to other location like syslog server?

Would it be possible to forward or configure the Windows server firewall logs to a SIEM or SYSLOG server? Currently, using the official method through Group Policy only allows me to create the log on a specific server locally.…

Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
12,287 questions
Active Directory
Active Directory
A set of directory-based technologies included in Windows Server.
5,997 questions
Windows Network
Windows Network
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.Network: A group of devices that communicate either wirelessly or via a physical connection.
667 questions
Windows Server Security
Windows Server Security
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.Security: The precautions taken to guard against crime, attack, sabotage, espionage, or another threat.
1,746 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,407 questions
asked 2024-05-22T14:03:53.0433333+00:00
EnterpriseArchitect 4,871 Reputation points
answered 2024-05-22T19:23:23.9733333+00:00
Rich Matheisen 45,111 Reputation points
1 answer

Modify Office's settings via Registry/GPO

Good afternoon! In your company, you’re using Office 2016 Professional Plus. Recently, you’ve collected all the user configurations to create group policies. While some settings could be changed using Administrative Templates, there are still some that…

Office
Office
A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.
1,359 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
12,287 questions
Active Directory
Active Directory
A set of directory-based technologies included in Windows Server.
5,997 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,407 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,161 questions
asked 2024-05-20T07:39:15.9966667+00:00
Andrés Jiménez 0 Reputation points
answered 2024-05-22T10:30:56.7+00:00
Andrés Jiménez 0 Reputation points
1 answer

Find Azure users who have not signed in within 90 day's / Inactive users.

Looking to list all inactive users using powershell. Ive tried many methods such as Get-Aduser etc. but I always find recent users within the list. Looking to query Azure AD so I can also get cloud accounts Ive arrived at below. $users = Get-AzureADUser…

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,407 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,850 questions
asked 2023-04-28T15:39:57.76+00:00
Synthetic-Sentience 6 Reputation points
edited a comment 2024-05-22T10:05:24.2+00:00
Sander Matthijsse 0 Reputation points
1 answer One of the answers was accepted by the question author.

AzureAD group membership

Hi All In our hybrid environment, all users are initially created on-premises and then synced to Azure AD. I've created five security groups within Azure AD. Specifically, I've granted ownership of these five AD groups to a user, let's call them user1.…

Active Directory
Active Directory
A set of directory-based technologies included in Windows Server.
5,997 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,407 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,161 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,850 questions
asked 2024-05-10T05:37:17.0433333+00:00
Glenn Maxwell 10,306 Reputation points
accepted 2024-05-21T19:54:57.64+00:00
Glenn Maxwell 10,306 Reputation points
2 answers

Create replication policy on destination account

I'm trying to run the below command in powershell $destPolicy = Set-AzStorageObjectReplicationPolicy -ResourceGroupName $rgName -StorageAccountName $destAccountName -PolicyId default -SourceAccount $srcAccountName -Rule $rule1,$rule2 but i receive…

Azure Storage Accounts
Azure Storage Accounts
Globally unique resources that provide access to data management services and serve as the parent namespace for the services.
2,759 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,407 questions
asked 2024-05-19T09:44:23.3066667+00:00
Garth Meyer 0 Reputation points
commented 2024-05-21T09:15:57.26+00:00
Amrinder Singh 3,255 Reputation points Microsoft Employee
0 answers

Enable Logging

Hi All I have a requirement to enable PowerShell/WinRM/WMI logging on my servers. I will enable this through the GPOs listed below. The requirement is that I need to generate event IDs or logs to show management that I have configured the GPO properly.…

Windows Server 2019
Windows Server 2019
A Microsoft server operating system that supports enterprise-level management updated to data storage.
3,507 questions
Windows Server 2016
Windows Server 2016
A Microsoft server operating system that supports enterprise-level management updated to data storage.
2,400 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
12,287 questions
Active Directory
Active Directory
A set of directory-based technologies included in Windows Server.
5,997 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,407 questions
asked 2024-05-20T19:38:43.1033333+00:00
Glenn Maxwell 10,306 Reputation points
2 answers

Compare version numbers

Hi, I have this below code to compare 2 version numbers. However It does not work as expected as v9.4.11 is taken as grater version number than v11.2.5. How can I achive comparing 2 version numbers? Thanks. $INSV=9.4.11 $NWTV=11.2.5 If…

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,407 questions
asked 2021-08-11T13:38:45.183+00:00
Arosh Wijepala 161 Reputation points
commented 2024-05-20T15:23:23.64+00:00
Rich Matheisen 45,111 Reputation points
0 answers

paraameterising the looad balancer for backend pool in the azure

We have load balancer Need to Add an option called -updateLoadBalancer which can be used to add or remove servers from the load balancer backend pool the command line -updateLoadBalancer remove -serverType PPWeb - serverSet Primary should add a step to…

Azure Load Balancer
Azure Load Balancer
An Azure service that delivers high availability and network performance to applications.
411 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,407 questions
asked 2024-05-19T07:00:04.4666667+00:00
Diptesh Kumar 101 Reputation points
commented 2024-05-20T08:10:46.28+00:00
KapilAnanth-MSFT 37,406 Reputation points Microsoft Employee
5 answers One of the answers was accepted by the question author.

How to access user details for those who have not logged in to Azure Virtual Desktop for 90 days

I am looking for information on how to access the details of inactive users who have not logged into Azure Virtual Desktop for 90 days. Specifically, I would like to know their usage in the file share as well as their last logon details.

Azure Storage Accounts
Azure Storage Accounts
Globally unique resources that provide access to data management services and serve as the parent namespace for the services.
2,759 questions
Azure Virtual Desktop
Azure Virtual Desktop
A Microsoft desktop and app virtualization service that runs on Azure. Previously known as Windows Virtual Desktop.
1,387 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,407 questions
asked 2024-05-07T04:33:28.7633333+00:00
Swaroop Gowda D 25 Reputation points
accepted 2024-05-20T07:23:48.4+00:00
Swaroop Gowda D 25 Reputation points