none
Creating new file on remote system RRS feed

  • Question

  • The above code gives the following error

    Access is denied
        + CategoryInfo          : PermissionDenied: (\\100.100.0.100\c$\Download-SKOA:String) [New-Item], UnauthorizedAccessException
        + FullyQualifiedErrorId : ItemExistsUnauthorizedAccessError,Microsoft.PowerShell.Commands.NewItemCommand
        + PSComputerName        : 100.100.0.253
     
    Access to the path 'TestFolder' is denied.
        + CategoryInfo          : PermissionDenied: (\\100.100.0.100\c$\Download-SKOA:String) [New-Item], UnauthorizedAccessException
        + FullyQualifiedErrorId : CreateDirectoryUnauthorizedAccessError,Microsoft.PowerShell.Commands.NewItemCommand
        + PSComputerName        : 100.100.0.253
     
    Access to the path '\\100.100.0.100\c$\TestFolder\TestFile.txt' is denied.
        + CategoryInfo          : PermissionDenied: (\\100.100.0.100...TestFile.txt:String) [New-Item], UnauthorizedAccessException
        + FullyQualifiedErrorId : NewItemUnauthorizedAccessError,Microsoft.PowerShell.Commands.NewItemCommand
        + PSComputerName        : 100.100.0.253

    For your info the macine with IP 100.100.0.253 is hyper-v machine with windows server

    and machine with IP is 100.100.0.100 is a virtual machine.

    Please help.


    Thursday, October 3, 2013 7:23 AM