TheTechMuse
Programmer
- Oct 9, 2008
- 2
I'm trying to create a remote PowerShell console with psexec, however I get an odd message:
When I try to do the same thing with cmd.exe it works just fine:
Any idea why this is happening or how to make this work?
Thanks for the help.
David
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