Issues with formatting default ArgumentList for SCCM Configuration Manager Console

I am trying to package up the Configuration Manager Console to help deploy it out through Intune (I know, it is a bit backwards, but I am living in a hybrid/co-management world).

It seems like a relatively easy install, and we did have it set up through SCCM, but I have been slowly trying to move applications over to Intune and am still trying to wrap my head around using PSADT.

So, my install command in the batch file is pretty simple:

"\\sccmserver\Data\Applications\Configuration Manager Console\SCCM\ConfigMgrConsole2203\ConsoleSetup.exe" /q TargetDir="%ProgramFiles%\ConfigMgr Console" DefaultSiteServerName=itserv.fwmrpc.com

I’ve tried a ton of different things and I still can’t seem to get it to take. This is my most recent try:

Start-ADTProcess -FilePath 'ConsoleSetup.exe' -ArgumentList "/s TargetDir=`"envProgramFiles\ConfigMgr Console`" DefaultSiteServerName=`"sccmserver.domain.com`""

I feel like it is something with how I am escaping things and still am trying to get used to getting used to this tool, but any help to get me on the right track would be greatly appreciated!

Ok, I guess I just needed to ask for help here about this, as I jumped back at it and got it figured out. In case anyone else needs help with this, here you go:

Install:

Start-ADTProcess -FilePath 'ConsoleSetup.exe' -ArgumentList "TargetDir=`"$envProgramFiles\ConfigMgr Console`" DefaultSiteServerName=`"sccmserver.domain.com`" /q"

Uninstall:

Uninstall-ADTApplication -Name 'Microsoft Configuration Manager Console' -ArgumentList '/quiet /norestart'

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.