Hello,
I’m pretty new with powershell and am interested to find out is it possible to make it use same parameter only written once for many commands. example –
Get-ConnectionCheck -Computername NAME; Get-DiskSize -Computername NAME; Get-HPHealthStatus -Computername NAME; Get-Uptime -Computername NAME
This above command works fine, but i want to write “-computername NAME” only once, is that possible?
Thanks.
submitted by /u/iPas
[link] [comments]
The post Using one parameter on many commands at once appeared first on How to Code .NET.