How to Launch PowerShell from the ConfigMgr Console

In this post, you’ll learn how to launch PowerShell from the ConfigMgr console. Once you connect to PowerShell from the SCCM console, you can run ConfigMgr PowerShell cmdlets.

The easiest method to open PowerShell session is directly from the Configuration Manager console, which allows running cmdlets. The Configuration Manager PowerShell cmdlet library supports PowerShell 7 on the latest current branch versions.

Most of you might be aware that you can use Windows PowerShell to manage your Configuration Manager hierarchy. You can use PowerShell scripts to automate or extend Configuration Manager.

You can run the Configuration Manager cmdlets and scripts in PowerShell from the ConfigMgr console or from a Windows PowerShell session. When you use the Configuration Manager console to run cmdlets, your session automatically runs in the site’s context.


Note that starting in SCCM version 2103, the Configuration Manager PowerShell module requires Microsoft .NET version 4.7.2 or later. Make sure the.NET Framework on the SCCM server is updated to 4.7.2 before running ConfigMgr PowerShell cmdlets.


https://www.phonegekko.com/showthread.php?tid=210

https://forum.papbio.org/showthread.php?tid=3908

https://the-awakening.de/showthread.php?tid=102

http://forum.badcity.live/showthread.php?tid=25

http://www.yypf.com/showthread.php?tid=1680

http://mystrotain.free.fr/forum/showthread.php?tid=22845

https://zinaramirez.com/mybb/thread-192522.html

http://forum.icohaberleri.com/showthread.php?tid=1371

https://cs-bg.org/forum/viewtopic.php?t=79

https://cs-bg.org/forum/viewtopic.php?t=78

https://www.cs-bg.org/forum/viewtopic.php?t=339

https://cs-bg.org/forum/viewtopic.php?p=254

https://inssia.com/viewtopic.php?t=29246

https://www.inssia.com/viewtopic.php?t=41240

https://inssia.com/viewtopic.php?t=46013

https://www.inssia.com/viewtopic.php?t=45718

https://www.inssia.com/viewtopic.php?t=49211

http://forum.sit.earth/viewtopic.php?id=232668

http://forum.sit.earth/viewtopic.php?id=6090

http://forum.sit.earth/viewtopic.php?id=325031

http://forum.pva-group.com/showthread.php?11668-Popular-expensive-perfume

http://forum.pva-group.com/showthread.php?11912-Tesla-stock-split-explained

http://forum.pva-group.com/showthread.php?12793-Progressive-commercial-cast

https://www.hetleuksteplekje.nl/viewtopic.php?t=315258

http://www.hetleuksteplekje.nl/viewtopic.php?t=30472

https://hetleuksteplekje.nl/viewtopic.php?t=131882

http://www.hetleuksteplekje.nl/viewtopic.php?t=133808

https://www.hetleuksteplekje.nl/viewtopic.php?t=442368

http://www.vfl.muellerluedenscheidt.de/phpBB3_forum/viewtopic.php?f=4&t=1435

http://www.vfl.muellerluedenscheidt.de/phpBB3_forum/viewtopic.php?f=4&t=122

http://www.vfl.muellerluedenscheidt.de/phpBB3_forum/viewtopic.php?f=4&t=1394

http://www.vfl.muellerluedenscheidt.de/phpBB3_forum/viewtopic.php?f=4&t=477&p=2036


How to Launch PowerShell from the ConfigMgr Console


Perform the following steps to launch PowerShell from the SCCM console:


  • Launch the Configuration Manager console.
  • In the upper-left corner, there’s a blue rectangle. Select the white arrow in the blue rectangle, and choose Connect via Windows PowerShell.


After Windows PowerShell loads, you’ll see a prompt that contains your site code. For example, if the site code is “MCM“, the prompt looks like: PS MCM:> This confirms that you have successfully launched the PowerShell from the SCCM console.


Run Get-CMSite PowerShell Command


To verify if you have successfully connected to PowerShell from the ConfigMgr console, run the Get-CMSite cmdlet. This cmdlet returns information about the Configuration Manager site you’re currently connected to and any child sites. For example, the site server name, SCCM build number, installation directory, site name, and version.


http://www.vfl.muellerluedenscheidt.de/phpBB3_forum/viewtopic.php?f=4&t=3785

http://forum.cybersecureindia.in/viewtopic.php?id=42522

http://forum.cybersecureindia.in/viewtopic.php?id=22154

http://forum.cybersecureindia.in/viewtopic.php?id=11559

http://forum.kirmash.biz/viewtopic.php?id=19

http://forum.kirmash.biz/viewtopic.php?id=124

http://forum.kirmash.biz/viewtopic.php?id=100

http://xavierdeschamps.free.fr/Escalade/Forum_escalade/viewtopic.php?id=126

http://xavierdeschamps.free.fr/Escalade/Forum_escalade/viewtopic.php?id=104

http://xavierdeschamps.free.fr/Escalade/Forum_escalade/viewtopic.php?id=10

http://heroicfantasygames.free.fr/Forum/viewtopic.php?p=30209

http://heroicfantasygames.free.fr/Forum/viewtopic.php?p=28689

http://heroicfantasygames.free.fr/Forum/viewtopic.php?p=28535

http://heroicfantasygames.free.fr/Forum/viewtopic.php?p=18501

https://www.konzoleforum.com/viewtopic.php?t=1060

https://www.konzoleforum.com/viewtopic.php?t=1435

https://www.konzoleforum.com/viewtopic.php?t=1040

https://www.konzoleforum.com/viewtopic.php?t=355

https://www.konzoleforum.com/viewtopic.php?t=581


Import the Configuration Manager PowerShell module


You can connect to Configuration Manager from an existing Windows PowerShell session by manually loading the Configuration Manager module.


  • Open a Windows PowerShell session from the Start menu.
  • Import the Configuration Manager module by using the Import-Module ConfigurationManager cmdlet.


Comments

Popular posts from this blog

3 Ways to Restart ConfigMgr PXE Responder Service on a DP

ConfigMgr Technical Preview 2303 New Features & Improvements

2 Best Solutions: Error Can’t Connect to Windows 365