Solved

Powershell command doesn't run

Posted on 2013-10-23
2
969 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
  • 2
2 Comments
 
LVL 39

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 39

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

Is Your AD Toolbox Looking More Like a Toybox?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

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

I thought I'd write this up for anyone who has a request to create an anonymous whistle-blower-type submission form created using SharePoint 2010 (this would probably work the same for 2013). It's not 100% fool-proof but it's as close as you can get…
This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
This tutorial will give a short introduction and overview of Backup Exec 2012 and how to navigate and perform basic functions. Click on the Backup Exec button in the upper left corner. From here, are global settings for the application such as conne…
This tutorial will walk an individual through setting the global and backup job media overwrite and protection periods in Backup Exec 2012. Log onto the Backup Exec Central Administration Server. Examine the services. If all or most of them are stop…

831 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