All Questions
Tagged with powershell powershell-3.0
2,770 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 ...
0
votes
2
answers
63
views
Get DL Groups user is member of in Exchange online
I'm trying to get the list of DL groups user is member of in O365. I'm using below PS Script but I'm getting the error message.
$user = "[email protected]"
$dlGroups =Get-DistributionGroup | ...
1
vote
2
answers
268
views
hexadecimal value 0x00, is an invalid character. Line 2, position 1
We are running a PowerShell command and in that PowerShell command we are calling the XML file and trying to install veeam software. I am getting an error like
hexadecimal value 0x00, is an invalid ...
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'; -- ...
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 ...
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 "...
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 ...
0
votes
1
answer
63
views
error with SQL connection during installing MSI package with PowerShell script
I am trying to write a script in powershell that will install 10 servers on virual machines. It's just simple script where I'm specifying list of arguments, path of MSI package and run passive ...
0
votes
1
answer
55
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 ...
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 ...
2
votes
1
answer
49
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 ...
0
votes
1
answer
93
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-...
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 - ...
0
votes
1
answer
672
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 ...
0
votes
1
answer
110
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 ...