tcox8 / OSD-Reporting

This script creates a webpage to show SCCM OSD Reporting
16 stars 5 forks source link

Could you pls further explain what entries to put in the scheduled tasks? #14

Closed clabbekung closed 2 years ago

tcox8 commented 3 years ago

@clabbekung Can you describe where you are confused? Have you reviewed the detailed setup guide?

https://github.com/tcox8/OSD-Reporting/blob/master/DetailedSetupGuide.md

clabbekung commented 3 years ago

Yes i have and when i put in -TSAdvertisementID "YOURADVERTISEMENTID" -TaskSequenceID "YOURPACKAGEID" So i guess im putting the wrong entries in.. Is it the name of the OSD and the the package ID of the same or am i just beeing stupid? Rgds Claes

tcox8 commented 3 years ago

Ahh, ok! No worries. The TSAdvertisementID will be the DeploymentID of the task sequence. (It used to be called the advertisement ID and I believe still is labeled that in the SCCM internals). To find this, just look at the deployment of your Task Sequence and right click on the columns, and Add "DeploymentID" as a column. This guy may explain it better than me: https://sccmentor.com/2014/12/05/find-out-a-deployment-from-the-deployment-id/

The TaskSequenceID will be the PackageID of the Task Sequence.

image

clabbekung commented 3 years ago

Oh ok sweet thanks so just one more question . How do u handle the deployment for unknown computers? Ie i have 2 deployments 1 for known and 1 for unknown? Sadly im not getting it to run in scheduled task but if i run it from powershell with the excetution acc it works. The output on the page when i run it from scheduled tasks " At least one device was detected as starting the Task Sequence but there is an issue sorting the steps"

tcox8 commented 3 years ago

You can have multiple deployments by separating them with a comma! i.e. put the Deployment ID for both deployments like this:

-TSAdvertisementID 'UHP2051F','UHPXXXXX'

Are you setting the scheduled task to run with a user that has Admin permissions in your SCCM environment? Also, make sure to check the "run with highest privileges" checkbox in the scheduled task.

clabbekung commented 3 years ago

thanks yet again. That was exactly what i was looking for.

Yeah i have followed the instructions.. And tested with my own acc even.. Same issue works when i run it manually but not in the taskscheduler.

tcox8 commented 3 years ago

Are you running it from the ConfigManager site server? I would recommend you to do that.

clabbekung commented 3 years ago

Yes i am running it from the site server.

Wierd that it works when i run it manually with both tested accounts :)

Skickat från min iPhone

14 juni 2021 kl. 16:55 skrev tcox8 @.***>:



Are you running it from the ConfigManager site server? I would recommend you to do that.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/tcox8/OSD-Reporting/issues/14#issuecomment-860751127, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AUOGMMD7RCWFHCA5SWKQ24DTSYJ7BANCNFSM46QXDLXA.

tcox8 commented 3 years ago

Can you send screenshots of the command you are running in your scheduled task, including the parameters you are using? There shouldn't be a difference between running it manually and through the scheduled tasks. The only thing I can think of is a typo in your scheduled task.

clabbekung commented 3 years ago

So here is what i run.

@.D7667D.16D964D0] @.D7667D.16D964D0]

And this is the output

@.***D7667D.16D964D0] If i run manually with the same acc this is the output

@.***D7667D.16D964D0] Skickades från E-posthttps://go.microsoft.com/fwlink/?LinkId=550986 för Windows 10

Från: @.> Skickat: den 17 juni 2021 21:47 Till: @.> Kopia: @.>; @.> Ämne: Re: [tcox8/OSD-Reporting] Could you pls further explain what entries to put in the scheduled tasks? (#14)

Can you send screenshots of the command you are running in your scheduled task, including the parameters you are using? There shouldn't be a difference between running it manually and through the scheduled tasks. The only thing I can think of is a typo in your scheduled task.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/tcox8/OSD-Reporting/issues/14#issuecomment-863516871, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AUOGMMHCZFMX5MAGFZJX4ATTTJGMDANCNFSM46QXDLXA.

tcox8 commented 3 years ago

@clabbekung Can you please upload the pictures by logging into GitHub? Your email reply did not include the pictures.