我需要一种快速的方法来使用GET-ACL来提取文件的所有者,并创建一个具有用户名而不是域路径的变量。试图简单地替换域是行不通的。
$user = GET-ACL $lastImage.FullName | Select Owner
$user = $user.Replace('ANT\', '')
提供此错误:
Method invocation failed because [Selected.System.Security.AccessControl.FileSecurity] does not contain a method named 'Rep
目标:
我要把每个国家的总数加起来。在下面的例子中。总数应该是200。但很明显,我得到了600美元。基本上,我需要每个客户id的总列中的值,并按国家分列。
形势:
我的模型有以下几个维度
+--------------+-------------+----------+-------------+------------------+
| country name | customer id | order id | Price_total | price before tax |
+--------------+-------------+----------+-------------+-