PowerShell Desktop Variable

前端 未结 3 1949
无人及你
无人及你 2021-02-06 22:27

I am trying to write a PowerShell script to remove the desktop icon for Chrome after installing through sccm. However, certain users in the network have their desktop directed t

3条回答
  •  说谎
    说谎 (楼主)
    2021-02-06 23:28

    If you need $Desktop\a.txt, use this

    echo ([Environment]::GetFolderPath("Desktop")+"\a.txt")
    

提交回复
热议问题