Permission errors in PowerShell

前端 未结 4 574
臣服心动
臣服心动 2020-12-16 09:24

I am new to PowerShell. When trying to write a simple script that deletes the contents of a folder and then fills it with files copied from a different folder, I always get

4条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-16 09:48

    Is UAC enabled? If so try running your PowerShell session as 'Administrator'. It really looks like you don't have permission to delete the objects.

    We have very restrictive security policies where I work and users not familiar with UAC get burned all the time.

提交回复
热议问题