Skip to main content
The 2024 Developer Survey results are live! See the results

All Questions

0 votes
1 answer
32 views

Using data within a SQL table to build a WHERE-Object condition

I have been using PS for about 8-9 years. I want to use a SQL table to store a list of values to use in an exclusion WHERE Object clause. The source data is NOT in SQL. It is coming from a data set ...
Kevin Albrecht's user avatar
1 vote
1 answer
101 views

How to loop through all video files (kind:video) regardless of what extension those files(could be .mkv / .mp4 / .mov etc.) have?

So I know that by using this command we can loop through all the MKV / MP4 files in the current folder. But I don't want to have to Google and find out what all possible file-types or extensions the ...
Vicky Dev's user avatar
  • 2,121
2 votes
1 answer
36 views

How to use one PS dataset in a WHERE-OBJECT of another dataset

I have been using PS for about 10 years. Today I am stuck with finding a solution to a problem where I want to have items used in a WHERE-Object loaded from a SQL table. From what I have read, I need ...
veeduber's user avatar
0 votes
1 answer
47 views

Running PowerShell script in all Azure subscriptions

I have a reference script below from (stackoverflow) which will fetch the storage account container details. it will output the subscription, storageaccount, container name and RG name. Connect-...
sudhir karamchand's user avatar
0 votes
1 answer
47 views

trying to write a PowerShell script to look for certain strings in a text file

I am trying to write a PowerShell script to look for certain strings in a text file but not getting very far., What I want to do is: Search line by line until "set name 'Web Traffic Filter - ...
julianhaines's user avatar
0 votes
1 answer
69 views

Powershell Cannot find drive. A drive with the name ' C' does not exist

Wrote a PS script that reads a .ini file for certain parameters to copy files from folder_a to folder_b,c ..and so on. I get the dreaded " Cannot find drive. A drive with the name ' C' does not ...
NanoNet's user avatar
  • 258
0 votes
1 answer
88 views

Powershell script never stops running

I have a PS script that runs a script in a list of VMs within some subscription and gets a state of some agents and exports them on a CSV file. The problem is that the script keeps iterating in loop ...
woodyboow's user avatar
0 votes
2 answers
58 views

The term 'AFDiag.exe' is not recognized as the name of a cmdlet, function, script file, or operable program

I have a simple powershell script that executes afdiag.exe with a few parameters. Example: AFDiag.exe /Database:"Distributed SYS_Test" /Template:"STS-Heartbeat" /DelEF:"2024-...
NanoNet's user avatar
  • 258
0 votes
1 answer
76 views

I have installed SQL Server 2019 via PowerShell but I am not able to open SSMS [duplicate]

I have installed SQL Server 2019 via PowerShell, the installation completed successfully, but I am not able to open SSMS (Microsoft SQL Server Management Studio). I have one Windows server with ...
jimmyafflick's user avatar
0 votes
0 answers
37 views

Looking for a list of service accounts that have read or write ability in Active Directory

I am looking for a list of service accounts that have read or write ability in AD. If all of the service accounts have that ability, then I might be looking for service accounts that query active ...
On3N3xus's user avatar
0 votes
1 answer
241 views

Managing "Cannot bind argument to parameter 'Path' because it is null

I have a powershell script that will move files containing certain "key words" to the corresponding folder listed in various .csv files. While I seem to have the mechanism down to move the ...
NanoNet's user avatar
  • 258
-1 votes
2 answers
158 views

PowerShell script to export Array in CSV format with Headers

I've below PS Script which connects to API and puts responses on an Array List. I'm struggling to convert Array List to CSV file and giving them a Column Header. Anyone got Idea how to this can be ...
Raif's user avatar
  • 27
0 votes
2 answers
50 views

How to address mutable parameters like datatime in Powershell?

We have a server that is running out of space (435Gb remaining) and we want to know when it will as new 1Gb files are created every 15 hours consistently. So, I've crafted a script where users can ...
NanoNet's user avatar
  • 258
0 votes
0 answers
26 views

PowerShell script to upload multiple tables into MySQL workbench DB

I tried using the below script to achieve the solution programmatically instead of manually using the MySQL workbench window to import from self-Contained File located under a folder in C:\ drive> #...
tonyekas's user avatar
1 vote
0 answers
167 views

Powershell Access to Path is Denied

I have developed a git pre-commit hook for my workplace. The way it operates is as follows: There is a pre-commit file that invokes a pre-commit.ps1 file in the same directory. Both are withing the ....
aishraq's user avatar
  • 11

15 30 50 per page
1
2 3 4 5
185