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…
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: …
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…
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?
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…
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, …
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' \ …
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?
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,…
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 =…
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…
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,…
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.…
“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…
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…
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
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,…
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. …
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…