Quantcast
Channel: Configuration Manager 2007 Operating System Deployment forum
Viewing all articles
Browse latest Browse all 1063

Getting Access is Denied when Running Script in OSD Task Sequence

$
0
0

I am attempting put in a script that will move the computer account to the proper OU in AD.  I have the script but when it launches inside of the TS I get "CScript Error: Loading script "C:\_SMSTaskSequence\WDPackage\Scripts\MoveOU.vbs" failed (Access is denied. )."

I am using the Run Command Line, and using the "Run this step as the following account"  I have verified that the account has access to do what I need it to do in AD.  I have attached the logs as well.

PackageID = 'WI10015A'InstallSoftware3/21/2012 8:46:53 AM3316 (0x0CF4)
BaseVar   = '', ContinueOnError=''InstallSoftware3/21/2012 8:46:53 AM3316 (0x0CF4)
SwdAction = '0001'InstallSoftware3/21/2012 8:46:53 AM3316 (0x0CF4)
Getting linked tokenInstallSoftware3/21/2012 8:46:53 AM3316 (0x0CF4)
failed to get the token informationInstallSoftware3/21/2012 8:46:53 AM3316 (0x0CF4)
Get RunAs private desktop SMSTS-169042\SMSTSDesktopInstallSoftware3/21/2012 8:46:54 AM3316 (0x0CF4)
Run command line under a user accountInstallSoftware3/21/2012 8:46:54 AM3316 (0x0CF4)
Found the location for the package _SMSTSWI10015A. The location is on \\<SCCMSERVERNAME>\SMSPKGF$\WI10015A\InstallSoftware3/21/2012 8:46:54 AM3316 (0x0CF4)
nPos != CCM::Utility::String::npos, HRESULT=80004005 (e:\nts_sms_fre\sms\framework\tscore\resolvesource.cpp,253)InstallSoftware3/21/2012 8:46:54 AM3316 (0x0CF4)
Creating a connection to \\<SCCMSERVERNAME>\SMSPKGF$\WI10015A\ with default accountInstallSoftware3/21/2012 8:46:54 AM3316 (0x0CF4)
Connection request for "\\<SCCMSERVERNAME>\SMSPKGF$\WI10015A"InstallSoftware3/21/2012 8:46:54 AM3316 (0x0CF4)

No credentials available for connecting to "\\<SCCMSERVERNAME>\SMSPKGF$\WI10015A". See whether the share has already been connected.InstallSoftware3/21/2012 8:46:54 AM3316 (0x0CF4)

Connecting to "\\<SCCMSERVERNAME>\SMSPKGF$\WI10015A"InstallSoftware3/21/2012 8:46:54 AM3316 (0x0CF4)
Successfully connected to "\\<SCCMSERVERNAME>\SMSPKGF$\WI10015A"InstallSoftware3/21/2012 8:46:54 AM3316 (0x0CF4)
Resolved source to '\\<SCCMSERVERNAME>\SMSPKGF$\WI10015A'InstallSoftware3/21/2012 8:46:54 AM3316 (0x0CF4)
Command line for extension .exe is "%1" %*InstallSoftware3/21/2012 8:46:54 AM3316 (0x0CF4)
Set command line: Run command lineInstallSoftware3/21/2012 8:46:54 AM3316 (0x0CF4)
Working dir '\\<SCCMSERVERNAME>\SMSPKGF$\WI10015A'InstallSoftware3/21/2012 8:46:54 AM3316 (0x0CF4)
Executing command line: Run command lineInstallSoftware3/21/2012 8:46:54 AM3316 (0x0CF4)
Create a process under given user tokenInstallSoftware3/21/2012 8:46:54 AM3316 (0x0CF4)
Process completed with exit code 1InstallSoftware3/21/2012 8:46:54 AM3316 (0x0CF4)
Microsoft (R) Windows Script Host Version 5.8 InstallSoftware3/21/2012 8:46:54 AM3316 (0x0CF4)
Copyright (C) Microsoft Corporation. All rights reserved.InstallSoftware3/21/2012 8:46:54 AM3316 (0x0CF4)
InstallSoftware3/21/2012 8:46:54 AM3316 (0x0CF4)

CScript Error: Loading script "C:\_SMSTaskSequence\WDPackage\Scripts\MoveOU.vbs" failed (Access is denied. ).

InstallSoftware3/21/2012 8:46:54 AM3316 (0x0CF4)

Command line returned 1InstallSoftware3/21/2012 8:46:54 AM3316 (0x0CF4)
Entering ReleaseSource() for \\<SCCMSERVERNAME>\SMSPKGF$\WI10015A\InstallSoftware3/21/2012 8:46:54 AM3316 (0x0CF4)
reference count 1 for the source \\<SCCMSERVERNAME>\SMSPKGF$\WI10015A\ before releasingInstallSoftware3/21/2012 8:46:54 AM3316 (0x0CF4)
Released the resolved source \\<SCCMSERVERNAME>\SMSPKGF$\WI10015A\InstallSoftware3/21/2012 8:46:54 AM3316 (0x0CF4)
Process completed with exit code 1TSManager3/21/2012 8:46:54 AM2520 (0x09D8)
!--------------------------------------------------------------------------------------------!TSManager3/21/2012 8:46:54 AM2520 (0x09D8)
Failed to run the action: Move Computer to Correct OU. 
Incorrect function. (Error: 00000001; Source: Windows)TSManager3/21/2012 8:46:54 AM2520 (0x09D8)
Sending status message . . .TSManager3/21/2012 8:46:54 AM2520 (0x09D8)
Send a task execution status message SMS_TSExecution_ActionFailErrorTSManager3/21/2012 8:46:54 AM2520 (0x09D8)
MP server <SCCMSERVERNAME> and port 80. SSL=false. CRL=false.TSManager3/21/2012 8:46:54 AM2520 (0x09D8)
Site code: WI1TSManager3/21/2012 8:46:54 AM2520 (0x09D8)
Client machine name: 1J44KQ1TSManager3/21/2012 8:46:54 AM2520 (0x09D8)
Client Identity: GUID:6ffb32d4-1184-4e40-a1c8-26272a707a72TSManager3/21/2012 8:46:54 AM2520 (0x09D8)
Advertisement ID: WI12029DTSManager3/21/2012 8:46:54 AM2520 (0x09D8)
Package ID: WI1001E7TSManager3/21/2012 8:46:54 AM2520 (0x09D8)
Sending StatusMessageTSManager3/21/2012 8:46:54 AM2520 (0x09D8)
Formatted header:TSManager3/21/2012 8:46:54 AM2520 (0x09D8)
<Msg SchemaVersion="1.1" ReplyCompression="zlib"><ID/><SourceID>ABB94CBE-33F4-4EB9-A151-34EE3474A0F9</SourceID><SourceHost/><TargetAddress>mp:[http]MP_StatusManager</TargetAddress><ReplyTo>direct:OSD</ReplyTo><Priority>3</Priority><Timeout>3600</Timeout><SentTime>2012-03-21T12:46:54Z</SentTime><Protocol>http</Protocol><Body Type="ByteRange" Offset="0" Length="4174"/><Hooks/><Payload Type="inline"/><TargetHost/><TargetEndpoint>StatusReceiver</TargetEndpoint><ReplyMode>Sync</ReplyMode><CorrelationID/></Msg>
TSManager 3/21/2012 8:46:54 AM2520 (0x09D8)
CLibSMSMessageWinHttpTransport::Send: URL: <SCCMSERVERNAME>:80  CCM_POST /ccm_system/requestTSManager3/21/2012 8:46:54 AM2520 (0x09D8)
The request has succeeded. 200 OKTSManager3/21/2012 8:46:55 AM2520 (0x09D8)
Set a global environment variable _SMSTSLastActionRetCode=1TSManager3/21/2012 8:46:55 AM2520 (0x09D8)
Set a global environment variable _SMSTSLastActionSucceeded=falseTSManager3/21/2012 8:46:55 AM2520 (0x09D8)
Clear local default environmentTSManager3/21/2012 8:46:55 AM2520 (0x09D8)
Let the parent group (Testing) decides whether to continue executionTSManager3/21/2012 8:46:55 AM2520 (0x09D8)
The execution of the group (Testing) has failed and the execution has been aborted. An action failed.
Operation aborted (Error: 80004004; Source: Windows)TSManager3/21/2012 8:46:55 AM2520 (0x09D8)
Failed to run the last action: Move Computer to Correct OU. Execution of task sequence failed.
Incorrect function. (Error: 00000001; Source: Windows)TSManager3/21/2012 8:46:55 AM2520 (0x09D8)

Any suggestions would be greatly appreciated!



"You can't fix stupid!"


Viewing all articles
Browse latest Browse all 1063

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>