SCCM 2012: remotely connect via powershelll: no psdrive
Hi,
I'd like to connect via powershell to a remote sccm-server.
What I did:
Run powershell x86
enter-PSSession -ComputerName sccm2012 -ConfigurationName Microsoft.PowerShell32
Set execution policy to unrestricted
Import-Module ‘c:\Program Files (x86)\Microsoft Configuration Manager\AdminConsole\bin\ConfigurationManager.psd1’
Get-psdrive to see connections (in order to change to sitecode via cd sitecode)
but the site does not appear (connected remotely also via sccm 2012 console and launched "connect via powershell").
Please advise.
J.
Jan Hoedt
You need some reg keys for this to work. Those reg keys are normally created by the console when you start it.
$CMSiteCode = "P01" #Your site code
$CMSiteServerFQDN = "sccm2012.domain.tld" #FQDN to your site server
New-Item -Path HKCU:\Software\Microsoft\ConfigMgr10\AdminUI\MRU\1 -Force
New-ItemProperty -Path HKCU:\Software\Microsoft\ConfigMgr10\AdminUI\MRU\1 -Name DomainName -Value "" -PropertyType String -Force
New-ItemProperty -Path HKCU:\Software\Microsoft\ConfigMgr10\AdminUI\MRU\1 -Name ServerName -Value $CMSiteServerFQDN -PropertyType String -Force
New-ItemProperty -Path HKCU:\Software\Microsoft\ConfigMgr10\AdminUI\MRU\1 -Name SiteCode -Value $CMSiteCode -PropertyType String -Force
New-ItemProperty -Path HKCU:\Software\Microsoft\ConfigMgr10\AdminUI\MRU\1 -Name SiteName -Value "Primary Site $($CMSiteCode)" -PropertyType String -Force
Use the script above before you import the CM-PoSh-Module, I've used it for some of my customers.
Tim Nilimaa | Blog: http://infoworks.tv | Twitter: @timnilimaa
Similar Messages
-
Hi All,
I need an advice on
1. how many remote control connection can be handled by SCCM server at a time.
2. I am facing an issue in patch download in SCCM server, i have configured the SCCM sup point and i got an error downloading the patches. So we verified the WSUS console and found proxy account is not updated in "Update source and proxy server"
which i added manually as per microsoft suggestion which resolved the issue (We thought it was Mcafee). So i removed MCafee and installed SEP on all the SCCM servers. Even now it seems the "Update source and proxy server" is getting disabled everytime
and only if i enable the proxy server in Update source and proxy server the issue gets resolved. Please advice
Please provide your inputs
Regards, PratapHi,
Did you update the proxy account in the WSUS console?
"So we verified the WSUS console and found proxy account "
If so it will be overwritten by SCCM which "owns" the configuration of WSUS, so you schould change the setting there..
Regards,
Jörgen
-- My System Center blog ccmexec.com -- Twitter
@ccmexec -
SCCM 2012 Remote control with NON admin ID
When trying to remote a machine via SCCM 2012 remote control using a non admin ID it does not connect. Get the following in the CmRcService log file:
HandshakeWorker failed..
The logon attempt failed (Error: 8009030C; Source: Windows) CmRcService 2014-12-10 01:19:41 PM 2632 (0x0A48)
Security filter server: DoHandshake failed..
The logon attempt failed (Error: 8009030C; Source: Windows) CmRcService 2014-12-10 01:19:41 PM 2632 (0x0A48)
m_pSecFilter DoHandshake() failed. CmRcService 2014-12-10 01:19:41 PM 2632 (0x0A48)
DoHandshake failed on server side.
The logon attempt failed (Error: 8009030C; Source: Windows) CmRcService 2014-12-10 01:19:41 PM 2632 (0x0A48)
Failed to do Handshake in Server.
The logon attempt failed (Error: 8009030C; Source: Windows) CmRcService 2014-12-10 01:19:41 PM 2632 (0x0A48)
Failed to create security context.. Security Handshake failed.
The logon attempt failed (Error: 8009030C; Source: Windows) CmRcService 2014-12-10 01:19:41 PM 2632 (0x0A48)
Failed to validate Security requirement..
The logon attempt failed (Error: 8009030C; Source: Windows) CmRcService 2014-12-10 01:19:41 PM 2632 (0x0A48)
Failed to complete the RDP connection..
The logon attempt failed (Error: 8009030C; Source: Windows) CmRcService 2014-12-10 01:19:41 PM 2632 (0x0A48)Hi,
Please check the similar thread below that is a Group Policy issue.
Quote:
our group policy is allowing only the local administrator to access the network , so the normal user will not able to access the machine even the sccm remote tools member
https://social.technet.microsoft.com/Forums/en-US/77c865c2-7602-4234-a4cd-52d54ab6d653/sccm-2012-remote-access-to-client?forum=configmanagerdeployment
Best Regards,
Joyce -
SCCM 2012 Remote Control Viewer - Multiple Session
Hello Guys,
We have faced one issue that there have only one session can be connected if we are using the SCCM 2012 remote control viewer. The problem is that we have two support team may require to remote the same desktop in the same time via the remote control viewer.
Do anyone know how we can activate more session for remote control viewer in SCCM 2012?
Thanks,
SCCM usersFYI – If you need to have 2 technicians remoted into the same device, we found a workaround, this works with SCCM 2012 SP1 CU3, and Windows 7 clients.
For tech1, using the ConfigMgr console, right-click the device, Start -> Remote Control
For tech2, using the ConfigMgr console, right-click the device, Start -> Remote Assistance -
Sccm 2012- remote access to client
Hi
We have SCCM 2012 and enabled the remote tools to the workstation
I noticed when I used a ccount with local admin I able to access the machine properly
But when I used account "without" local admin account in the computer I'm getting "prompt" to enter user name and password and even I input the account I;m getting still prompt option.
Please advise why the NON/Without "local admin" can't access the machine and pompting a user name and password
The remot tools required local admin ???
although the user have local admin can do ..
RobertWhen I add the "remote control or remote viewer in local administrator of the machine, the thing work smoothly
The only issues are , when the remote viewer is NOT part of local administrator I can't able to remote the machine
addiotinal info for port listening for further troubleshooting
need your help .. is there any relation for the gpo ? because if local admin it work fine
Active Connections
Proto Local Address Foreign Address State
TCP 0.0.0.0:135 SCCMTEST05:0 LISTENING
TCP 0.0.0.0:445 SCCMTEST05:0 LISTENING
TCP 0.0.0.0:2701 SCCMTEST05:0 LISTENING
TCP 0.0.0.0:49152 SCCMTEST05:0 LISTENING
TCP 0.0.0.0:49153 SCCMTEST05:0 LISTENING
TCP 0.0.0.0:49154 SCCMTEST05:0 LISTENING
TCP 0.0.0.0:49182 SCCMTEST05:0 LISTENING
TCP 0.0.0.0:49183 SCCMTEST05:0 LISTENING
TCP 0.0.0.0:49184 SCCMTEST05:0 LISTENING
TCP 192.168.24.218:139 SCCMTEST05:0 LISTENING
TCP 192.168.24.218:2701 server6032:60104 TIME_WAIT
TCP 192.168.24.218:57163 server5092:10123 ESTABLISHED
TCP 192.168.24.218:57265 server06:microsoft-ds ESTABLISHED
TCP 127.0.0.1:57280 SCCMTEST05:0 LISTENING
TCP [::]:135 SCCMTEST05:0 LISTENING
TCP [::]:445 SCCMTEST05:0 LISTENING
TCP [::]:2701 SCCMTEST05:0 LISTENING
TCP [::]:49152 SCCMTEST05:0 LISTENING
TCP [::]:49153 SCCMTEST05:0 LISTENING
TCP [::]:49154 SCCMTEST05:0 LISTENING
TCP [::]:49182 SCCMTEST05:0 LISTENING
TCP [::]:49183 SCCMTEST05:0 LISTENING
TCP [::]:49184 SCCMTEST05:0 LISTENING
UDP 0.0.0.0:123 *:*
UDP 0.0.0.0:500 *:*
UDP 0.0.0.0:4500 *:*
UDP 0.0.0.0:5355 *:*
UDP 192.168.24.218:137 *:*
UDP 192.168.24.218:138 *:*
UDP 192.168.24.218:1900 *:*
UDP 192.168.24.218:54661 *:*
UDP 127.0.0.1:1900 *:*
UDP 127.0.0.1:52574 *:*
UDP 127.0.0.1:54575 *:*
UDP 127.0.0.1:54662 *:*
UDP 127.0.0.1:56463 *:*
UDP 127.0.0.1:59546 *:*
UDP 127.0.0.1:59642 *:*
UDP 127.0.0.1:63001 *:*
UDP 127.0.0.1:63986 *:*
UDP [::]:123 *:*
UDP [::]:500 *:*
UDP [::]:4500 *:*
UDP [::]:5355 *:*
UDP [::1]:1900 *:*
UDP [::1]:54660 *:*
UDP [fe80::9ddb:5483:f053:126e%11]:1900 *:*
UDP [fe80::9ddb:5483:f053:126e%11]:54659 *:*
Robert -
Allowing the domain users Group to SCCM 2012 Remote Control
Hi There,
been working on this issue for the last few days now and its frustrating the crap out of me. My company has requested for all Domain users to be allowed to Remote Control to everyone's computer. This is so that users will be able to show each other how to
use in house application. In SCCM 2012 console, I've added the Domain users to the Premitted viewer tab. I've also added the domain user group to the administrative user section, added the Remote operator role and assigned the
ALL security scope to it. On another machine, i run the CMRCviewer to this machine and it prompts for username advising me the one i provided isn't authorized. when i check on the targeted machine, i can see domain users populated in the ConfigMgr
remote control user group
It seems only domain admins have rights to Remote control in. i've only got one client setting defined (default policy).
the interesting thing is the following layout
WINDOWS XP ---> WINDOWS 7 prompts for username
WINDOWS 7 -----> WINDOWS XP works
WINDOWS XP -----> WINDOWS XP works
WINDOWS 7 ------> WINDOWS 7 prompts for usernameHi Dave,
1) yes domain users is part of the configMgr remote control users". CMRCSERVICE.log shows the following
=== Starting security handshake ===
CmRcService
11/03/2013 10:44:29 AM
4808 (0x12C8)
HandshakeWorker failed..
The logon attempt failed (Error: 8009030C; Source: Windows)
CmRcService 11/03/2013 10:44:29 AM
4808 (0x12C8)
Security filter server: DoHandshake failed..
The logon attempt failed (Error: 8009030C; Source: Windows)
CmRcService 11/03/2013 10:44:29 AM
4808 (0x12C8)
m_pSecFilter DoHandshake() failed. CmRcService
11/03/2013 10:44:29 AM 4808 (0x12C8)
DoHandshake failed on server side.
The logon attempt failed (Error: 8009030C; Source: Windows)
CmRcService 11/03/2013 10:44:29 AM
4808 (0x12C8)
Failed to do Handshake in Server.
The logon attempt failed (Error: 8009030C; Source: Windows)
CmRcService 11/03/2013 10:44:29 AM
4808 (0x12C8)
Failed to create security context.. Security Handshake failed.
The logon attempt failed (Error: 8009030C; Source: Windows)
CmRcService 11/03/2013 10:44:29 AM
4808 (0x12C8)
Failed to validate Security requirement..
The logon attempt failed (Error: 8009030C; Source: Windows)
CmRcService 11/03/2013 10:44:29 AM
4808 (0x12C8)
Failed to complete the RDP connection..
The logon attempt failed (Error: 8009030C; Source: Windows)
CmRcService 11/03/2013 10:44:29 AM
4808 (0x12C8)
i've confirmed this user is part of domain users as well. -
SCCM 2012 Client (Connection Type: Currently Internet)
Hi
I migrate SCCM 2007 to SCCM 2012 R2 on Windows 2012. (no problem)
I configure OSD to deploy Windows 7 SP1. When i deploy a Windows 7 on computer test, no problem, but a SCCM client on the computer = Connection Type: Currently Internet ???
I try: SMSSITECODE = AUTO, SMSSLP= servername, etc....
I check "boundary", log files
But if not install SCCM client with OSD and after install client manually = no problem.
Do you have any idea?
ThanksI try: SMSSITECODE = AUTO, SMSSLP= servername, etc....
Hi,
SLP has been merged into the Management Point in SCCM 2012.
Are there any useful information in the relevant logs(Smsts.log, client installation logs)? There should be some information about client install properties.
Best Regards,
Joyce Li
We
are trying to better understand customer views on social support experience, so your participation in this
interview project would be greatly appreciated if you have time.
Thanks for helping make community forums a great place. -
SCCM 2007 to SCCM 2012 client migration via Powershell
Hi
I'm looking for a controlled way to migrate a SCCM 2007 server client to SCCM 2012. A push of SCCM Console is no option.
I 'll do all the testing but hoped to gain some time by having these questions answered:
*can an install of SCCM 2012 client be remotely triggered in one go (no uninstall of 2007 needed)?
*if uninstall is needed (of sccm 2007 client), does it need a reboot?
What command to use (preferrably powershell):
\\ourserver\Client\ccmsetup.exe" -argumentlist "SMSSITECODE=sitecode","SMSMP=oursccmserver","SMSCACHESIZE=8000","FSP=oursccmserver","CCMLOGMAXSIZE=104857600"
OR (guess that's the command SCCM is using)
Install-CMClient-DeviceName$ComputerName-IncludeDomainController$False-SiteCodePRD-ForceReinstall$True-AlwaysInstallClient$True-Verbose
J.
Jan Hoedtdo I need to import the machine in SCCM 2012 also or launching the SCCM 2012 install from a SCCM 2007
will do this?
How will you do that? This does not work at all when using client push obviously. You can only use packages/programs to update clients to CM12 in that case and that's something you did not want to do.
Torsten Meringer | http://www.mssccmfaq.de -
Remote connection via http connection-URL access
Hello all,
I would like to connect to the customer Business object system from our solution manager. The customer has configured http connection and has opened the connection in marketplace and has maintained http connection-URL access. The URL has also been maintained.
I have added the corresponding entry also in my hosts file. But i am not able to access the customer URL.
Anyone please tell me how to do remote connection for the connection type "http connection - URL access".
Thanks,
Aishwarya.Hi Tim,
I am getting "The page cant be displayed" error while trying the BO system's URL in my browser.
Please tell me which of the below methods i can use:
1. By directly connecting to the BO system URL from the browser (is it possible?)
2. By using VPN connection
3. By installing diagnostic agent in solution manager
4. By following the steps in this link:
Establishing a Connection Using a Destination (SM59) - Components of SAP Communication Technology - SAP Library
Regards,
Aishwarya. -
Issue with KB2830477 and SCCM 2012 Remote Control Viewer
I've just rolled out Feb '13 updates for Windows 7. The update KB2830477 appears to cause
an issue when closing a remote control session using SCCM Remote Control Viewer
(2012).
The following error appears:
"ConfigMgr Remote Control Viewer has Stopped Working"
"A Problem Caused the Program to Stop Workingcorrectly. Please Close the
Program"
In the Event log, the following event is triggered in Windows Logs>Application.
Faulting application name: CmRcViewer.exe, version: 5.0.7711.0, time stamp: 0x4f42f979
Faulting module name: msxml6.dll, version: 6.30.7601.17988, time stamp: 0x5091ff29
Exception code: 0xc0000005
Fault offset: 0x00056368
Faulting process id: 0x24c0
Faulting application start time: 0x01cf2d7bf99dc96d
Faulting application path: C:\Program Files\Microsoft Configuration
Manager\RemoteControlViewer\CmRcViewer.exe
Faulting module path: C:\Windows\System32\msxml6.dll
This is with an EventID: 1000. Removing the update resolves the issue.
Report Id:
36c3642d-9970-11e3-89bd-028037ec0200Hi,
I recommend you check the log file CMRcViewer.log:
It records details about the activity of the remote control viewer.
Located in the %temp% folder on the computer running the remote control viewer.
We
are trying to better understand customer views on social support experience, so your participation in this
interview project would be greatly appreciated if you have time.
Thanks for helping make community forums a great place. -
SCCM 2012 Remote Control - Can't use Mouse
Not sure if there's a setting somewhere or what but this is strange.
When I'm in SCCM and I right Click a PC and choose Start / Remote Control, everything works fine while I'm logging in. I can click in the Username and password fields, click OK to our disclaimer, etc.
However, once I get logged in, the mouse stops functioning and I can only use the keyboard. I can't click to open programs, close programs, or anything else.
Anyone experienced this before and have any idea what the cause might be?
Thanks.Hi,
Have you tried to Remote Control on another client? Still same issue?
Best Regards,
Joyce
We
are trying to better understand customer views on social support experience, so your participation in this
interview project would be greatly appreciated if you have time.
Thanks for helping make community forums a great place. -
Remote Connection via WAN not an option
Recently I was gifted a TC from my uncle, who also purchased one. I set mine up and am simply utilizing the built in 500gb hard drive for storage, until I can purchase a TB external drive. He has a TB connected to his TC. We are running 7.4.1 firmware, and the AirPort Utility. I was able to open AirPort Utility and check the box for sharing the disks via WAN and can access the TC from any outside network. However, when we attempt to set up the WAN under the Disks/File Sharing tab, it only gives me the option to: "Share disks over the Internet using Bonjour." Does anyone have any ideas why we don't even have the option of selecting WAN?
Thank you all!
--KevinI'm not quite sure why you posted this.
You marked your post as a question... but I can't find one.
Do you have a question or was this somewhat of an "informational" post? -
SCCM 2012 Remote Control - from Queries
Hopefully I can find out what's going on with my query configuration.
I've created some Queries for my Help Desk personnel. When using the default "Last Logged On User" query, It gives me the results for the user's computer, but when right-clicking on the computer the option for "Remote Control" is greyed out.
Resource Explorer and the others are available and work properly, just not Remote Control. However when I view any of the collections, Remote Control works perfectly. For now, my guys are running the queries, recording the computer name, then searching
the collections. Even as a Full Administrator I experience this. Any suggestions or possible items I have not enabled?
Thanks for any info.
Charlie HawkinsSame issue here.
I have completely customized my columns it to add lots of useful information from different class and now EVERYTHING is grayed out.
so I tried all of your suggestions, and some functions did come back. not all. However, now the Queries are useless to me. I need to see the model of the computer, last logon user, last heart beat, install date, OS name that's not a number
but the Caption that says Windows 7 instead of 6.1 that makes sense to the upper management etc.
so, I took the original out of the box query that works perfectly fine and once I added "SMS_G_System_COMPUTER_SYSTEM.Model" , it broke the query.
I see this as design flaw of Microsoft and reported to be looked at. or am I wrong?
any ideas? -
SCCM 2012: enable powershell execution policy for SCCM 2012 console
Hi,
I always get stuck settings up the remote sccm 2012 powershell (cd psdrive sitecode:). Maybe not a real sccm 2012 question but Powershell but wonder what steps you take to make it work (it works on our production environment, setting up in a lab always gives
me headaches, will defintely write the solution down this time :-)).
Please advise what the steps are in configuring remote powershell for SCCM 2012.
1.my personal account "Myuser" has admin-rights in sccm 2012
2.I can open Powershell logged on to the sccm 2012 server then opening sccm 2012 console, connect via powershell
3.however, when I connect remote to the sccm server, I get the error:
. : File C:\Users\Myuser\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1 cannot be loaded. The file C:\Use
rs\MyUser\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1 is not digitally signed. You cannot run this scr
ipt on the current system. For more information about running scripts and setting execution policy, see about_Execution
_Policies at http://go.microsoft.com/fwlink/?LinkID=135170.
4.So I connect to the sccm-server and ask for the execution policy to unrestricted, I get this:
set-executionpolicy unrestricted
[Y] Yes [N] No [S] Suspend [?] Help (default is "Y"): y
Set-ExecutionPolicy : Windows PowerShell updated your execution policy successf
ully, but the setting is overridden by a policy defined at a more specific scope
There is no policy which sets any powershell configs.
Please advise.
J.
Jan HoedtThose client settings are only for the actions performed by the ConfigMgr client. Normal PowerShell actions are restricted to the configured execution policy on the machine.
Have a look at this post:
http://blogs.msdn.com/b/pasen/archive/2011/12/07/set-executionpolicy-windows-powershell-updated-your-execution-policy-successfully-but-the-setting-is-overridden-by-a-policy-defined-at-a-more-specific-scope.aspx
My Blog: http://www.petervanderwoude.nl/
Follow me on twitter: pvanderwoude -
Microsoft Intune and SCCM 2012 R2 Integration - Windows 7 clients.
Hi All,
This is our scenario I am trying to find out more about Intune integration with SCCM 2012 R2 and what solution is best for us.
We have a SCCM 2012 R2 instance up and running which services/monitors machines on our internal network. All of these machines are Windows 7 OS. We have laptops that travel frequently and need for these to report back to our SCCM server whilst connected
via internet connections. Also we have multiple "off domain" machines (ie workgroup machines) which we also need to report back to the same SCCM server.
I have read a lot about Intune integration with SCCM but it appears to be targetted at MDM not around PC management.
What would be the best way for us to move forward?
Thanks in advance.Just see my reply in the ConfigMgr forums.
Torsten Meringer | http://www.mssccmfaq.de
Maybe you are looking for
-
Multicam view not showing up in project window
The sequence and all the source files are there, but the multicam window is just black. How do I fix this for easier multicam editing? Left: as the source window and project file window shows, everything is there. Right: It is all black where the mul
-
Dear Friends , we have a portal and the users are maintained in R/3 that means UME is R/3 . Now when i have to give the access to the users to use ESS applications they are not bale to view ESS role since the portal is mapper to client where the user
-
Here's the skinny. I created a VERY simple site, main page, one button, and a second page with samples. Each sample is an external .swf with a fade in and fade out for nice transitions between each sample. If I go to the samples page and click on a n
-
I am unable to play back certain songs from the nano plus to my computer. Songs that I recorded directly from the cd work ok, but the pre-loaded songs will not play, nor will others that were recorded from music files from a friends computer. Any tho
-
Error While loading data from 8 DSOname to Cube.
Hi All, while loading data from 8<DSONAME> to CUBE , the data is Sucessfully loaded data into Cube, but the Request Status is shown in Yellow,why it is showing, please tell me how to make it Sucessfull. Thanks and Regards, santosh.