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

getalldevicesandusers' is not recognized as the name of a cmdlet, function, script, file or operable program #8

Closed
vacuumboots opened this issue Oct 19, 2023 · 2 comments

Comments

@vacuumboots
Copy link

I get an error when running autopilotnuke version 3.3

The term 'getalldevicesandusers' is not recognized as the name of a cmdlet, function, script, file or operable program.
This is when I open a command prompt, launch powershell with powershell.exe -executionpolicy remotesigned
Then
Install-Script -Name AutopilotNuke

And then run AutopilotNuke.

I can see getalldevicesandusers was added in the script in the most recent version, but googling can find no references to it other than this github and the powershell galley for this script.

@vacuumboots
Copy link
Author

I see line 178 has
function getdevicesandusers() {

so maybe line 310 should be
$devices = getdevicesandusers with the word "all" removed?

@andrew-s-taylor
Copy link
Owner

Thank you, fixed in 3.4 which should be online now

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

2 participants