• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1077
  • Last Modified:

Powershell command doesn't run

I have server 2008R2SP1 with DPM 2010 installed on it
OS is installed on C: drive
DPM2010 is installed on E:\Program Files\Microsoft DPM
I have to remove server from DPM
To do that I have to run powershell command "remove-productionserver.ps1"
Script is located in E:\Program Files\Microsoft DPM\DPM\bin folder
When I try to change a direction from C: to E: and then to Program Files\Microsoft DPM\DPM\bin I receive

Set-Location : A positional parameter cannot be found that accepts argument 'files'.

How can I change directions to run powershell script
0
vadimmikhal
Asked:
vadimmikhal
  • 2
1 Solution
 
footechCommented:
Try putting quotes around your path, i.e.
Set-Location "E:\Program Files\Microsoft DPM\DPM\bin"

Open in new window

0
 
footechCommented:
Can I ask why the "B" grading?
See here for grading guidelines.  http://support.experts-exchange.com/customer/portal/articles/481419-what-grade-should-i-award-
0

Featured Post

Has Powershell sent you back into the Stone Age?

If managing Active Directory using Windows Powershell® is making you feel like you stepped back in time, you are not alone.  For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now