Solved

Powershell command doesn't run

Posted on 2013-10-23
2
1,019 Views
Last Modified: 2013-10-24
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
Comment
Question by:vadimmikhal
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
2 Comments
 
LVL 40

Accepted Solution

by:
footech earned 500 total points
ID: 39596039
Try putting quotes around your path, i.e.
Set-Location "E:\Program Files\Microsoft DPM\DPM\bin"

Open in new window

0
 
LVL 40

Expert Comment

by:footech
ID: 39597312
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

10 Questions to Ask when Buying Backup Software

Choosing the right backup solution for your organization can be a daunting task. To make the selection process easier, ask solution providers these 10 key questions.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A recent project that involved parsing Tableau Desktop and Server log files to extract reusable user queries for use in other systems. I chose to use PowerShell to gather the data, and SharePoint to present it...
Previously, on our Nano Server Deployment series, we've created a new nano server image and deployed it on a physical server in part 2. Now we will go through configuration.
This tutorial will show how to configure a new Backup Exec 2012 server and move an existing database to that server with the use of the BEUtility. Install Backup Exec 2012 on the new server and apply all of the latest hotfixes and service packs. The…
This tutorial will show how to configure a single USB drive with a separate folder for each day of the week. This will allow each of the backups to be kept separate preventing the previous day’s backup from being overwritten. The USB drive must be s…
Suggested Courses

617 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question