5,455 questions with Windows Server PowerShell tags

Sort by: Updated
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,424 questions
Azure Databricks
Azure Databricks
An Apache Spark-based analytics platform optimized for Azure.
2,070 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,455 questions
asked 2020-08-03T17:53:23.913+00:00
Raj D 586 Reputation points
commented 2020-08-11T22:56:26.15+00:00
Raj D 586 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,455 questions
asked 2020-08-07T13:58:31.257+00:00
MrFlinstone 506 Reputation points
commented 2020-08-11T06:01:28.553+00:00
soumi-MSFT 11,766 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,455 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,455 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,190 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,455 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,455 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.) 34,191 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,455 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.) 34,191 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.
614 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,455 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,455 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,359 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,455 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.
444 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,455 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 85,351 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,455 questions
asked 2020-08-05T14:33:47.467+00:00
Vaibhav Chaudhari 38,681 Reputation points
accepted 2020-08-05T15:24:28.523+00:00
Vaibhav Chaudhari 38,681 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,597 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,455 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,455 questions
asked 2020-07-30T18:43:48.98+00:00
Zachary Brass 1 Reputation point
answered 2020-08-05T01:55:44.627+00:00
1 answer

checking all on-premise DCs for last logon of csv list of users

Hi all, I hope all is well wherever you may be I have been asked to check the last logon of around a thousand accounts, now listed in a csv. I can run Import-csv "d:\temp\path_to.csv" |foreach-object {get-aduser $_.samaccountname…

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,455 questions
asked 2020-07-29T21:40:49.863+00:00
somnio 1 Reputation point
commented 2020-08-05T01:50:36.03+00:00
1 answer One of the answers was accepted by the question author.

counting an array 10 at a time until complete

Hello, How do you loop through an array 10 at a time until complete? I would like to reboot quite a few servers in a cluster and have come up with the following but I am curious is there is a way get 10, then get the next 10 and the next 10, etc…

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,455 questions
asked 2020-08-03T20:55:27.81+00:00
Van Thillo, James 21 Reputation points
accepted 2020-08-04T19:35:03.527+00:00
Van Thillo, James 21 Reputation points
4 answers

Robocopy not deleting source files

Hi Experts, Could you please advice on the following. Thank you. 1) Robocopy is having issues deleting the source files after the move. Below is the error. (from Robocopy.log) ERROR 32 (0x00000020) Deleting Source Directory \server01\Folder1\ The…

Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
12,597 questions
Windows Server Backup
Windows Server Backup
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.Backup: A duplicate copy of a program, a disk, or data, made either for archiving purposes or for safeguarding valuable files from loss should the active copy be damaged or destroyed.
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,455 questions
asked 2020-07-30T22:24:11.783+00:00
jayanthi ramprakash 46 Reputation points
commented 2020-08-03T21:46:23.823+00:00
Rich Matheisen 45,831 Reputation points
1 answer

PowerShell DSC - Unable To Access a Share using Script Resource

Hi, I am looking to set up a DSC Script to download some files from a network share and unzip them to a location on the remote node. I cannot get the script to work, I have granted the correct permissions to the share, the receiving node has Full Control…

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.
426 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,455 questions
asked 2020-07-30T15:44:00.643+00:00
fja 1 Reputation point
answered 2020-08-03T08:05:44.243+00:00
1 answer

Invoke-RestMethod issue with plus symbol in URL

I have an API that I access from a linux server now but it is being decommissioned so I am converting my API calls to windows. I use this call in linux and it works fine: curl…

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,455 questions
asked 2020-07-30T22:05:57.073+00:00
Bill C 1 Reputation point
answered 2020-08-02T20:09:16.913+00:00
Rich Matheisen 45,831 Reputation points
1 answer

How can I find all sub-domains using PowerShell?

I can use Resolve-Dns to retrieve an A record (if one exists) for a given domain name. Is there a way, using PowerShell, to find all sub-domains? Here's a specific use case: One of Microsoft's stated domains to allow through firewalls is:…

Windows DHCP
Windows DHCP
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.DHCP: Dynamic Host Configuration Protocol (DHCP). A communications protocol that lets network administrators manage centrally and automate the assignment of Internet Protocol (IP) addresses in an organization's network.
1,034 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,455 questions
asked 2020-07-31T11:45:58.277+00:00
Kevin D. Boutelle 21 Reputation points
answered 2020-07-31T19:52:09.493+00:00
Rich Matheisen 45,831 Reputation points