I am working on a Powershell script to adjust configs of security cameras at dusk and dawn (you'd think the vendor would have a scheduling function...). What i
I am a student trying to complete an assignment in Java. I use VS Code to write, but I use PowerShell to compile and run the code to ensure compatibility outsid
I have modified several thousand files with a various things requested by the owners. Now, I need to add one final thing and I am not 100% on how to do it. Scen
I am using [adsisearcher] to grab AD User info because it's way faster than get-aduser. I am also trying to figure out how to add it into a hashtable or diction
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