Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Powershell command doesn't run

Posted on 2013-10-23
2
Medium Priority
?
1,047 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 41

Accepted Solution

by:
footech earned 1500 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 41

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

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.

Question has a verified solution.

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

A quick Powershell script I wrote to find old program installations and check versions of a specific file across the network.
In this post we will be converting StringData saved within a text file into a hash table. This can be further used in a PowerShell script for replacing settings that are dynamic in nature from environment to environment.
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…
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…

704 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