Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to install module #148

Open
DeanGross144 opened this issue Jul 23, 2024 · 3 comments
Open

Unable to install module #148

DeanGross144 opened this issue Jul 23, 2024 · 3 comments

Comments

@DeanGross144
Copy link

What am I doing wrong?
install-module ZeroTrustAssessment Invoke-ZTAssessment
Install-Module: A positional parameter cannot be found that accepts argument 'Invoke-ZTAssessment'

@jrdnbradford
Copy link

@DeanGross144 they are two distinct PowerShell commands. Running them separately should get what you need:

Install-Module ZeroTrustAssessment 
Invoke-ZTAssessment

@hdlinh1808
Copy link

Hi after I install

Install-Module ZeroTrustAssessment 

when I execute Invoke-ZTAssessment, it said:

Invoke-ZTAssessment : The 'Invoke-ZTAssessment' command was found in the module 'ZeroTrustAssessment', but the module
could not be loaded. For more information, run 'Import-Module ZeroTrustAssessment'.
At line:1 char:1
+ Invoke-ZTAssessment
+ ~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (Invoke-ZTAssessment:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CouldNotAutoloadMatchingModule

Image
Please take a look to help!

@GuidoBaijense
Copy link
Contributor

Hi @hdlinh1808 , like the error message points out, please try import-module ZeroTrustAssessment to check what's wrong with the module import. Otherwise, you might want to try PowerShell 7 instead of the default Windows PowerShell 5.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants