Powershell复制文件到C:\windows\system32

写一个Powershell脚本碰到这个问题,浪费我好多时间.

成都创新互联专注于鄠邑网站建设服务及定制,我们拥有丰富的企业做网站经验。 热诚为您提供鄠邑营销型网站建设,鄠邑网站制作、鄠邑网页设计、鄠邑网站官网定制、微信小程序定制开发服务,打造鄠邑网络公司原创品牌,更为您提供鄠邑网站排名全网营销落地服务。

由于 windows系统分32位的64位的,所当把文件拷贝到system32这个系统目录是有区别的

直接拷贝命令

Copy-Item -Force c:\temp\backgroundDefault.jpg c:\windows\system32\oobe\info\backgrounds\

64位系统 文件会拷贝到 C:\Windows\SysWOW64\oobe\info\

64位要拷贝到system32这个目录,需要写 c:\windows\sysnative\

**Copy-Item -Force c:\temp\backgroundDefault.jpg c:\windows\sysnative\oobe\info\backgrounds\**

https://social.technet.microsoft.com/Forums/office/en-US/2551af46-b974-4a19-b027-9c0ffe405aac/copy-file-to-cwindowssystem32-on-windows64?forum=winserverpowershell


分享标题:Powershell复制文件到C:\windows\system32
浏览路径:http://bzwzjz.com/article/jdspch.html

其他资讯

Copyright © 2007-2020 广东宝晨空调科技有限公司 All Rights Reserved 粤ICP备2022107769号
友情链接: 成都网站制作 定制网站建设多少钱 定制网站建设 做网站设计 网站建设推广 自适应网站建设 网站制作报价 定制网站设计 网站建设 成都网站建设 企业网站设计 成都网站建设 营销网站建设 高端品牌网站建设 成都网站制作 成都企业网站建设 营销型网站建设 网站建设 专业网站设计 成都网站制作公司 成都商城网站制作 营销型网站建设