Skip to main content
Filter by
Sorted by
Tagged with
1 vote
0 answers
59 views

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 ...
Rakesh Kushwah's user avatar
1 vote
1 answer
104 views

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 ...
mobile_beginner_2015's user avatar
0 votes
1 answer
153 views

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....
safesphere's user avatar
0 votes
1 answer
164 views

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 ...
gokulnath's user avatar
1 vote
3 answers
85 views

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
2 answers
274 views

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 ...
NanoNet's user avatar
  • 334
0 votes
1 answer
166 views

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 ...
Kourosh's user avatar
0 votes
2 answers
111 views

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/...
ClinOne Test2's user avatar
1 vote
2 answers
445 views

We are encountering an error when attempting to add a new row to an Azure Storage Table using the -UseConnectedAccount context rather than a key based authentication in PowerShell. Error Message is: ...
PUpskill's user avatar
1 vote
1 answer
4k views

I have to install the below Visual C++ software via powershell. VC_redist_2015-2022x64 VC_redist_2015-2022x86 I have to first check whether the Visual C++ x64 & x86 installed on my server. If ...
jimmyafflick's user avatar
-1 votes
2 answers
1k views

when I was working with SharePoint Online using PowerShell, I had a requirement to get all the List collection present in my SharePoint site. I got all the lists using PnP PowerShell commands. But i ...
Haritha's user avatar
0 votes
0 answers
118 views

$UserName = "user" $Password = "password" $API_URL = "https://jenkinsservername" $JobName = "firstjob" $JobToken = "generatedtoken" $header = @{} $...
user17095978's user avatar
2 votes
2 answers
844 views

In SharePoint, I need to delete a SharePoint group connected sites through PowerShell, but i was facing an error This site belongs to a Microsoft 365 group. To delete the site, you must delete the ...
Likhitha Liki's user avatar
-1 votes
2 answers
493 views

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
56 views

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
352 views

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
1 answer
187 views

I am trying to register for Enterprise App from Web Application via MSAL. When I tried to add "https://outlook.office.com/Exchange.Manage" Scope it throwing error asked for scope 'Exchange....
Veena Devi's user avatar
0 votes
1 answer
74 views

I have a pipeline which is running a series of Powershell@2 task. Since last Friday, I started to see the output different from before. Please check the current output below: enter image description ...
Basil's user avatar
  • 3
0 votes
1 answer
1k views

I’m using Power Automate Desktop and running a custom PowerShell script using the "Run PowerShell Script" action. Here is the PowerShell script I’m using: # Get the 1st day of the current ...
Vansh Shah's user avatar
1 vote
1 answer
747 views

Edit: The issue I'm facing is from an ADO pipeline I have a ps1 script that does parallel execution. I want to set the foreground color to green but the code is not working when I am setting it inside ...
user18610347's user avatar
0 votes
1 answer
57 views

I am encountering an error while attempting to retrieve domain policies and organizational units (OUs) within the domain. script: Import-Module GroupPolicy $forest = [System.DirectoryServices....
subha's user avatar
  • 1
0 votes
0 answers
27 views

can I shorten the following definitions as much as possible? function Get-Info { [CmdletBinding()] Param( [Parameter(Position = 0, Mandatory = $True)][String]$A, [Parameter(...
Ichigo Kurosaki's user avatar
0 votes
1 answer
132 views

I have one powershell script, this script is supposed to execute on Domain controller. The script which is executed from Domain Controller server will fetch all the member server details and will ...
jimmyafflick's user avatar
0 votes
0 answers
80 views

When I try to run Parallel VM restore in PowerShell. I receive the following error message. We have functions for restoring VM, but the Parallel one does not work. Could someone please assist me with ...
Kalai 's user avatar
0 votes
1 answer
106 views

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
2 3 4 5
89