We have many files which contain header lines beginning with HDR that need to be updated for clarity. I am new to coding in powershell and would like to know h
Im working on a script that cleanup old user account and some data from computers. I would like to run the script on 5 computers at one time from the attached l
this is part of a code that reminds users if their active directory password is about to expire. It used to work, but now I get this error out of a sudden! Mayb
In both cmd and powershell, when I input conda init powershell, it always failed as follows: (ifcmapping) C:\Windows\system32>conda init powershell no change
I am trying to write a PowerShell 5.1 script for monitoring jobs. I am having a problem writing a proper Get-Job table, the following is what I have. Get-Job |
I have few background jobs running in powershell and i'm trying to find a way to get the count of jobs "Running" and "Completed" which updates automatically onc
Simple export script to grab users from Active Directory and output a .csv file: $ad_users = Get-ADUser -SearchBase $adPath -LDAPFilter $filter -Properties samA
What other properties does one need to add to the ConnectionContext while connecting to AzSQL using an AzAD account? $srv = new-object ('Microsoft.SqlServer.Man
I have a situation regarding PSObject. Thing is when I write only the same PSObject in different script it returns what it should. $returnobject = New-Object -T
I have a text file with multiple lines. Many are blank, or so I am assuming from looking at the file contents. I would like to write/print only the lines that c
Please take a look at these two threads : how-to-clear-eventlog-with-powershell-or-wevtutil delete-old-entries-of-the-event-log-with-powershell Some days ago so
I want to get AD groups with no members like below. How can I get this? My desired output: Group Name, Members Group01 , YES GRoup02 , NO Here is my script :
Newbie in windows command. I am trying to connect network folder in windows10 and find the most recent files(created in says past one day) with path includes sp
I have packaged an application with the App Deployment Toolkit. I install the application with the command: Start-Process -FilePath $setupx64 -ArgumentList "/si
Does someone know how you can search troughs FSPs by sAMAccountNames Get-ADObject -Filter {ObjectClass -eq "foreignSecurityPrincipal"} -Properties msds-prin
I use Powershell 5.1 daily in Windows Terminal. However, since a few days, my Oh My Posh theme stopped working, and printed an error that said it couldn't find
I use Powershell 5.1 daily in Windows Terminal. However, since a few days, my Oh My Posh theme stopped working, and printed an error that said it couldn't find
Since I updated the Powershell Pnp-module to the latest version (1.10.0) I get the following error when trying to connect to PnpOnline: PS C:\Users\Admin> Co
We have a small development/testing environment setup on Azure VMs that only run during business hours. Sometimes one of our Devs may complete a PR after hours.
We have a small development/testing environment setup on Azure VMs that only run during business hours. Sometimes one of our Devs may complete a PR after hours.