It should be able... you could try to use psexec to start a CMD with SYSTEM account (psexec -s -I cmd) and see what comes out.
From: [email protected] [mailto:[email protected]] On Behalf Of Marcum, John Sent: Mittwoch, 2. April 2014 17:32 To: SMS List ([email protected]) Subject: [mssms] Writing to the Run Registry from Package I am trying to write a reg entry to run BG info at startup. The reg key doesn't get written though. Should the local system account be able to write that key? @Echo Off :: Installs and Configures BGInfo :: Setting Up Variables set AppName=BGInfo set LogDir=%windir%\Logs\%AppName% set Logfile=%LogDir%\%AppName%.log set BGInfoPath=%ProgramFiles%\BGInfo set CDIR=%~dp0 :: Starting Logging if not exist %LogDir% MD %LogDir% echo %AppName% Began installing on %date% at %time% >> %Logfile% :: Installation Section PUSHD %CDIR% :: Checking for and Creating BGInfo Directory If not exist "%BGInfoPath%" MD "%BGInfoPath%" echo MD BGInfoPath completed install with an exit code of %errorlevel% >> %Logfile% :: Copying BGInfo Files Xcopy /y .\BGInfo.exe "%BGInfoPath%\" Xcopy /y .\*.BGI "%BGInfoPath%\" echo BGInfo Copy completed install with an exit code of %errorlevel% >> %Logfile% REG ADD HKLM\Software\Microsoft\Windows\CurrentVersion\Run /v BGInfo /d "C:\Program Files (x86)\BGInfo\BGInfo.exe babc.bgi /Timer:305 /NoLicPrompt /Silent /taskbar" echo wrote reg value :END echo %AppName% completed installing on %date% at %time% >> %Logfile% echo *********************************** >> %Logfile% echo. exit ________________________________ John Marcum MCITP, MCTS, MCSA Sr. Desktop Architect Bradley Arant Boult Cummings LLP ________________________________ [H_Logo] ________________________________ Confidentiality Notice: This e-mail is from a law firm and may be protected by the attorney-client or work product privileges. If you have received this message in error, please notify the sender by replying to this e-mail and then delete it from your computer.
<<inline: image001.png>>

