Ask Question
PowerShell is a cross-platform command line and scripting utility from Microsoft. Use this tag for questions about writing and executing PowerShell scripts ONLY. Programming questions specific to the cross-platform version PowerShell Core (Windows, macOS, and Linux) should be tagged [powershell-core]. Questions about system administration should be asked on Super User or Server Fault.
103,982 questions- Bountied 0
- Unanswered
- Frequent
- Score
- Unanswered (my tags)
Passing Header Auth Bearer token as variable in Powershell Invoke-RestMethod
I have the below code, where i am trying to capture the access token and passing it as a variable in the Headers section for Bearer token, but looks like the $Token.access_token is not getting ... powershell http-headers access-token powershell-7.0- 141
What's the difference between using Set-Variable vs. $varName = in PowerShell? [duplicate]
What's the difference between defining a variable using these two ways: Set-Variable test -Option Constant -Value 100 and $test = 100 powershell- 151
how do i solve these on my laptop how to enable script running [duplicate]
enter image description here sanity : File C:\Users\sulaimon abraham\AppData\Roaming\npm\sanity.ps1 cannot be loaded. The file C:\Users\sulaimon abraham\AppData\Roaming\npm\sanity.ps1 is not digitally ... windows visual-studio powershell- 1
Can I use Python or PowerShell to get the names of all my Amazon Music Playlists? [closed]
I want to regularly extract a list of the names of my Amazon Music playlists (not the songs in them). I've got beginner-middle skills in both Python and PowerShell, including Web API & JSON usage. ... python powershell amazon- 63
I am looking for variable text in a file that follows "source=" and is before ";initial" [closed]
I have created and audit script that I can place on a server that has our software on it so as to automatically retrieve most of the information I need. The last piece is driving me crazy. I’m looking ... regex powershell- 1
Screen sharing with powershell
i am trying to make a screen viewer. i have an C# server side that works good and i have C# client side that works good. this is my C# client side code: using System; using System.Collections.... powershell- 11
What is the best way to check PowerShell Execution Policy in C#?
When you run Get-ExecutionPolicy in PowerShell, it gets the effective execution policy. I need to know the best way to get that information in C#. I don't need to know how to change it like many other ... c# powershell- 135
.net error - are you missing an assembly reference?
I've created .net program using dotnet new console -o MyApp -f net6.0 command just as documented in I've modified the file: ... c# .net powershell- 37
Formatting .CSV in Powershell
So I'm writing a powershell script to help sort data I have, but I need that data in a certain format. FN: ORG: Title Tel: Email: Example A Exam A Exa A EX A ... powershell- 11
How would I disaply only the last two days of windows updates in powershell?
Okay, so I'm in the process of writing out a script, and I'm at a point where I want to count the number of updates installed in the last day or so. I'm using Get-CIMInstance because the get-wuhistory ... powershell- 13
Cannot remove .sonarqube folder on a Windows agent in a DevOps Server pipeline due to an invisible file
In our pipelines building .NET apps, we use SonarScanner for Azure DevOps version 4.23.1, using the MSBuild integration. Sometimes, the tasks leave some mess in the .sonarqube directory inside the ... powershell sonarqube azure-pipelines azure-devops-server- 11.5k
Activate virtual environment from a python script
I am trying to create a python script for automating some of my personal stuff. In the script, I first want to activate my virtual environment and then do some other tasks, (API calls and processing ... python powershell cmd virtualenv python-venv- 509
Finding DOM elements with RelativeBy in Selenium 4 and Powershell
Riffing off of this question here: Finding elements with PowerShell and Selenium 4 It's pretty easy use Powershell with Selenium 4 to find elements on the page like this with By.Id: $driver.... powershell selenium selenium-chromedriver selenium4- 1,515
Powershell Curl alternative with Multiform data in Body getting 400 BAD request
I have a curl command that i translated in to powershell but i get Below error ErrorMessage The remote server returned an error: (400) Bad Request. CanTimeout : True ReadTimeout : -1 WriteTimeout ... powershell powershell-2.0 powershell-3.0 azure-powershell invoke-webrequest- 141
AD: How can I modify the nTSecurityDescriptor/DACL/ACL from DirectoryServices.Protocols.LdapConnection?
I have tried with ModifyRequest but unfortunately I was not able to find the proper way. I see it is very straightforward to do with DirectoryEntry but I must use the raw LdapConnection since it is ... powershell active-directory- 17
15 30 50 per page12345…6933 Next