none
How to use linux Powershell Core to query Windows SCCM server? RRS feed

  • Question

  • Hello, I'm new to SCCM. 
    I'm using linux Powershell Core to access my Windows SCCM server.
    
    I followed these steps:
    1. Enter-PSSession -HostName myhostname -UserName myusername
    2. cd $env:SMS_ADMIN_UI_PATH\..\
    3. import-module .\ConfigurationManager.psd1 -verbose
    4. CD P01:
    
    And it seems that I cannot access the SCCM PSDrive outside my windows server. If I run Get-PSDrive in my linux machine, my sccm with site code "P01" will not show up.
    
    Do you have any suggestion for me to solve this problem?
    
    Thank you!

    Wednesday, October 16, 2019 8:44 PM

All replies