Category "powershell"

AD user disabled date is in extensionAttribute, need to delete users based on that

We have a third party LDAP system managing people. AD users that represent actual employees are created and maintained by a feed from this LDAP system. We would

AD user disabled date is in extensionAttribute, need to delete users based on that

We have a third party LDAP system managing people. AD users that represent actual employees are created and maintained by a feed from this LDAP system. We would

Create team with powershell

Everyone. I am going to create team with powershell. I have created .ps1 file and write the content as following. Connect-MicrosoftTeams New-Team -DisplayName "

Powershell WPF handle single row colors

I'm trying to adapt a script of mine who just shows a simple WPF datagrid. It has 4 Columns and i need to set a color on a few rows if its content respects a co

Invoke-RestMethod : {"errors":[{"msg":"Either \u0027analysisId\u0027, \u0027projectId\u0027 or \u0027projectKey\u0027 must be provided"}]}

I am trying to get quality gate status from sonar server using API by passing pull request ID but I am getting error: $QualityGateResult = Invoke-RestMethod -Me

Graph API Device Management Configuration Compliance Policy Search

We have multiple clients that have a security software compliance policy in place. My goal is to look into those policies, and pull out the devices that are not

php stdin input return blank value with arabic chars

i'm makin my own php cli but i need to use arabic letters so fgets return blank value from command line input Knowing i'm using powershell to run commands funct

How can I define an expiry date to a scheduled task using PowerShell

Is there a way I can schedule a task using PowerShell that for 30 days runs on daily basis every 15 mins, and after those 30 days it expires? I have done the sc

MSBuild not publishing Web.config to the root of the publish folder

I'm running the following MSBuild command from PowerShell to publish a solution file: $Configuration = "Release" $slnFullPath = "...\Solution.sln"; $PublishPath

activate 2 Edge windows with powershell

I'm trying to write a simple script which automatically cycles tabs on 2 different edge windows, I have it working on one window in the code below while(1 -eq 1

What type of accessToken scope/resourceType do I need when using Pnp-Powershell

In the PNP Docs it shows: https://pnp.github.io/powershell/cmdlets/Connect-PnPOnline.html#example-13 you can access the resource with an Oauth2 AccessToken: Con

How to correct VS Code terminal pointing to wrong folder C:\Windows\System32\WindowsPowerShell\v1.0?

I try to open a React project path in terminal window using VS Code's Open in Integrated Terminal (Ctrl+Shift+`), but it sets C:\Windows\System32\WindowsPowerSh

Powershell - MS Edge - Automation

Since IE11 is retiring soon, I was attempting to re-write my PS Scripts to automate MS Edge. I have searched online and apparently I need edgedriver_win64 and a

export a string from poweshell 1 to powershell 2

I have a shell script file. ./1.ps1 ./2.ps1 I generate a string such as env-0 in 1.ps1 and need to export it to 2.ps1.UPDATE: 1.ps1 generate many string and I

export a string from poweshell 1 to powershell 2

I have a shell script file. ./1.ps1 ./2.ps1 I generate a string such as env-0 in 1.ps1 and need to export it to 2.ps1.UPDATE: 1.ps1 generate many string and I

How to get an error code from Terraform Apply

I need to know how to get an error code and possibly the error from a terraform apply task into a powershell variable - i am sure this is possible but I cannot

powershell TCPclient timeout per connection try

I am trying to create a timeout for a socket in powershell and I have encountered a problem that I do not know how to solve even after many hours of Google sear

Checking ExtensionAttributes

I had a list of 50 users with the Active Directory extensionAttribute12 sent to me, I was told that extensionAttribute13 was mixed up. So far, as I go through a

Azure PowerShell Connect-AzureAD and Connect-MsolService both with MFA connect

i use a script to connect AzureAD and MsolService. Connect-AzureAD Connect-MsolService and it ask me both for username, password, and telephone verification. I

In Powershell, how to wait for parallel jobs to finish before proceeding?

Based on How to execute a PowerShell function several times in parallel?, I'm able to do this, where I stop all running jobs, in parallel. # Run this in paralle