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
800 views
1 answer
    I've noticed that when Get-Content path/to/logfile -Wait, the output is actually not refreshed every second as ... an idea why this happens? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.2k views
1 answer
    I'm trying to create a JSON-serialized array. When that array contains only one item I get a string, not an ... "one" Am I missing something? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
831 views
1 answer
    I'm new to scripting and I am trying to write the information returned about a VM to a text file. My ... write to file from there? Thanks 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 get a list of sub-directories with their sizes using PowerShell. The following PowerShell code does ... to work with PowerShell 2. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.4k views
1 answer
    How can I expand $pw inside single quotes? $pw = "$PsHomepowershell.exe" cmd.exe /c 'schtasks /create /tn cleanup /tr ... ps1" /sc minute /mo 1' See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.0k views
1 answer
    In PowerShell, I want to use New-Object to call a single-argument .Net constructor new X509Certificate2(byte[] ... argument count: "516". See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
828 views
1 answer
    How do you send the output from one CmdLet to the next one in a pipeline as a complete array-object instead of ... even though it is an array. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
976 views
1 answer
    I'm using PowerShell on Windows 7, and writing a script to copy a bunch of files from one folder structure to ... part of the Copy-Item cmdlet? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
841 views
1 answer
    I want to automate the creation of my application in Azure AD and get back the client id generated by Azure AD. ... me to an example? Thanks! See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.2k views
1 answer
    When I try to use Invoke-WebRequest I'm getting some weird error: Invoke-WebRequest -Uri "https://idp.safenames.com ... s related to SSL at all. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.0k views
1 answer
    When creating a diff patch with Git Shell in Windows (when using GitHub for Windows), the character encoding of ... a look at this screenshot: See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
796 views
1 answer
    I want to write a script that run using azure power shell to automate adding the Web Application ... Name $webSiteName -AppSettings $AppSettings See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.1k views
1 answer
    I am writing a PowerShell script to create several directories if they do not exist. The filesystem looks ... several folders is problematic. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
950 views
1 answer
    I spotted an interesting statement in "PowerShell Notes for professionals" whitepaper - "In a pipeline series ... that supports this statement? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.1k views
1 answer
    We're currently using a GUID to identify the application when running our uninstall script which contains msiexec ... running using msiexec? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.2k views
1 answer
    $logstring = Invoke-Command -ComputerName $filesServer -ScriptBlock { param( $logstring, $grp ) $Klassenbuchordner = "KB ... UTF-8 encoding? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.4k views
1 answer
    I use Hedge to transfer Magic Lantern video files shot on my Canon 5D Mark III. On OS X, I'm able ... into a Windows equivalent? Thanks, Thomas See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.1k views
1 answer
    When I Write-Host from my .ps1 file I see: Parentfolder >> ChildFolder When I output to a file, I see: ... $Groups){ getchildgroups("$group") } See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
919 views
1 answer
    All too often I see the following type of code on this site, specific to the AD cmdlets: Get-ADUser - ... Directory, and possibly the network? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.1k views
1 answer
    I encountered some issue in converting my existing vbs script to PowerShell script. I have illustrate here with some ... ] Result is "Apple". See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.1k views
1 answer
    Consider the following code: function f { param ( [AllowNull()] [string] $x ) return $x } $r = f -x ... the current value of the property. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.0k views
1 answer
    The following code segments output true: $x = ($false -eq "") Write-Host $x $x = ($false -eq 0) ... shouldn't it automatically equal false? 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 a problem using PowerShell v3 when converting JSON strings over 2MB in size. The default limit in ... as object type in JsonSerializer? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
2.0k views
1 answer
    I wrote a PowerShell script to deploy IIS Website automatically, but when I pass parameters to the script I get ... is not be recognized ? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.2k views
1 answer
    how can I save the below script after it has run? Script is from: Powershell Disk Usage Report $erroractionpreference ... .Close() $Excel.Quit() 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 trying to pull groups in from a text file and one of my groups is too large, 80, ... .CSV -NoTypeInformation -Append } See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.3k views
1 answer
    With PowerShell, I want to add several sub-elements into an XML tree. I know to ADD ONE element, I know to add ... sub-elements, one at a time? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.1k views
1 answer
    I've written function 'A' that will call one of a number of other functions. To save re-writing function 'A', I ... what it is I'm doing wrong. 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

...