5,445 questions with Windows Server PowerShell tags

Sort by: Updated
0 answers

Print Servers

We are currently installing all our printers locally to the endpoint device. We would like to set up a print server to manage our 800 printers. Issue we are running into: Using a print server each user that logs into a devices has to search and connect…

Azure Blueprints
Azure Blueprints
An Azure service that provides templates for quick, repeatable creation of fully governed cloud subscriptions.
71 questions
Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
11,059 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
12,512 questions
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
653 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,445 questions
asked 2024-07-04T16:07:02.8+00:00
Brian Forrester 0 Reputation points
0 answers

Remove-FileLabel cmdlet is getting stuck sometimes

Hi, I have been exploring the new Microsoft Purview Infromation Protection PowerShell Module. I have been testing Remove-FileLabel cmdlet. Remove-FileLabel -Path "C:\Users\user\Documents\sample" -JustificationMessage "Migration…

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.
1,027 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,445 questions
asked 2024-06-27T06:47:00.7266667+00:00
Sundram Sontirkey 97 Reputation points
edited a comment 2024-07-03T15:39:49.03+00:00
Rich Matheisen 45,591 Reputation points
1 answer

How to Delete Duplicate Documents / Files in sharepoint online?

There is too much duplicates files and documents in my company's sharepoint online. our company MS cloud space had reached its limit thus these duplicates files had to be delete to free up space. Thanks

SharePoint Server
SharePoint Server
A family of Microsoft on-premises document management and storage systems.
2,284 questions
SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
10,149 questions
SharePoint Workflow
SharePoint Workflow
SharePoint: A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.Workflow: An orchestrated and repeatable pattern of business activity, enabling data transformation, service provision, and information retrieval.
545 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,876 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,445 questions
asked 2024-05-09T03:50:35.2466667+00:00
Joshua Lim 0 Reputation points
commented 2024-07-03T15:36:59.67+00:00
Paul Tansey 0 Reputation points
3 answers

How to add a Sql code to a powershell script

backup_report.txtI have the below sql script to check if any failover happened on the last 24 hrs and we want to use that in the existing powershell backup report script to check that condition before it reports, the below sql code only returns a…

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,445 questions
asked 2024-06-28T14:46:35.28+00:00
Sara 421 Reputation points
edited an answer 2024-07-03T07:51:29.82+00:00
Neuvi Jiang 545 Reputation points Microsoft Vendor
1 answer

Azure cli behind corporate proxy not working (SSL: WRONG_VERSION_NUMBER)

I have my C:\Users\xxxx\cacert-with-corp-proxy-cert.pem file updated with corporate ssl proxy certificate. To confirm that pem file updated properly and corporate proxy ssl certificates are valid I performed the check with python.exe (Microsoft…

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,445 questions
asked 2021-12-22T18:25:45.547+00:00
Lavrenty Eskin 1 Reputation point
commented 2024-07-03T02:43:38.8866667+00:00
Gaudet, Michael 0 Reputation points
1 answer One of the answers was accepted by the question author.

Powershell - Cannot convert value to type "System.Int32"

Dear experts, I'm working on below script trying to replace the value of mailNickName with the prefix part of UPN value. It works great if we had EMPTY mailNickName field (where it showed <not set>). However, if there was value already existing in…

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,445 questions
asked 2021-07-27T06:45:52.713+00:00
Eaven HUANG 2,156 Reputation points
edited a comment 2024-07-02T20:02:39.78+00:00
Matt Sheehan 0 Reputation points
2 answers One of the answers was accepted by the question author.

Enable and Disable WinRM

Hi, For security reasons, our company wants to disable the WinRM service, but we don't know the impact of disabling it on the production platform. So we thought about the ability to disable the service and re-enable it automatically via GPO as needed…

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,445 questions
asked 2023-06-23T10:09:38.4566667+00:00
Ines ROUISSI 20 Reputation points
edited a comment 2024-07-02T13:14:12.9533333+00:00
AnnaG 131 Reputation points
1 answer

Windows 2019 servers patch failed

windows 2019 servers getting security patch failed and when I tried manual then stuck on 80% then I tried to clear table but again stuck, what is solution and how to fix this issue. we have tried below steps DISM /Online /Cleanup-Image /RestoreHealth …

Windows Server 2019
Windows Server 2019
A Microsoft server operating system that supports enterprise-level management updated to data storage.
3,565 questions
Windows Server 2012
Windows Server 2012
A Microsoft server operating system that supports enterprise-level management, data storage, applications, and communications.
1,564 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,774 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,445 questions
asked 2024-06-25T09:12:44.4633333+00:00
Devesh Mishra (Microland) 0 Reputation points
commented 2024-07-02T12:28:47.6566667+00:00
Daisy Zhou 20,791 Reputation points Microsoft Vendor
0 answers

Windows Server DNS issue with Windows Client 10 Client machine

Hi, I have a issue with my Windows Client 10 machines (Notebooks). As you know Notebooks has as well LAN and as WLAN. If the user connected to the LAN, getting here a IP from for example 192.168.178.1 and the WLAN getting a different IP from DHCP for…

Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
12,512 questions
Windows Server Setup
Windows Server Setup
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.Setup: The procedures involved in preparing a software program or application to operate within a computer or mobile device.
245 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,445 questions
asked 2024-07-01T11:40:02.1833333+00:00
PerserPolis-1732 1,516 Reputation points
edited a comment 2024-07-02T05:51:03.4233333+00:00
PerserPolis-1732 1,516 Reputation points
2 answers

The cluster is connected to Azure Arc and I can see the cluster resources on azure arc. But when I perform any commands to the cluster from Cloudshell, it says cluster not found under the resource group.

This is the error I'm getting while accessing the cluster on Azure Arc. This is my cluster connected to AzureArc.

Azure Arc
Azure Arc
A Microsoft cloud service that enables deployment of Azure services across hybrid and multicloud environments.
367 questions
Azure Kubernetes Service (AKS)
Azure Kubernetes Service (AKS)
An Azure service that provides serverless Kubernetes, an integrated continuous integration and continuous delivery experience, and enterprise-grade security and governance.
1,956 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,445 questions
asked 2024-06-28T15:39:59.9433333+00:00
Nikhitha Chandana Chinthapalli 0 Reputation points
edited an answer 2024-07-02T05:01:30.6533333+00:00
Nikhitha Chandana Chinthapalli 0 Reputation points
1 answer

Adding multiple contact lists to a distribution list using PowerShell

I have created ten mail contacts for parents of Year 7 and I created a distribution list so the admin can send announcements to the DL. I need help adding these contact lists to the DL using PowerShell command.

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,465 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,445 questions
asked 2023-11-25T15:46:02.2966667+00:00
IT 140 Reputation points
commented 2024-07-02T02:34:49.0333333+00:00
IT Admin 0 Reputation points
1 answer

How to add a SQL code to a existing PS script

I have the below sql script to check if any failover happened on the last 24 hrs and we want to use that in the existing powershell backup report script to check that condition before it reports, the below sql code only returns a timestamp ;WITH…

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,445 questions
asked 2024-07-01T13:52:38.3666667+00:00
Sara 421 Reputation points
answered 2024-07-01T15:12:35.4133333+00:00
MotoX80 32,551 Reputation points
1 answer

Powershell - DLP - Add Rules to the DLP Policy

Hi Im trying to making Add Rules to DLP Policy with PowerShell # Add Rules to the DLP Policy $RuleName = "DlpRule" $ContentContainsSensitiveInformation = @( New-DlpSensitiveInformationTypeRuleCondition ` -SensitiveInformationType…

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.
1,027 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,445 questions
asked 2024-06-26T06:26:27.2933333+00:00
Sokoban 996 Reputation points
commented 2024-06-30T15:10:00.3133333+00:00
PRADEEPCHEEKATLA-MSFT 84,371 Reputation points Microsoft Employee
1 answer One of the answers was accepted by the question author.

how to set proxy on invoke-webrequest

can someone help me with how I can pass proxy here in this script and if I am missing any syntax here? Full script in comment section! running into defender.ps1 is not recognized and a invalid err token error Invoke-WebRequest @parameters .\defender.ps1…

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,445 questions
asked 2024-06-14T14:10:40.7033333+00:00
Sara 421 Reputation points
accepted 2024-06-28T13:47:04.06+00:00
Sara 421 Reputation points
2 answers

How can I combine 2 get-ADComputer queries in 1

Can someone please help me? I am trying to find computers that match this criteria (see from screenshot Screenshot 2024-06-26 085801.png) Right now I have 2 queries, Find all enabled computers : $allEnabledComputers=Get-ADComputer -Filter…

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,445 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,272 questions
asked 2024-06-27T02:44:50.9366667+00:00
BMBM83 0 Reputation points
answered 2024-06-27T18:59:51.69+00:00
Rich Matheisen 45,591 Reputation points
20 answers One of the answers was accepted by the question author.

powershell script to disable and move computers to other ou

I want to disable a bunch of computers and move them to another OU in AD thru Powershell. Cannot get to work though, have tried several scripts but it does not work: cannot find object beneath dc=xxx,dc=xxx However when i do a move adcomputer in…

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,445 questions
asked 2021-01-06T09:01:46.277+00:00
corne nietnodig 196 Reputation points
commented 2024-06-27T08:22:18.63+00:00
Huw Jones 0 Reputation points
2 answers One of the answers was accepted by the question author.

Listing file information filtered on values in a file

Hi, I would like to list sizes on all files in a directory, but the listed file names must match filenames picked up from a file. Basic information file size from this; Get-ChildItem -Path "\servername\DATA\files" -File | Select-Object…

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,445 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,272 questions
asked 2024-06-26T09:18:57.3433333+00:00
Fredrik M 206 Reputation points
accepted 2024-06-27T07:02:42.51+00:00
Fredrik M 206 Reputation points
0 answers

Get-AdminPowerApp fails when authenticating using service principal

I registered an application and added it as a Service Principal according to this guide: https://learn.microsoft.com/en-us/power-platform/admin/powershell-create-service-principal. I then logged in as this service principal. I am trying to get a list of…

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,445 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,272 questions
asked 2024-06-26T19:53:35.7433333+00:00
FabulousFab 21 Reputation points
1 answer

Powershell to copy the folder and files

Dear All, Currently using the below script to copy the single file but I need to copy folder, subfolder and files also. Can you someone help me with this and I need to see the progress of the copy $sourceFiles = Read-Host "Enter The Restored…

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,445 questions
asked 2021-04-15T13:27:10.827+00:00
Kalaimani Thirupathi 411 Reputation points
commented 2024-06-26T16:46:43.04+00:00
Andreas Baumgarten 102.1K Reputation points MVP
1 answer

How to change SQL Server Failover Cluster IP addresses with PowerShell

Hello, I am trying to create a script that will change Windows Failover Cluster and SQL Server Cluster IP addresses. I can do this by using Failover Cluster Manager GUI, but I need to script it in PowerShell. I cannot find any information on how to…

SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
13,198 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,445 questions
asked 2024-04-18T20:07:43.18+00:00
Yana Glozman 0 Reputation points
answered 2024-06-26T11:13:58.61+00:00
Kenneth Phillips 0 Reputation points