microsoft / shell-intune-samples

Sample shell scripts for Intune admins.
MIT License
637 stars 213 forks source link

Create checkBootstrapTokenEscrowStatus.sh #46

Closed scottbreenmsft closed 2 years ago

scottbreenmsft commented 2 years ago

Adding a new script that an detect whether or not a device has escrowed it's bootstrap token to Intune.

theneiljohnson commented 2 years ago

Thanks Scott!

asman2maani commented 2 years ago

Hello

So I been trying to deploy intune script using the script under apps section. I’m using the adobe script as a template by changing program names and the WEBURL link. I have the blob storage Configured and the link does work I know that for a fact. What am I doing wrong? I did deploy the adobe script and it did work but trying to deploy my own apps is not working for me. Please help me out

Thank Asman

On Tue, Mar 29, 2022 at 3:52 AM Neil Johnson @.***> wrote:

Merged #46 https://github.com/microsoft/shell-intune-samples/pull/46 into master.

— Reply to this email directly, view it on GitHub https://github.com/microsoft/shell-intune-samples/pull/46#event-6324670363, or unsubscribe https://github.com/notifications/unsubscribe-auth/AYLVZ54QZLVXBFYQ3KGHNF3VCLAE7ANCNFSM5RPVETRQ . You are receiving this because you are subscribed to this thread.Message ID: @.*** com>

theneiljohnson commented 2 years ago

I usually recommend starting with the latest sample script from here, currently we’re on 3.0.6 shell-intune-samples/Apps/LatestSampleScript at master · microsoft/shell-intune-samples (github.com)https://github.com/microsoft/shell-intune-samples/tree/master/Apps/LatestSampleScript

From: asman2maani @.> Date: Friday, 1 April 2022 at 23:16 To: microsoft/shell-intune-samples @.> Cc: Neil Johnson @.>, State change @.> Subject: Re: [microsoft/shell-intune-samples] Create checkBootstrapTokenEscrowStatus.sh (PR #46) Hello

So I been trying to deploy intune script using the script under apps section. I’m using the adobe script as a template by changing program names and the WEBURL link. I have the blob storage Configured and the link does work I know that for a fact. What am I doing wrong? I did deploy the adobe script and it did work but trying to deploy my own apps is not working for me. Please help me out

Thank Asman

On Tue, Mar 29, 2022 at 3:52 AM Neil Johnson @.***> wrote:

Merged #46 https://github.com/microsoft/shell-intune-samples/pull/46 into master.

— Reply to this email directly, view it on GitHub https://github.com/microsoft/shell-intune-samples/pull/46#event-6324670363, or unsubscribe https://github.com/notifications/unsubscribe-auth/AYLVZ54QZLVXBFYQ3KGHNF3VCLAE7ANCNFSM5RPVETRQ . You are receiving this because you are subscribed to this thread.Message ID: @.*** com>

— Reply to this email directly, view it on GitHubhttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fmicrosoft%2Fshell-intune-samples%2Fpull%2F46%23issuecomment-1086378002&data=04%7C01%7Cneiljohn%40microsoft.com%7Cc7672cdf814e4e7d58b508da142d3cb2%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637844481783618505%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=e%2Brlvv7rf%2Fyji4aMJsq%2FckzjVPouOmn4JOQrtTCo8Io%3D&reserved=0, or unsubscribehttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAGOC2JN4TQ3VGHC4GOTSTJLVC5YS5ANCNFSM5RPVETRQ&data=04%7C01%7Cneiljohn%40microsoft.com%7Cc7672cdf814e4e7d58b508da142d3cb2%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637844481783618505%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=k3Be2p4UztPXkjagQNTLD6XXFWUiVXZDKMuuPdLZtMY%3D&reserved=0. You are receiving this because you modified the open/close state.Message ID: @.***>

asman2maani commented 2 years ago

Using the 3.0.6 sample and I’m getting this error. Is there something I’m doing wrong when creating the blob?

Thanks Asman

Mon Apr

4 17:05:51 CDT 2022

I

Checking if we need Rosetta 2 or not

Mon Apr

4 17:05:51 CDT 2022

Mon Apr

4 17:05:51 CDT 2022

Mon Apr

4 17:05:51 CDT 2022

Mon Apr

4

17:05:51 CDT 2022

Mon Apr

4

17:05:51 CDT 2022

Mon Apr

4

17:05:51 CDT 2022

No instances of C/usr/sbin/softwareupdate] found, safe to proceed

Intel processor installed. No need to install Rosetta.

Checking if we need to install or update [GoogleChrome]

[GoogleChrome] not installed, need to download and install

Dock is here,

lets carry on

Mon Apr

4 17:05:51 CDT 2022

Mon Apr

4 17:05:51 CDT 2022

-f] processes to end

Mon Apr

4 17:05:51 CDT 2022

No instances of [curl -f] found,

safe to proceed

Mon Apr

4 17:05:51 CDT 2022

Downloading CooglechromeIhttp:://. blob.core.wandows.net/intunemacapps/CoonieChrome

ff67dcaca2058skt=2022-04-04T18:33:58Z&ske=2022-04-08T82:39:58Zesks=b&skv=2020-08-04&sprahttps&sv=2020-08-edast-besig-niGGkINkyx4xvs

Mon Apr

4 17:05:51 CDT 2022

11 Feilure to download Chttps://. blob.core.wändows.net/intunemacapps/GoogleChronetz0(2) http://blob.core.xn--wndows-bua.net/intunemacapps/GoogleChronetz0(2).

F867dcaca2058skt=2022-04-04T18:33:58Z&ske=2822-04-88T02433:68Zasks=baskv=2020-08-04dsprshttps&sv=2020-08-04&sr-besig-Hi66kINkyxaxvSg

On Mon, Apr 4, 2022 at 4:20 AM Neil Johnson @.***> wrote:

I usually recommend starting with the latest sample script from here, currently we’re on 3.0.6 shell-intune-samples/Apps/LatestSampleScript at master · microsoft/shell-intune-samples (github.com)< https://github.com/microsoft/shell-intune-samples/tree/master/Apps/LatestSampleScript

From: asman2maani @.> Date: Friday, 1 April 2022 at 23:16 To: microsoft/shell-intune-samples @.> Cc: Neil Johnson @.>, State change @.> Subject: Re: [microsoft/shell-intune-samples] Create checkBootstrapTokenEscrowStatus.sh (PR #46) Hello

So I been trying to deploy intune script using the script under apps section. I’m using the adobe script as a template by changing program names and the WEBURL link. I have the blob storage Configured and the link does work I know that for a fact. What am I doing wrong? I did deploy the adobe script and it did work but trying to deploy my own apps is not working for me. Please help me out

Thank Asman

On Tue, Mar 29, 2022 at 3:52 AM Neil Johnson @.***> wrote:

Merged #46 https://github.com/microsoft/shell-intune-samples/pull/46 into master.

— Reply to this email directly, view it on GitHub < https://github.com/microsoft/shell-intune-samples/pull/46#event-6324670363 , or unsubscribe < https://github.com/notifications/unsubscribe-auth/AYLVZ54QZLVXBFYQ3KGHNF3VCLAE7ANCNFSM5RPVETRQ

. You are receiving this because you are subscribed to this thread.Message ID: @.*** com>

— Reply to this email directly, view it on GitHub< https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fmicrosoft%2Fshell-intune-samples%2Fpull%2F46%23issuecomment-1086378002&data=04%7C01%7Cneiljohn%40microsoft.com%7Cc7672cdf814e4e7d58b508da142d3cb2%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637844481783618505%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=e%2Brlvv7rf%2Fyji4aMJsq%2FckzjVPouOmn4JOQrtTCo8Io%3D&reserved=0>, or unsubscribe< https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAGOC2JN4TQ3VGHC4GOTSTJLVC5YS5ANCNFSM5RPVETRQ&data=04%7C01%7Cneiljohn%40microsoft.com%7Cc7672cdf814e4e7d58b508da142d3cb2%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637844481783618505%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=k3Be2p4UztPXkjagQNTLD6XXFWUiVXZDKMuuPdLZtMY%3D&reserved=0

. You are receiving this because you modified the open/close state.Message ID: @.***>

— Reply to this email directly, view it on GitHub https://github.com/microsoft/shell-intune-samples/pull/46#issuecomment-1087316543, or unsubscribe https://github.com/notifications/unsubscribe-auth/AYLVZ5YTGD4VIFUY7HYQAZLVDKX4TANCNFSM5RPVETRQ . You are receiving this because you commented.Message ID: @.***>

theneiljohnson commented 2 years ago

Best to open a specific issue. I can't make much sense of the text provided here, sorry.

asman2maani commented 2 years ago

Figured out the issue. In my weburl link there was a “&” and powershell don’t like & in links. I converted the link to a munch smaller and readable url using tinyurl

Thanks for all the work you guys do. Asman

On Wed, Apr 6, 2022 at 3:56 PM Asman Kev @.***> wrote:

Where would I got to open a special issue??

Thanks Asman

On Wed, Apr 6, 2022 at 6:47 AM Neil Johnson @.***> wrote:

Best to open a specific issue. I can't make much sense of the text provided here, sorry.

— Reply to this email directly, view it on GitHub https://github.com/microsoft/shell-intune-samples/pull/46#issuecomment-1090176185, or unsubscribe https://github.com/notifications/unsubscribe-auth/AYLVZ53KTAY5FFTQFGHGKVTVDV2VDANCNFSM5RPVETRQ . You are receiving this because you commented.Message ID: @.***>

theneiljohnson commented 2 years ago

These scripts are meant to be run via bash not powershell. How are you using them?

Get Outlook for iOShttps://aka.ms/o0ukef


From: asman2maani @.> Sent: Saturday, April 9, 2022 7:29:54 PM To: microsoft/shell-intune-samples @.> Cc: Neil Johnson @.>; State change @.> Subject: Re: [microsoft/shell-intune-samples] Create checkBootstrapTokenEscrowStatus.sh (PR #46)

Figured out the issue. In my weburl link there was a “&” and powershell don’t like & in links. I converted the link to a munch smaller and readable url using tinyurl

Thanks for all the work you guys do. Asman

On Wed, Apr 6, 2022 at 3:56 PM Asman Kev @.***> wrote:

Where would I got to open a special issue??

Thanks Asman

On Wed, Apr 6, 2022 at 6:47 AM Neil Johnson @.***> wrote:

Best to open a specific issue. I can't make much sense of the text provided here, sorry.

— Reply to this email directly, view it on GitHub https://github.com/microsoft/shell-intune-samples/pull/46#issuecomment-1090176185, or unsubscribe https://github.com/notifications/unsubscribe-auth/AYLVZ53KTAY5FFTQFGHGKVTVDV2VDANCNFSM5RPVETRQ . You are receiving this because you commented.Message ID: @.***>

— Reply to this email directly, view it on GitHubhttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fmicrosoft%2Fshell-intune-samples%2Fpull%2F46%23issuecomment-1094102486&data=05%7C01%7Cneiljohn%40microsoft.com%7C0ebeb5bde1384719b2d608da1a56f17f%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637851257985112590%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=pS94TwHSl%2BgWAwSdts6%2FoDvjjDOE9GPS3ZFjQitRrvE%3D&reserved=0, or unsubscribehttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAGOC2JIM45ZJKLDNEIRC64TVEHECFANCNFSM5RPVETRQ&data=05%7C01%7Cneiljohn%40microsoft.com%7C0ebeb5bde1384719b2d608da1a56f17f%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637851257985112590%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=3kL6ezBy%2FSdk0PNcYYryD87oO04yJmT07puL0kB90NA%3D&reserved=0. You are receiving this because you modified the open/close state.Message ID: @.***>

asman2maani commented 2 years ago

When testing th weburl I used the powershell console. When you enter a curl command with the weburl link it give you error message. But yes im using th script via bash

On Sun, Apr 10, 2022 at 1:54 PM Neil Johnson @.***> wrote:

These scripts are meant to be run via bash not powershell. How are you using them?

Get Outlook for iOShttps://aka.ms/o0ukef


From: asman2maani @.> Sent: Saturday, April 9, 2022 7:29:54 PM To: microsoft/shell-intune-samples @.> Cc: Neil Johnson @.>; State change @.> Subject: Re: [microsoft/shell-intune-samples] Create checkBootstrapTokenEscrowStatus.sh (PR #46)

Figured out the issue. In my weburl link there was a “&” and powershell don’t like & in links. I converted the link to a munch smaller and readable url using tinyurl

Thanks for all the work you guys do. Asman

On Wed, Apr 6, 2022 at 3:56 PM Asman Kev @.***> wrote:

Where would I got to open a special issue??

Thanks Asman

On Wed, Apr 6, 2022 at 6:47 AM Neil Johnson @.***> wrote:

Best to open a specific issue. I can't make much sense of the text provided here, sorry.

— Reply to this email directly, view it on GitHub < https://github.com/microsoft/shell-intune-samples/pull/46#issuecomment-1090176185 , or unsubscribe < https://github.com/notifications/unsubscribe-auth/AYLVZ53KTAY5FFTQFGHGKVTVDV2VDANCNFSM5RPVETRQ

. You are receiving this because you commented.Message ID: @.***>

— Reply to this email directly, view it on GitHub< https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fmicrosoft%2Fshell-intune-samples%2Fpull%2F46%23issuecomment-1094102486&data=05%7C01%7Cneiljohn%40microsoft.com%7C0ebeb5bde1384719b2d608da1a56f17f%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637851257985112590%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=pS94TwHSl%2BgWAwSdts6%2FoDvjjDOE9GPS3ZFjQitRrvE%3D&reserved=0>, or unsubscribe< https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAGOC2JIM45ZJKLDNEIRC64TVEHECFANCNFSM5RPVETRQ&data=05%7C01%7Cneiljohn%40microsoft.com%7C0ebeb5bde1384719b2d608da1a56f17f%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637851257985112590%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=3kL6ezBy%2FSdk0PNcYYryD87oO04yJmT07puL0kB90NA%3D&reserved=0

. You are receiving this because you modified the open/close state.Message ID: @.***>

— Reply to this email directly, view it on GitHub https://github.com/microsoft/shell-intune-samples/pull/46#issuecomment-1094347895, or unsubscribe https://github.com/notifications/unsubscribe-auth/AYLVZ5ZCC27WPGF4FE2LO2TVEMPXLANCNFSM5RPVETRQ . You are receiving this because you commented.Message ID: @.***>