5,381 questions with Windows Server PowerShell tags

Sort by: Updated
2 answers One of the answers was accepted by the question author.

Requirements for Exchange Online Management module V2

Hey, I am trying to follow the official requirements for Exchange Online Management V2 module (https://learn.microsoft.com/en-us/powershell/exchange/exchange-online-powershell-v2?view=exchange-ps). I have installed .net 4.5 and Windows Management…

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,381 questions
asked 2020-08-13T10:45:33.157+00:00
Nikita Krivets 481 Reputation points
accepted 2020-08-18T07:10:18.367+00:00
Nikita Krivets 481 Reputation points
2 answers One of the answers was accepted by the question author.

Output results of Remove-ADComputer

I need to remove a list of computers from Active Directory. I also need the results to be output to a log or text file. The remove command works and a file is generated, but the generated file is empty. I am using the following command: …

Active Directory
Active Directory
A set of directory-based technologies included in Windows Server.
5,897 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,381 questions
asked 2020-08-14T17:23:24.413+00:00
Rusty Peterson 21 Reputation points
answered 2020-08-17T07:01:42.943+00:00
Vicky Wang 2,646 Reputation points
1 answer One of the answers was accepted by the question author.

Powershell Script to Retrieve AD User, Group, Group Members Info

Good morning and Hi to all! I am a newbie to Powershell scripting and have a task on hand but unable to get the results I needed and hope I can get some help here. There are many Groups in AD, but I need to focus only on 2 distinct Groups namely…

Active Directory
Active Directory
A set of directory-based technologies included in Windows Server.
5,897 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,381 questions
asked 2020-08-14T03:15:13.083+00:00
Ronald Seow 206 Reputation points
accepted 2020-08-17T04:15:37.97+00:00
Ronald Seow 206 Reputation points
3 answers

List extended permissions on AD

Hello I'm searching for a way to list the permissions and extended permissions on my active directory root. I've tried with the get-acl command and some others, but I’m not able to get it. Is it the correct way?

Active Directory
Active Directory
A set of directory-based technologies included in Windows Server.
5,897 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,381 questions
asked 2020-08-07T11:28:22.767+00:00
Ruben Vazquez 1 Reputation point
commented 2020-08-17T02:37:26.823+00:00
Daisy Zhou 18,706 Reputation points Microsoft Vendor
1 answer

Unable to install packages with DSC configuration- Server 2019

Hi Team, I am trying to install packages using PackageManagement (DSC resource). The below mentioned script works fine in Server 2016 and installs required packages. But in Windows server 2019 I am getting errors like ValidateNodeResources : Resource…

Windows Server Management
Windows Server Management
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.Management: The act or process of organizing, handling, directing or controlling something.
421 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,381 questions
asked 2020-08-13T11:09:16.157+00:00
Karthik Shanmugam 1 Reputation point
commented 2020-08-14T05:23:17.97+00:00
Soccan 16 Reputation points
1 answer

为什么 Power BI Desktop 加载从Excel 里的文件无法加载呢?

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,381 questions
asked 2020-08-12T08:35:38.187+00:00
Daisy 1 Reputation point
answered 2020-08-12T09:17:36.807+00:00
Ian Xue (Shanghai Wicresoft Co., Ltd.) 29,891 Reputation points Microsoft Vendor
2 answers One of the answers was accepted by the question author.

import json payload from a rest api and save as json documents in adls gen2

Hi, I am trying to import json payload from a REST api GET method and save json documents into ADLS Gen2 using azure databricks. GET: https://myapi.com/api/v1/city GET method Output:     [     {"id":2643743,     …

Azure Data Lake Storage
Azure Data Lake Storage
An Azure service that provides an enterprise-wide hyper-scale repository for big data analytic workloads and is integrated with Azure Blob Storage.
1,349 questions
Azure Databricks
Azure Databricks
An Apache Spark-based analytics platform optimized for Azure.
1,937 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,381 questions
asked 2020-08-03T17:53:23.913+00:00
Raj D 581 Reputation points
commented 2020-08-11T22:56:26.15+00:00
Raj D 581 Reputation points
1 answer

Calling an API using powershell

Hi All. I have a curl script to call an api, but would like to use Ps to call it in the form of a loop 100 times and store he output response code i.e 200 etc. curl --location --request GET 'https://my-api-url/224/employee' \ …

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,381 questions
asked 2020-08-07T13:58:31.257+00:00
MrFlinstone 481 Reputation points
commented 2020-08-11T06:01:28.553+00:00
soumi-MSFT 11,716 Reputation points Microsoft Employee
1 answer

Tool to create PS class from json schemas?

We have several tools to create POJO using json schema. Is there a way for powershell developers to create PS classes using json schemas defined?

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,381 questions
asked 2020-08-05T12:07:21.267+00:00
deadpool 1 Reputation point
answered 2020-08-10T01:48:23.87+00:00
2 answers One of the answers was accepted by the question author.

How to identify SNMP community string whether Read only or Read and Write for window

How can I identify whether SNMP community strings are 'read only' or 'Read and Write' for all versions (v1,v2c,& v3) to use PowerShell? I am only allowed to use PowerShell and SNMPWalk, for finding SNMP type on Windows servers (VM, Blade,…

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,381 questions
asked 2020-08-04T02:26:55.13+00:00
Nielsen, Doo Hee 20 Reputation points
commented 2020-08-10T00:23:20.483+00:00
Nielsen, Doo Hee 20 Reputation points
3 answers One of the answers was accepted by the question author.

Azure Automation: Cannot Authenticate from Powerapps module

Hello, I'm trying to use the powerapps administration module (https://www.powershellgallery.com/packages/Microsoft.PowerApps.Administration.PowerShell/2.0.72) inside an Azure Runbook. However when I try to authenticate using: > $pass =…

Azure Automation
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
1,121 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,381 questions
asked 2020-08-03T16:47:58.773+00:00
Jorge Rodrigues 181 Reputation points
accepted 2020-08-07T11:43:29.017+00:00
Jorge Rodrigues 181 Reputation points
1 answer

Exclude few sub folders while copying to remote server

Hi. I am trying to copy the folder and files from one server to another, based on a configuration xml. The source folder contains data as below: Backup Backup\folder1 Backup\folder2 Backup\folder3 .. like this I want to exclude folder2, folder4, folder5…

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,381 questions
asked 2020-08-07T10:09:59.543+00:00
Ian Xue 81 Reputation points
answered 2020-08-07T10:12:39.597+00:00
Ian Xue (Shanghai Wicresoft Co., Ltd.) 29,891 Reputation points Microsoft Vendor
1 answer

Command to get the users list for whom rsop is present.

As we know to get the RSOP from users, the users need to satisfy two criteria, 1) the user should have logged into the computer atleast for one time, 2) the user should have permission to read the group policy results. I am looking for a command/script,…

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,381 questions
asked 2020-08-07T10:05:07.207+00:00
Ian Xue 81 Reputation points
answered 2020-08-07T10:07:22.96+00:00
Ian Xue (Shanghai Wicresoft Co., Ltd.) 29,891 Reputation points Microsoft Vendor
3 answers One of the answers was accepted by the question author.

Powershell script call function based on value in excel cell

I am looking for a way to take appropriate action or call function based on value in cell of excel. e.g. if cell value has true then enable user for Skype Enterprise Voice and if value is false then first enable for Skype and then for EV as well.…

Skype for Business
Skype for Business
A Microsoft communications service that provides communications capabilities across presence, instant messaging, audio/video calling, and an online meeting experience that includes audio, video, and web conferencing.
603 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,381 questions
asked 2020-08-05T16:21:32+00:00
Absar 21 Reputation points
accepted 2020-08-07T08:40:52.223+00:00
Absar 21 Reputation points
1 answer

“az webapp create-remote-connection” pauses script

I'm attempting to script a backup process of a docker volume hosted in a azure linux app service, I need to create a ssh tunnel using powershell. Calling the script from task scheduler with the following : powershell -noninteractive -File…

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,381 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
6,903 questions
asked 2020-07-29T21:26:44.107+00:00
Steven H 1 Reputation point
commented 2020-08-06T23:50:46.68+00:00
Steven H 1 Reputation point
3 answers One of the answers was accepted by the question author.

Running a powershell script

I want t connect to powerbi service but im getting the below error: Connect-PowerBIServiceAccount : The term 'Connect-PowerBIServiceAccount' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling 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,381 questions
asked 2020-08-06T08:34:18.37+00:00
SvcISPwrBIEmbeddedPrd 21 Reputation points
answered 2020-08-06T11:59:54.7+00:00
SvcISPwrBIEmbeddedPrd 21 Reputation points
3 answers

azure analysis service: how to start and pause service with on premise powershell

Hello All, I need your help. I have an azure analysis service that I want to start and pause at different times of the day. I want to use Powershell to execute a script to do this task. Do you know how I can do it? Thank you for your help

Azure Analysis Services
Azure Analysis Services
An Azure service that provides an enterprise-grade analytics engine.
438 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,381 questions
asked 2020-07-29T22:53:27.977+00:00
H. Laguide 1 Reputation point
commented 2020-08-06T07:04:43.957+00:00
PRADEEPCHEEKATLA-MSFT 77,676 Reputation points Microsoft Employee
1 answer One of the answers was accepted by the question author.

Get the powershell output either propertly formatted out or directly in CSV

Below code prints output with empty lines in between. I have to manually copy output, remove empty lines and add comma in between and then copy to excel. How can we have have output like or directly save in CSV folder1, 12.34, 555,666 folder2,…

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,381 questions
asked 2020-08-05T14:33:47.467+00:00
Vaibhav Chaudhari 38,601 Reputation points
accepted 2020-08-05T15:24:28.523+00:00
Vaibhav Chaudhari 38,601 Reputation points
5 answers

Powershell - Export-CliXml Structure without Nodes

Hello, iam working with PS and WSUS quite some time. I've made a script which automaticaly approves updates. Within this script i export the approved updates (Title, ID and arrivaltime) via "Export-CliXml" into a XML-File. …

Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
12,169 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,381 questions
asked 2020-07-29T07:48:22.69+00:00
BastiFantasti 6 Reputation points
answered 2020-08-05T02:02:41.237+00:00
2 answers

Help with Powershell New-Item Commandlet

I am trying to create new items in Powershell, however, I get caught at the Item Type. This error message pops up and I do not know how to fix it: A parameter cannot be found that matches parameter name 'FileType'. What do I need to do? This is the line…

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,381 questions
asked 2020-07-30T18:43:48.98+00:00
Zachary Brass 1 Reputation point
answered 2020-08-05T01:55:44.627+00:00