The increase assignment operator (+=) is often used in [PowerShell] questions and answers at the StackOverflow site to construct a collection objects, e.g.: $C
I have a list of servers where I have to find a specific user 'adtuser', and if it is part of the admin group in each server, and output a text file. For the mo
My current PS script is: $loc = "C:\Users\USER\Desktop\New folder1" $files = Get-ChildItem -Path $loc for ($i=0; $i -lt $files.Count; $i++) { $outfile = $file
We cancelled our antivirus software (Kaspersky Anti-Virus, duh) and depend on the Windows Defender in the meantime. We won’t be getting any SIEM server to
I'm using PowerShell to extract data from an API call, update it and then pass it back to the API. What I would like to know is whether or not there is a simple
Hi I want to write a powershell scrip that creates a folder for groups in a specific OU where I have set the extensionAttribute1. Get-ADGroup -filter * -Search
The Azure Powershell Az module comes with an assortment of modules such as Az.Accounts, Az.Aks, etc. Is it possible to update all these Az.* modules at once?
I am trying save urls created from an array into unique variables created in a loop in a Jenkins freestyle project. I need to use these variables in the next st
I'm writing a script and I was wondering if there is a way to give a variable for example $a from a script firstscript.ps1 to an other script secondscript.ps1 e
In pwsh call the following: Write-Host '{"drop_attr": "name"}' Result ok: {"drop_attr": "name"} Now do the same via pwsh: pwsh -Command Write-Host '{"dr
I have a little bit of confusion regarding the Multilist Field in Sitecore. Basically, I want to get all of the selected MultiList Field in PowerShell to do stu
First and foremost I'm new to Azure Functions and have only been working with it for a couple of weeks, so please bear with me. I was tasked with taking one of
This might be a pretty basic question, but i haven't seen it on the forms. Bear with me i'm new to powershell I'm trying to catch this exception(ManagementObje
I have the PowerShell extension installed under VSCode. When I open up a PowerShell script, VS Code automatically pops open a "PowerShell Integrated Console" wi
What exactly am I doing wrong here, it seems to be subtracting just fine but adding and multiplying seems to not work at all. How do I get it to do the calcula
AFAIK, the only way to change the type of an Office 365 mailbox to Shared is via Exchange Online Powershell, and seeing that I have to do so from an ASP.NET Cor
I am using npm after installing nodejs. I have installed it once before and I just finished deleting all the components because it kept giving the error in the
I am trying to find a service, stop it and then disable it remotely using Powershell. It can find and stop but cannot disable. For disabling, I have to run the
I am inside function #1 and triggering function #2. Function #2 has a variable that I want to get back into function #1 and use it. My output ends up being:
I am trying to validate a string of what should be comma separated integer values to use as success codes. If I start with an array with some invalid values, li