Jump to content

Certain PowerShell commands not returning anything

So to begin with I only know some basics about coding but I want to learn more. In this case I found PowerShell interesting. I went to PowerShell to poke around, and tried the help command. Help files are not installed. Stupidest thing I've ever heard about a terminal. Update-help starts the process, but then it spits an error saying it couldn't retrieve the HelpInfoXml file. I can't even begin to figure out how to get that on there or if it would've come with the pc if I hadn't reinstalled windows for a new drive.

 

Second but not that important thing is I tried this command "Invoke-WebRequest -Uri (Get-Module <ModuleName>).HelpInfoUri -OutFile helpinfo.xml" and it said that the argument (it's "arg" right?) was null or empty. How do I make an argument? 

 

Lastly some commands like Get-Module HelpInfoXml or Select-Object HelpInfoUri wont return anything. 

 

Edition            Windows 10 Pro
Version           22H2
Installed on    ‎8/‎17/‎2024
OS build         19045.4780
Experience     Windows Feature Experience Pack 1000.19060.1000.0

 

image.png.bd9db684bcfede85edb3e42577e17ce1.png

image.thumb.png.48dd283b1cbbab214ace6f1ac33658c3.png

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×