Wednesday, March 14, 2012

Running SCCM Console as another user

As a personal best practice I log into my main workstation with a user ID that does not have access to anything but my exchange mailbox and my personal network drive.  I had grown tired of shift right clicking to run as another user so I looked up how to always launch a shortcut as a different user.

What you would typically do is put c:\windows\system32\runas.exe /user:domain\user /savecreds before the link to the exe.  Since the SCCM admin console is an mmc snap-in it looks a little different.

This is what I ended up with - C:\Windows\System32\runas.exe /user:domain\user /savecreds "mmc \"C:\Program Files (x86)\Microsoft Configuration Manager Console\AdminUI\bin\adminconsole.msc""

Yes that extra floating \ is necessary.

3 comments:

  1. Hello,

    This also applies to SCCM 2012 Console too ?

    Thank you.

    ReplyDelete
  2. Good question Bogdan and the answer is yes and now depending on how you read my post and your understanding of the config manager console changes.

    The new console no longer uses MMC (hooray!!!) but is simply just an exe. So you can use the first part of this post to save your user credentials.

    Create a shortcut on your desktop to the 2012 console.

    The "Target:" line should read like this -
    c:\Windows\System32\runas.exe /user:domain\user /savecreds "c:\Program Files (x86)\Microsoft Configuration Manager\AdminConsole\bin\Microsoft.ConfigurationManagement.exe"

    The first time you open this shortcut it will prompt your for the password of the username you put in above. After that it will just open without any interaction.

    ReplyDelete

Remote Mailboxes - Hybrid Config - Missing

The Remote Mailbox exists on the On Prem Exchange server and linked to the Office 365 mailbox. Without one of these for each Office 365 mail...