It hangs at the stage of creating an archive

Nov 15, 2016 at 3:38 PM
Edited Nov 15, 2016 at 3:39 PM
Hi Allan,

I am trying to configure Group Policy (Computer configuration - Policy - Windows configuration - Scripts (Startup / Shutdown)), using 7zBackup.ps1.

When you run the script, use the account SYSTEM, it hangs at the stage of creating an archive. The error occurs at the stage of copying the files to the newly created file size of 36 bytes.
If the script is run locally on the account SYSTEM - the script is executed fully.

Is it possible to use 7zBackup.ps1 using Group Policy?
Coordinator
Nov 18, 2016 at 11:50 AM
Hi crofforc

are you invoking the script during a startup or a shutdown ?
Which is the version of Windows you're running the script on ?
Nov 21, 2016 at 10:56 AM
Anlan wrote:
are you invoking the script during a startup or a shutdown ?
I tried to call the script and during a startup and than a shutdown.
Anlan wrote:
Which is the version of Windows you're running the script on ?
Group Policy distributed from the Windows Server 2008 R2
I'm on Windows 7 Professional 64 bits
7zbackup v. 2.0.3 Stable and then 7zBackup v. 2.0.4 Stable
7-Zip [64] 9.20 and then 7-Zip [64] 16.04
$PSVersionTable

Name                           Value
----                           -----
CLRVersion                     2.0.50727.5485
BuildVersion                   6.1.7601.17514
PSVersion                      2.0
WSManStackVersion              2.0
PSCompatibleVersions           {1.0, 2.0}
SerializationVersion           1.1.0.1
PSRemotingProtocolVersion      2.1
and then
$PSVersionTable

Name                           Value
----                           -----
PSVersion                      4.0
WSManStackVersion              3.0
SerializationVersion           1.1.0.1
CLRVersion                     4.0.30319.42000
BuildVersion                   6.3.9600.16406
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0}
PSRemotingProtocolVersion      2.2