Skip to main content

All Questions

0 votes
0 answers
29 views

API returning response as 3 instead of json when we copy request from "copy as powershell" option

when i tried to copy request objects from chrome browser by "Copy as PowerShell" option , and try to paste that into PowerShell in my machine. i am getting content in response as 3 ,instead ...
Dgan's user avatar
  • 10.3k
1 vote
3 answers
77 views

How to add single quotes to one of the columns in PowerShell?

I have the following lines in a file: pc_cc_text$fx_review1 CONSTANT VARCHAR2(100) := 'For Company Review'; -- AD_PRT_AUTH_(MSP) pc_cc_text$fx_review2 CONSTANT VARCHAR2(100) := 'For Dept Review'; -- ...
user27817415's user avatar
0 votes
1 answer
51 views

How to delete all lines AFTER and INCLUDING a certain string?

I have a need to delete all lines in a csv AFTER and INCLUDING a certain string. The string is as follows : S_Channel_Alt_View The file should then look like this I've tried to set something up ...
chrtak's user avatar
  • 71
0 votes
1 answer
61 views

I need a script for SCCM detection key to Match Value Data

/* I need a script SCCM detection key for match "Value Data" in "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall" Without using "ValueName" Match "...
KIRAN's user avatar
  • 1
0 votes
2 answers
161 views

How to append the data into HTML file or HTML table using PowerShell

I am working on a health check PowerShell script that is generating an HTML file. Now, I want to update the solution where If I run the same script again (as a post check) it should create maybe ...
VrindaPrash's user avatar
1 vote
1 answer
326 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,213
0 votes
1 answer
59 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
-1 votes
2 answers
427 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
1 answer
55 views

Fetch all the files in a folder but exclude all the files in a sub folder by using powershell

I have a powershell script to fetch all the files in a folder but exclude all the files in a sub folder. I am using the following script, but not giving the expected results. Get-ChildItem -Path $...
DAR's user avatar
  • 49
1 vote
1 answer
307 views

Passing admin credentials in Start-Process cmdlet

I am trying to build a script that installs an application with encrypted local admin credentials on the pc when the user logged in is not an admin. I am running the below cmdlet: $User = "admin@...
Arpit Kandhari's user avatar
0 votes
0 answers
78 views

Use same powershell module with different instances in same script

So, I have a PowerShell module that I want to use called psPAS. Its a wrapper containing APIs for CyberArk software where we use New-PASsession (and pass the URL) to authenticate to CyberArk ...
Piyush Garg's user avatar
-1 votes
1 answer
41 views

Sort text file containing date in powershell

I am new to powershell. I have a text file as below. I need to sort this file in powershell. ` <!DOCTYPE html> <html> <head><meta name="robots" content="noindex&...
Priyanka Gokave's user avatar
0 votes
1 answer
100 views

get text inside a section and remove the empty section in PowerShell

I have a file with below content parallel ( { some content 1 some content 2 build ( 'Job3', parameter5: value5) some content 3 some content 4 } ) ...
Hemanth's user avatar
  • 51
1 vote
1 answer
158 views

Replace a value with regular expressions in PowerShell

I have a value assigned to variable, trying to add this value to another varible inside some regular expressions. $displayName= "revison" $updateddisplayName = "updateddisplayName = &...
Hemanth's user avatar
  • 51
0 votes
1 answer
57 views

PowerShell Backup copies Files outside of Backup-Zip

I am working on a Backup tool with PowerShell and I have a problem where a Zip-File with the Backup is created but the files are also copied outside of the Zip-File so at the end of the day I have ...
LC195's user avatar
  • 31

15 30 50 per page
1
2 3 4 5
30