running a file remotely and saving contents to network share
i'm running long powershell script audit servers outputs html file. i'm trying run script remotely computer , have it's contents save network share. enabled psremoting, , set script output
$myreport | out-file -encoding ascii -filepath \\myserver\sharename\$filename
the report runs fine access denied when tries save file network share.
smaximus7
1) configure credspp http://msdn.microsoft.com/en-us/library/ee309365(v=vs.85).aspx http://rkeithhill.wordpress.com/2009/05/02/powershell-v2-remoting-on-workgroup-joined-computers-%e2%80%93-yes-it-can-be-done/ http://blogs.msdn.com/b/powershell/archive/2008/06/05/credssp-for-second-hop-remoting-part-i-domain-account.aspx 2)configure in ad dpm computer - trust computer delegation http://technet.microsoft.com/en-us/library/cc739764(ws.10).aspx
in task best way create job,return $myrepro remote pc(no need delegate rights),parse on local ps results , save share.
Windows Server > Windows PowerShell
Comments
Post a Comment