Jump to content

AutoIt and SCCM


Recommended Posts

  • Developers

But why would SCCM use the credentials of the logged-in user?

Normally it is the Service which is using the Windows SYSTEM account or am I not understanding the scenario correctly here?

Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

  • Moderators

But why would SCCM use the credentials of the logged-in user?

Normally it is the Service which is using the Windows SYSTEM account or am I not understanding the scenario correctly here?

Jos

You are correct. When creating a collection to push software to machines, you have the option to run the install whether or not anyone is logged in (use the SYSTEM account), or run only when a user is logged in, and run it under their credentials. If you have users that are not administrators locally, most organizations default to the former rather than the latter.

Edited by JLogan3o13

"Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball

How to get your question answered on this forum!

Link to comment
Share on other sites

Sorry, I have it set to Run as Admin weither or not the user is logged in currently but I also tried the "run as user". I also just added :

Local $sUserName = "Administrator"

Local $sPassword = "SomePassword"

RunAs($sUserName, @ComputerName, $sPassword, 0, @SystemDir)

and removed the #RequireAdmin setting

I just SCCM to Run with User's rights: Only when logged in. They have admin rights on the box.

Have a good weekend.

Edited by RBrown1375
Link to comment
Share on other sites

  • Moderators

Just so you understand, SCCM is doing a RunAs SYSTEM, and then you're doing a RunAs Administrator. That may not be the most reliable method.

"Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball

How to get your question answered on this forum!

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...