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.
I have registered an Application on Azure and I am trying to get an access token using the following command. $Auth=Get-ODAuthentication -ClientId 01xex4x7-f0e2
I tried the below commands but getting this error https://aka.ms/cli_ref Read more about the command in reference docs ERROR: argument --app/-a: expected one a
I am trying to curl an API on loop while the page token is not empty. Essentially get all the results. I am having difficulties implementing the pagination. $he
I added an environment variable to my System Path -> C:\Program Files\TEE-CLC. After that, I expect, that I can run my foo.exe which is under C:\Program File
I have a csv file containing metadata exported from a pst e.g from, to, cc, bcc. I have a list i can query: \*\*my list \*\* Wayne, John little, Joe I have mul
I have a powershell script that runs locally on my Windows Desktop running powershell 7.2.1. However when run on a Microsoft Hosted Windows-Latest agent in Azu
I am trying to use the command like so: a = 345 name = "myVM" Invoke-AzVMRunCommand -ResourceGroupName $RGName -Name $VMName -CommandId 'RunPowerShellScript' -S
After installing nushell (https://www.nushell.sh/) in my windows environment, I want to use the power of nushell in conjunction with powershell. For example, I