Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Remote PowerShell console using psexec

Status
Not open for further replies.

TheTechMuse

Programmer
Oct 9, 2008
2
I'm trying to create a remote PowerShell console with psexec, however I get an odd message:

Code:
[C:\Users\David] psexec \\david-laptop '\\david-laptop\admin$\system32\windowspowershell\v1.0\powershell.exe'

PsExec v1.94 - Execute processes remotely
Copyright (C) 2001-2008 Mark Russinovich
Sysinternals - [URL unfurl="true"]www.sysinternals.com[/URL]

                                                                              on david-laptop...
Windows PowerShell
Copyright (C) 2006 Microsoft Corporation. All rights reserved.

Attempting to perform the InitializeDefaultDrives operation on the 'DirectoryServices' provider failed.

When I try to do the same thing with cmd.exe it works just fine:

Code:
[C:\Users\David] psexec \\david-laptop 'cmd.exe'

PsExec v1.94 - Execute processes remotely
Copyright (C) 2001-2008 Mark Russinovich
Sysinternals - [URL unfurl="true"]www.sysinternals.com[/URL]


Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\WINDOWS\system32>

Any idea why this is happening or how to make this work?

Thanks for the help.
David
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top