This post has been de-listed
It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.
So anyway, after a lot of help, I have 2 scripts written and have them saved as modules with a few functions. I've also written a profile.ps1 so that they import automatically when launching powershell.
The problem is, that the modules import fine but then they run. I want to stop them runnung as they prompt for input, I just want to be able to use the Get- commands from them
Secondly, when I run the first, "Get-Asset " it then prompts for a host name such as TGNX1234, is there a way that I can get it to accept "Get-Asset TGNX1234"
Thanks
Subreddit
Post Details
- Posted
- 5 years ago
- Reddit URL
- View post on reddit.com
- External URL
- reddit.com/r/PowerShell/...