Skip to content
This repository has been archived by the owner on Sep 21, 2023. It is now read-only.

this is what I get when I try to run it #52

Closed
smith581 opened this issue Oct 3, 2018 · 5 comments
Closed

this is what I get when I try to run it #52

smith581 opened this issue Oct 3, 2018 · 5 comments

Comments

@smith581
Copy link

smith581 commented Oct 3, 2018

Param : The term 'Param' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is
correct and try again.
At line:8 char:1

  • Param (
@Sycnex
Copy link
Owner

Sycnex commented Oct 4, 2018

Hi,

Is this the Windows10SysPrepDebloater.ps1 script? Are you running the script as an Administrator? Sounds like perhaps some code is missing in the script. Did you happen to modify it?

Try giving the Windows10Debloater.ps1 script a shot and see how that works out for you. I was not able to reproduce this on my machine.

Param is just an alias for Parameter and specifies which parameters can be used within the script:

E.g. param (
[switch]$Debloat, [switch]$SysPrep, [switch]$StopEdgePDF, [Switch]$Privacy
)

@smith581
Copy link
Author

smith581 commented Oct 4, 2018 via email

@Sycnex
Copy link
Owner

Sycnex commented Oct 4, 2018 via email

@Sycnex
Copy link
Owner

Sycnex commented Oct 12, 2018

Hi, any progress, @smith581 ?

@smith581
Copy link
Author

I just went back to my old script that works - I have seen so many corrections I can't tell what script to use - ….. you can kill this if you need to.

@Sycnex Sycnex closed this as completed Oct 12, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants