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.1k views
1 answer
    I want to extract filename from below path: D:ServerUserCUSTMEADataInFilesCORRECTEDCUST_MEAFile.csv Now I wrote this code to ... 9].substring(0) See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
841 views
1 answer
    Is there a way (say PowerShell, or a tool) in Windows that can recurse over a directory and convert ... towards a PowerShellish solution). See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.1k views
1 answer
    I'm using the CTP of powershell v2. I have a script written that needs to go out to various network shares in ... best to accomplish my task..? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.2k views
1 answer
    I need to download a channel 9 series using powershell, however the scripts I have tried have errors: This ... ://screencast.com/t/bgGd0s98Uc See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.0k views
1 answer
    Can anybody explain the details? If I create an object using $var = [PSObject]@{a=1;b=2;c=3} ... ? Are there any important differences? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.2k views
1 answer
    Inside of visual studio code, I'm trying to execute a script.bat from the command line, but I'm getting ... But the error is throwing anyway. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
879 views
1 answer
    I frequently want to quickly re-run the last shell command that I used. I know you can shift focus to the terminal, ... node '${file}'u000D" } } See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
858 views
1 answer
    I am trying to filter out users that are in a specific group. I got the following output in a variable: Group1 ... string... What am I missing? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.4k views
1 answer
    I'm getting this exception when using Substring: Exception calling "Substring" with "2" argument(s): "Index and ... there something I'm missing? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.2k views
1 answer
    I am using ConvertTo-Csv to get comma separated output get-process | convertto-csv -NoTypeInformation -Delimiter "," It ... ,Handles,VM,WS.... See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.0k views
1 answer
    For some reason, it looks like I cannot pass array of strings as parameter to scriptblock. What am I doing here wrong ... in the array - "111". See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.3k views
1 answer
    I can get all sub-items recursively using this command: Get-ChildItem -recurse But is there a way to limit the ... two levels down for example? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
965 views
1 answer
    I am trying to pin a program to the taskbar in Windows 10 (RTM) using this code: $shell = new-object -com " ... to pin a program to the taskbar? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.1k views
1 answer
    Is it possible to use Microsoft's XML document transform, for preparing web.configs, outside of MSBuild? I ... requires a build engine. Thanks See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.9k views
1 answer
    I'm new to cURL, just got it installed but it seems to only do what it feels like. I'm using the 64 ... ? Windows 7 64 bit Powershell version 4 See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
899 views
1 answer
    I am beginning to look into the PowerShell model and snap-in development. The first thing I notice is to ... to make an easy reference? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
881 views
1 answer
    Consider: Invoke-WebRequest $sumoApiURL -Headers @{"Content-Type"= "application/json"} -Credential $cred -WebSession ... (400) Bad Request. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.2k views
1 answer
    Is it possible in Windows to get a folder's size from the command line without using any 3rd party tool? ... the windows explorer → properties. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
927 views
1 answer
    I'm using PowerShell 2.0 and I want to pipe out all the subdirectories of a certain path. The following command outputs ... be dir /b /ad /s See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.1k views
1 answer
    I need to write a script that takes in variables and makes a share on a remote system. This works: Invoke- ... way to pass those values somehow. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
807 views
1 answer
    Apparently, in PowerShell (ver. 3) not all $null's are the same: >function emptyArray() { @() } ... .0.30319.1026 PSRemotingProtocolVersion 2.2 See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
757 views
1 answer
    As part of my build process in VSTS I want to delete all files and folders (except af few) from my ... ChildItem -Path $(build.sourcesDirectory) See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.3k views
1 answer
    I have a list in my C: directory that has many files. If I try to run an -Exclude on it, I get no returns. Same ... 7/8/2016 8:30 AM 0 Test.txt See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
946 views
1 answer
    I know I can save password to the file: Read-Host "Enter Password" -AsSecureString | ConvertFrom-SecureString ... password were kept together? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
739 views
1 answer
    Sometimes in my PowerShell scripts, I need access to a specific DLL, using Add-Type -AssemblyName. ... current $PSVersionTable.CLRVersion field. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
967 views
1 answer
    How do I properly escape the quotes in the -param value in the following command line? $cmd="\serveroto.exe ... , but nothing is working. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.1k views
1 answer
    I need to collect the standard output and error log from several processes into one single log file. So every ... put the information to append? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.4k views
1 answer
    I'm trying to run a program from PowerShell, wait for the exit, then get access to the ExitCode, but ... .ExitCode property from this process? See Question&Answers more detail:os...
asked Oct 17, 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

...