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
    Is there a way to use the Read-Host cmdlet to capture multiple lines? My current approach is a bit awkward (and ... `n line two `n line three See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
960 views
1 answer
    I've come to the edge of my PoweShell-fu. Can someone explain to me why these two functions act differently ... : CannotIndex $input[1] = See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.1k views
1 answer
    The following command will show the lines match the pattern. cat file.txt | select-string -pattern "..." ... much slower comparing with grep? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
839 views
1 answer
    I have a script that is run as a scheduled task which fails with an unexpected token error on on the line where ... $Ns and $Os, it runs fine. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.3k views
1 answer
    I'm wondering if there is a way to minimize a batch window after it runs a certain command. I already know ... file. Thank you for your time! See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.3k views
1 answer
    I am trying to run the script GetAppConfigSettings.ps1 from Microsoft docs help setting up a Key Vault The script ... .7.0 of AzureRM installed See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.1k views
1 answer
    How can I change the column ordering of the output my code produces: $apps = Import-CSV apps.csv $computers ... order: Computer,App,Installed. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.4k views
1 answer
    In powershell Write-Verbose and the -Verbose flag are used to provide verbose information when commands are run ... when running remote scripts? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.4k views
1 answer
    I have the following datetime specified: $dateChanged = Get-Date -Format ("yyyy-MM-dd hh:mm:ss.fff") I ... the dateChanged variable to no avail. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
956 views
1 answer
    When I run Get-Date in ISE, I get Wednesday, 15 April 2020 12:38:03 PM which I want. However, if I run ... it must be the same cultural/region. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
997 views
1 answer
    I have a folder that contains both .xls, .xlsx and .xlsm files, and would like to filter just the .xls ... | ForEach-Object { $_.Extension } See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.0k views
1 answer
    I have a string needs to be changed in a file between two values. What I want to do is if I found value A ... that I modified back to the file. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.0k views
1 answer
    I can't figure out why these two parameters of the Get-ChildItem cmdlet don't work together. To make my ... use -File and -Exclude together? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.3k views
1 answer
    I want to use indirect reference variable. I am setting this at Command Prompt SET RiskScheduler=true My code is ... what the correct syntax is? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.0k views
1 answer
    I currently have the following line of code. (Get-Content 'file.txt') | ForEach-Object {$_ -replace '"', ... less RAM intensive than the above. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
899 views
1 answer
    I have looked into this post and found that it is almost exactly what I need to do. However, I am not able ... to what I want. Any suggestions? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.0k views
1 answer
    I have a batch file to run a powershell program. When I double click the batch file, it runs the powershell ... here is action in Task Scheduler See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.3k views
1 answer
    I have strings containing characters which are not found in ASCII; such as á, é, í, ó, ú; and I need a ... will be using them as domain names). See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.2k views
1 answer
    I have installed the PowerShell 6.1.3 version and I want to get a connection to the Azure account using the ... a connection to this account. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.1k views
1 answer
    On a Windows 7 Professional system, it seems not possible to run New-SelfSignedCertificate. I could on a Windows 10 system ... --- 5 0 10586 117 See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.2k views
1 answer
    I have a text file that contains a like that is similar to Settings amount ="01:00:00" I know how to ... | out-file $path Any ideas? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.0k views
1 answer
    I'm trying to write a script that depends on knowing the names of the computers on a network segment, but ... a response? Thanks in advance. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
903 views
1 answer
    I need to be able to read an existing (password protected) Excel spreadsheet (an .xlsx file) from Powershell ... Am I missing something obvious? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.6k views
1 answer
    I'm working on a script that will build a new group if it doesn't exist. I'm using Get-ADGroup to make ... from being displayed but it hasn't. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
904 views
1 answer
    I'm having a hard time thinking this through. if I wanted all declared parameters to require explicit naming when they' ... . how can I do that? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.5k views
1 answer
    I'm using powershell to modify some AD extensionattribute. This is my code to add an extensionattribute Set- ... anything similar to -remove. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.2k views
1 answer
    $cars = "bmw","audi","volvo","vw" echo $cars.length returns 4, but $cars = "bmw" returns 3 because it ... if the array only contains one item? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.2k views
1 answer
    I am trying to convert a large number of HTML files into Markdown using Pandoc in Windows, and have found an ... this to work in Windows? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
Ask a question:
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...