I am trying to create a powershell snippet that will copy the first column of a multi-line piped input to clipboard. The intended usage is: kubectl get pods | c
I am trying to do a simple ticket/incident file export using PowerShell. All of our tickets go into the Service manager 2019 Console. What I am trying to do is
I have restored Azure Database for MySQL single server using powershell script below. Now, post restore the DB I had to copy all the firewall rules and other se
Hello Guys! Why is Winver showing me Windows Version 21H2 but Powershell Command 2009? Get-ComputerInfo | select WindowsProductName, WindowsVersion Info: With
let's imagine I have a link - https://chromedriver.storage.googleapis.com/LATEST_RELEASE where I can get the latest Chrome release version. I need to retrieve t
Background : The REST API request works correctly when I remove the variable $Description and put a string in line 11 . If I leave the variable then it doesn't
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