Questions tagged [powershell-v5.1]

For issues specifically relating to Windows PowerShell, version 5.1. If you're using v5.1 but the issue is not likely to be specific to that version, use the [powershell] tag instead.

For general PowerShell information see the tag wiki.

Version 5.1 of Windows PowerShell, Microsoft's task automation and configuration management platform that functions as an interactive command shell and a scripting language.

Windows PowerShell 5.1 is available as part of the Windows Management Framework (WMF) 5.1.

For the latest news and developments, check out the PowerShell blog.

51 questions
0
votes
1 answer

How to enable cmdlet parameter auto-complete popup on PowerShell?

So I'm following this beginner PowerShell tutorial here and am following the bit that shows how to enable the auto-suggestion popup that comes up when trying to see all possible parameters for a particular cmdlet. So when I try to replicate it by…
mts396
  • 818
  • 1
  • 11
  • 15
0
votes
1 answer

How to define documentation on custom command (using Get-Command or Get-Help)

Let's say I have a custom command: function Search-ForStringInFile($string) { ls -Recurse | Select-String -Pattern "$string" -List | Select Path } And I want to be able to run Get-Help Search-ForStringInFile or Get-Command…
0
votes
0 answers

Cloudberry Powershell Snap-In: Syncing Files based on LastWriteTime

I am trying to Sync a large number of files from a folder on the server into a cloudberry bucket for all files where the date today is the same as the last modified date for that file. This codes syncs successfully, but it syncs all files in the…
0
votes
3 answers

Batch rename and copy multiple files in Windows

I have a large number of files with names like this in a same folder: myPic_fr.png myPic_it.png myPic_gr.png I want to rename them to: myPic_fr_1080.png myPic_it_1080.png myPic_gr_1080.png Then copy them to a new folder like…
Wadjey
  • 145
  • 13
0
votes
1 answer

Why variables in function scope and method scope differs?

I use to log the function name which has exception . The code is as below function sample { try{ $functionname = "sample" throw "Error" } catch{ write-error "[$functionName] :Exception occured " $_ …
Samselvaprabu
  • 16,830
  • 32
  • 144
  • 230
-1
votes
2 answers

Function's comment-based help not displaying

So I've written a few functions to streamline my common tasks, and have tried documenting them with relatively proper Get-Help info. However it does not display. I have the funtions in my $profile, is that the problem? Here's one of my functions,…
Hargaut
  • 43
  • 5
1 2 3
4