Solved

Powershell command doesn't run

Posted on 2013-10-23
2
942 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

Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Join & Write a Comment

How to sign a powershell script so you can prevent tampering, and only allow users to run authorised Powershell scripts
New Windows 7 Installations take days for Windows-Updates to show up and install. This can easily be fixed. I have finally decided to write an article because this seems to get asked several times a day lately. This Article and the Links apply to…
This tutorial will show how to push an installation of Backup Exec to an additional server in both 2012 and 2014 versions of the software. Click on the Backup Exec button in the upper left corner. From here, select Installation and Licensing, then I…
This tutorial will walk an individual through the steps necessary to join and promote the first Windows Server 2012 domain controller into an Active Directory environment running on Windows Server 2008. Determine the location of the FSMO roles by lo…

744 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now