grahampugh / erase-install

A script that automates downloading macOS installers, and optionally erasing or upgrading macOS in a single process. Watch the video!
https://grahamrpugh.com/2023/05/14/macaduk-presentation-eraseinstall.html
Apache License 2.0
834 stars 131 forks source link

Having issue while running in jamf pro #401

Closed praveenkumar2406 closed 11 months ago

praveenkumar2406 commented 1 year ago

Describe the bug I am running the policy with erase install package

while upgrading the to ventura the policy re-run and searching for installer

i am using —reinstall — update and some other parameter to check the power

I doesn’t want to run the policy again once it gets restart

please suggest me

Thank you

grahampugh commented 1 year ago

If you are running the script from a recurring policy, you have to scope the policy appropriately to exclude the relevant Operating System Version to avoid it running repeatedly.

You also need to make sure that you run a recon on startup to make sure that the upgrade is recorded back to Jamf when it's complete.

praveenkumar2406 commented 1 year ago

I have another issue like after successfull installtion it shows installer package with ?(question mark).

I have removed it from launchpad. But I cannot do that manually for nearly 200 laptop? So is there way to remove from script? I think it is stored in database some where.

grahampugh commented 1 year ago

What do you mean by "it shows installer package with ?(question mark)"?

What is showing this, and where?

killer23d commented 1 year ago

What do you mean by "it shows installer package with ?(question mark)"?

What is showing this, and where?

It is a cosmetic issue; the OS installer was showing for a brief moment in Launchpad. Of course if the user clicks on it, it will become "?" as the installer got deleted.

Describe the bug I am running the policy with erase install package

while upgrading the to ventura the policy re-run and searching for installer

i am using —reinstall — update and some other parameter to check the power

I doesn’t want to run the policy again once it gets restart

please suggest me

Thank you

This is a simple fix for recurring issue, it could be one or more of below:

grahampugh commented 1 year ago

I still advise to set a policy to Update Inventory on start up.