Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

powershell script popup

$
0
0

hello:

i remember taht when i run my script on powershell ise a popup appear to enter a value, now it seem to be not the case..

how can i diplay a message or a description like enter folder name on the mandatory parameter (without using read-host)

[CmdletBinding()]

# Parameters $folder, $Computer

param (
    [Parameter(Mandatory=$True,ValueFromPipeline=$true,HelpMessage="Enter folder name ")]
   [string]$folder,
 [string[]]$Computer = 'Localhost'                         #thank you 


Viewing all articles
Browse latest Browse all 21975

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>