Solved

Powershell remote file-out

Posted on 2013-12-05
1
1,678 Views
Last Modified: 2013-12-05
Setup:
I have a domain runing Server 2008 R2 and windows 7. I am starting to use powershell more and more. I have configued WinRM and used group policy to Allow Automatic configuration of listeners. I can now start a remote session and execute powershell commands on remote machines from Powershell ISE or Powershell on my machine (logged in as domain admin).

Problem:
After a few test commands I ran the following:
Get-ChildItem -Path C:\nso | Out-File -FilePath \\mymachine\c$\nso\test.txt
However I ran into the following error:
Access to the path '\\mymachine\c$\nso\test.txt' is denied.
    + CategoryInfo          : OpenError: (:) [Out-File], UnauthorizedAccessException
    + FullyQualifiedErrorId : FileOpenFailure,Microsoft.PowerShell.Commands.OutFileCommand

I can't understand why such a simple command fails I am a domain admin, I started the session using domain admin credentials and I can happly read/write to both locations if I browse to them.......what am I missing? thanks in advance
0
Comment
Question by:Dead_Eyes
[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
1 Comment
 
LVL 40

Accepted Solution

by:
footech earned 250 total points
ID: 39698975
0

Featured Post

Are your AD admin tools letting you down?

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

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.
There are many software programs on offer that will claim to magically speed up your computer. The best advice I can give you is to avoid them like the plague, because they will often cause far more problems than they solve. Try some of these "do it…
This Micro Tutorial will teach you how to change your appearance and customize your Windows 7 interface to your unique preference. This will be demonstrated using Windows 7 operating system.
This Micro Tutorial will give you a basic overview of Windows DVD Burner through its features and interface. This will be demonstrated using Windows 7 operating system.

734 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