4,434 questions
1 vote
0 answers
59 views
How to make sure that folder or file has been removed successfully from path before moving to next line in powershell? [duplicate]
I have prepared powershell script to remove files or folders from target path. Script is removing files or folders from target path but I noticed that if folder size is large (around 700-800 mb or ...
2 votes
2 answers
169 views
Replace-Files Powershell
I'm having some struggles with my PowerShell script. I am trying to make an Automated Script that will Perform the Utilman.exe Hack. The script has menus and options: Load, Unload, List Disk and ...
1 vote
1 answer
105 views
Type of operator in powershell
i read analyse of code and i can't determine what type of operator and how it works, it's powershell, can you help me please. I can't understand what is the operator and how it works : ${xadeoc} [ +52 ...
0 votes
0 answers
42 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 ...
0 votes
1 answer
156 views
How to exclude folders from a recursive list of path\name with Get-ChildItem in Powershell 2.0 (similar to dir /s /b /a-d in DOS)?
I need to list recursively all files with paths, but without the lines for folders, something like this: dir-name1\file-name1.ext dir-name1\file-name2.ext dir-name2\file-name3.ext dir-name2\file-name4....
2 votes
1 answer
72 views
Bad Request 400 error while using Invoke Rest Post method of Graph API for uploading ipa file
I am trying to create an LOB [.ipa] app at Intune by calling Graph API through Powershell 2. I am able to create the application at Intune but when I try to upload an ipa file, I receive: Bad Request ...
0 votes
1 answer
165 views
The object specified does not belong to a list - SharePoint Online PowerShell script
I am trying to get one of the properties (Batch date) of the SharePoint online document library file. I am getting below error Any suggestion on this please. Batch date is single line of text field ...
1 vote
2 answers
198 views
How to Parse and format fields to use a period as decimal separator, without thousand separator in Powershell Script
How to Parse and format fields to use a period as decimal separator, without thousand separator in Powershell Script Need to covert from European number format to standard format given below Desired ...
1 vote
3 answers
85 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'; -- ...
0 votes
0 answers
58 views
powershell scripts for aws lifecycle policy
I have a power shell script which reads the lifecycle policy using lifecycleConfig = aws s3api get-bucket-lifecycle-configuration --bucket $bucketName It returns the lifecycle policy but when there is ...
0 votes
2 answers
277 views
Performance Counter Report w/ Powershell and Cooked Values
I'm trying to capture available size, remaining size, and a number of logical disk counters for my D:\ drive. however the following are the results I get "Used Space" and "Free ...
0 votes
1 answer
66 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 - ...
0 votes
1 answer
169 views
How to run multiple commands at once with pause in PowerShell?
I want to run multiple commands at once with pause and but I'm not sure how. Here's my current code: Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass ipconfig /registerdns ipconfig /flushdns ...
0 votes
1 answer
27 views
Having problems with PowerShell
Anyone know how to open a directory in the PowerShell console so that I can find how many things are in my downloads file. I tried to type "dir" however, It did not give me what I was ...
0 votes
2 answers
111 views
How can I read and use the value of pipeline environment variable into my PowerShell and use that value subsequently on my URL of API Call?
I have created an pipeline variable on my release pipeline and I am able to read that value in my powershell script as well, the problem is that the value of that variable is not being populated/...