Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

Recent questions tagged powershell

0 votes
1.4k views
1 answer
    I've found some interesting behaviour in PowerShell Arrays, namely, if I declare an array as: $array = @() And ... seem to apply. Why is this? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.5k views
1 answer
    Is there any way to copy a really large file (from one server to another) in PowerShell AND display its ... a single file. Any thoughts? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.5k views
1 answer
    This should be a simple task, but I have seen several attempts on how to get the path to the directory ... with how PowerShell is configured? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.7k views
1 answer
    I'm attempting to POST to a uri, and send the parameter username=me Invoke-WebRequest -Uri http://example ... parameters using the method POST? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.3k views
1 answer
    I would like to set up a variable in my code that would ultimately define if I'll see some output or not. "hello ... ...well...then I'm lost See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.8k views
1 answer
    I am having some issues with regular expression mainly because I think the information I can find is not specifically ... replace 'name', 'baby' See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.4k views
1 answer
    Why doesn't PowerShell allow the use of the using scope when using Invoke-Command locally? According to the ... with a local Invoke-Command? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.5k views
1 answer
    I have the following code which I thought would allow me to catch an error and instead of generating the error ... Host "An Error Occurred" } See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.6k views
1 answer
    I'm trying to use PowerShell to put an updated content file onto an Azure Website via the REST API. ... with Kudu from PowerShell? Thanks. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.6k views
1 answer
    I have a PowerShell script that I am debugging and would like to redirect all Write-Host statements to a file. Is there an easy way to do that? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.7k views
1 answer
    I can use PowerShell to parse an HTML page PS > $foo = Invoke-WebRequest http://example.com PS > $foo. ... I parse the local downloaded page? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.7k views
1 answer
    I am having some issues trying to match a certain config block (multiple ones) from a file. Below is ... config block across multiple lines? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
2.0k views
1 answer
    I'm writing a PowerShell script that will execute commands on a remote host using Invoke-Command and its -ScriptBlock ... it, in my opinion. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
2.1k views
1 answer
    I am using PowerShell and am trying to run the following command: .est_cfdp.exe < test.full | tee test.log ... command to work in PowerShell? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
2.0k views
1 answer
    I have a folder where I need to delete all files and folders except a small list of files and folders. I ... its content from the delete list? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.6k views
1 answer
    If I do the following in a PowerShell script: $range = 1..100 ForEach ($_ in $range) { if ($_ % 7 -ne 0 ... I don't have to breakup my pipeline? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.1k views
1 answer
    Make an array like this which represents what I'm looking for: $array = @(1..50000).foreach{[PSCustomObject]@ ... based on the unique property? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.4k views
1 answer
    I have the below script that I want it to go out to multiple servers and get the value of a registry. ... is down" -foregroundcolor RED } } See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.4k views
1 answer
    In PowerShell, how do you get an object's property value by specifying its name (a string)? I want ... "Get-PropertyByName" in PowerShell? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.5k views
1 answer
    I'm working in PowerShell and I have code that successfully converts a user entered password into plain text: ... of a way that will work for this? Question&Answers:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.3k views
1 answer
    My goal: I want to create a CMD command that will installs a program with adjusted install settings. ... with correct settings. Someone please guide. Question&Answers:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.3k views
1 answer
    I searched the web for that question and landed on Server Fault: Can I send some text to the STDIN of ... that arise during the shutdown of my application. Question&Answers:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.6k views
1 answer
    I'm running a PowerShell script against many servers, and it is logging output to a text file. I'd like to ... output a variable to a text file in PowerShell? Question&Answers:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.3k views
1 answer
    I am new to powershell, and I am trying to add error handling via try/catch ... : GetWMICOMException,Microsoft.PowerShell.Commands.GetWmiObjectCommand Question&Answers:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.5k views
1 answer
    I have this one-liner: get-WmiObject win32_logicaldisk -Computername remotecomputer and the output is this: DeviceID ... only and store them in variables. Question&Answers:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.2k views
1 answer
    Say I have JSON like: { "a" : { "b" : 1, "c" : 2 } } Now ConvertTo-Json will happily ... to interpret the string yourself using Get-Member repeatedly I expect. Question&Answers:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.7k views
1 answer
    Looking at a Get-WebFile script over on PoshCode, http://poshcode.org/3226, I noticed this strange-to-me ... Error followed by Return. Is there a difference? Question&Answers:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.9k views
1 answer
    I have a JSON file that looks like this: { "id": 10011, "title": "Test procedure", "slug": "slug", ... like area_1, area_2 etc. And the same for disciplines. Question&Answers:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
To see more, click for the full list of questions or popular tags.
Ask a question:
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

2.1m questions

2.1m answers

60 comments

56.5k users

...