Репа была сделана через git init. Не склонированная.
Committer: Max <username@domainname>
Your name and email address were configured automatically based
on your username and hostname. Please check that they are accurate.
$params = 'a' ,'C:\Users\Admin\full.7z','-r','C:\Users\Admin\test\'
if ($check_file -eq $false) { & "C:\Program Files\7-Zip\7zG.exe" $params }
if (-not $check_file)
-Identity
Specifies an Active Directory user object by providing one of the following property values. The identifier in parentheses is the L
DAP display name for the attribute.
Distinguished Name
Example: CN=SaraDavis,CN=Europe,CN=Users,DC=corp,DC=contoso,DC=com
GUID (objectGUID)
Example: 599c3d2e-f72d-4d20-8a88-030d99495f20
Security Identifier (objectSid)
Example: S-1-5-21-3165297888-301567370-576410423-1103
SAM account name (sAMAccountName)
Example: saradavis
The cmdlet searches the default naming context or partition to find the object. If two or more objects are found, the cmdlet return
s a non-terminating error.
This parameter can also get this object through the pipeline or you can set this parameter to an object instance.
This example shows how to set the parameter to a distinguished name.
-Identity "CN=SaraDavis,CN=Europe,CN=Users,DC=corp,DC=contoso,DC=com"
This example shows how to set this parameter to a user object instance named "userInstance".
-Identity $userInstance
Требуется? true
Позиция? 1
Значение по умолчанию
Принимать входные данные конвейера?True (ByValue)
Принимать подстановочные знаки?false
а права на шару (\\dc\soft\7zip\) какие ?
как на объект share, так и ntfs ?
а перенаправление запуска в файл сделать ? как в ещё в начале в комментарии к вопросу написал