richie19rich77
-
Posts
8 -
Joined
-
Last visited
Posts posted by richie19rich77
-
-
Ok thanks, I will check. We have moved from SCCM to ZEN so maybe when syspreping the image we put it in by mistake.
-
I have not activated using MAK, these are PC's imaged via ZEN (SYSPREPED). Like I said they do activate if I manually run "/IPK" with the Windows KMS key.
So this will always be a manual (Or Scripted) process of running the IPK command? When I first build my KMS server before the server crashed; I didn't have to change from MAK to KMS, they would automatically detect the KMS server and activate.
Thanks
-
Hi Everyone,
I had to rebuild our server running KMS, since the rebuild clients are not automatically activating. Pretty basic install, server OS is Windows Server Standard 2008 R2, activated using VL Windows Server 2008 R2 KMS key, enabled firewall for KMS, and checked that the DNS VLMCS record had been created.
So what is happening is that the client does not automaticall change from MAK to KMS, I have to manually run "/ipk FJ82H-XT6CR-J8D7P-XQJJ2-GPDD4" using the microsoft KMS key to change it. Then I have to manually specify the KMS server using the "/skms" command. If I do all this and the count is 25 it will activate.
Client
Microsoft ® Windows Script Host Version 5.8
Copyright © Microsoft Corporation. All rights reserved.Software licensing service version: 6.1.7601.17514
Name: Windows® 7, Professional edition
Description: Windows Operating System - Windows® 7, VOLUME_MAK channel
Activation ID: 9abf5984-9c16-46f2-ad1e-7fe15931a8dd
Application ID: 55c92734-d682-4d71-983e-d6ec3f16059f
Extended PID: 55041-00172-007-174153-03-1033-7601.0000-1542014
Installation ID: 004132561416519403578295156233172955014925186024976125
Processor Certificate URL: http://go.microsoft.com/fwlink/?LinkID=88338
Machine Certificate URL: http://go.microsoft.com/fwlink/?LinkID=88339
Use License URL: http://go.microsoft.com/fwlink/?LinkID=88341
Product Key Certificate URL: http://go.microsoft.com/fwlink/?LinkID=88340
Partial Product Key: VJ6Y3
License Status: Licensed
Remaining Windows rearm count: 2
Trusted time: 17/03/2015 09:45:28NSLOOKUP from Client
C:\Windows\system32>nslookup -type=srv _vlmcs._tcp.xxx.xxx.xx
Server: qehdc1.xxx.xxx.xx
Address: 192.168.111.9_vlmcs._tcp.xxx.xxx.xx SRV service location:
priority = 0
weight = 0
port = 1688
svr hostname = qehwsus1.xxx.xxx.xx
qehwsus1.xxx.xxx.xx internet address = 192.168.111.13Server
Copyright © 2009 Microsoft Corporation. All rights reserved.
C:\Windows\system32>cscript slmgr.vbs /dlv
Microsoft ® Windows Script Host Version 5.8
Copyright © Microsoft Corporation. All rights reserved.Software licensing service version: 6.1.7601.17514
Name: Windows Server®, ServerStandard edition
Description: Windows Operating System - Windows Server®, VOLUME_KMS_R2_B chann
el
Activation ID: c99b641f-c4ea-4e63-bec3-5ed2ccd0f357
Application ID: 55c92734-d682-4d71-983e-d6ec3f16059f
Extended PID: 55041-00168-313-762504-03-2057-7601.0000-0752015
Installation ID: 014925801852060651446993734576005235317582513131186852
Processor Certificate URL: http://go.microsoft.com/fwlink/?LinkID=88342
Machine Certificate URL: http://go.microsoft.com/fwlink/?LinkID=88343
Use License URL: http://go.microsoft.com/fwlink/?LinkID=88345
Product Key Certificate URL: http://go.microsoft.com/fwlink/?LinkID=88344
Partial Product Key: FBG9V
License Status: Licensed
Remaining Windows rearm count: 2
Trusted time: 17/03/2015 09:42:32Key Management Service is enabled on this machine
Current count: 6
Listening on Port: 1688
DNS publishing enabled
KMS priority: NormalKey Management Service cumulative requests received from clients
Total requests received: 29
Failed requests received: 0
Requests with License Status Unlicensed: 0
Requests with License Status Licensed: 3
Requests with License Status Initial grace period: 14
Requests with License Status License expired or Hardware out of tolerance: 0Requests with License Status Non-genuine grace period: 0
Requests with License Status Notification: 12I am now at a loss, any ideas where I have gone wrong?
Thanks
-
Hi Everyone,
I have created a task sequence that works a treat from a PXE boot, re-images PC, installs core apps and apps based on AD group membership. BUT when I advertise that task sequence to an existing client via a collection it loads detects the advertisment and reboots into WINPE, the image is loaded, runs through the windows settings but just reboots just before it starts to install the SCCM client. There are no logs on the client desktop, not evan in ccmsetup.
I know the task sequence works as it works perfectly fine through the PXE boot process, looks like it goes wrong due to theere being an existing client object. I must be doing something stupid??
Are there any logs on the server that I should be looking at.
Many thanks
Richard
-
put this in front of the command %~dp0. it will add the unc location for you
For example if you have to run a test.exe from a cmd line and want to use UNC you can type %~dp0test.exe and it will call it \\QE-SCMAN01.SLHT.SLH.NHS.UK\SMSPKGF$\SLH00045\test.exe taking from your logs
This way it works very well with multiple DP as it will change the current location for you
I will give that a go, if I can't get it working I will just use a batch file if I need to run a command Line task.
Thanks
-
Is it only about copying files from a package to a location on the local machine?
If yes, then create a Run Command Line -step, select your package and use a "xcopy * <destination>" -command.
Thanks for the reply. I have tried that but because the working directory cannot be set to the DP package folder due to unc paths, I have to specify a source path.
The following works for me, but will only work when I run from a batch file within the Command line task.
copy "%0\..\Common\*.*" "C:\Documents and Settings\All Users\Application Data\McKessonSTAR\Common\" /Y
I have tried the line below directly within the command line task but nothing copies.
cmd.exe /c copy "%0\..\Common\*.*" "C:\Documents and Settings\All Users\Application Data\McKessonSTAR\Common\" /Y
<![LOG[updated security on object C:\_SMSTaskSequence.]LOG]!><time="14:34:13.884+-60" date="05-29-2010" component="TSManager" context="" type="1" thread="3452" file="utils.cpp:829"> <![LOG[set a global environment variable _SMSTSNextInstructionPointer=2]LOG]!><time="14:34:13.884+-60" date="05-29-2010" component="TSManager" context="" type="0" thread="3452" file="executionenv.cxx:668"> <![LOG[set a TS execution environment variable _SMSTSNextInstructionPointer=2]LOG]!><time="14:34:13.884+-60" date="05-29-2010" component="TSManager" context="" type="0" thread="3452" file="executionenv.cxx:386"> <![LOG[set a global environment variable _SMSTSInstructionStackString=0 1]LOG]!><time="14:34:13.884+-60" date="05-29-2010" component="TSManager" context="" type="0" thread="3452" file="executionenv.cxx:668"> <![LOG[set a TS execution environment variable _SMSTSInstructionStackString=0 1]LOG]!><time="14:34:13.884+-60" date="05-29-2010" component="TSManager" context="" type="0" thread="3452" file="executionenv.cxx:414"> <![LOG[save the current environment block]LOG]!><time="14:34:13.884+-60" date="05-29-2010" component="TSManager" context="" type="0" thread="3452" file="executionenv.cxx:833"> <![LOG[start executing an instruciton. Instruction name: Run Command Line. Instruction pointer: 2]LOG]!><time="14:34:13.900+-60" date="05-29-2010" component="TSManager" context="" type="1" thread="3452" file="engine.cxx:117"> <![LOG[set a global environment variable _SMSTSCurrentActionName=Run Command Line]LOG]!><time="14:34:13.900+-60" date="05-29-2010" component="TSManager" context="" type="0" thread="3452" file="executionenv.cxx:668"> <![LOG[set a global environment variable _SMSTSNextInstructionPointer=2]LOG]!><time="14:34:13.900+-60" date="05-29-2010" component="TSManager" context="" type="0" thread="3452" file="executionenv.cxx:668"> <![LOG[set a local default variable SMSTSDisableWow64Redirection]LOG]!><time="14:34:13.900+-60" date="05-29-2010" component="TSManager" context="" type="0" thread="3452" file="executionenv.cxx:700"> <![LOG[set a local default variable _SMSTSRunCommandLineAsUser]LOG]!><time="14:34:13.900+-60" date="05-29-2010" component="TSManager" context="" type="0" thread="3452" file="executionenv.cxx:700"> <![LOG[set a global environment variable _SMSTSLogPath=C:\WINDOWS\system32\CCM\Logs\SMSTSLog]LOG]!><time="14:34:13.900+-60" date="05-29-2010" component="TSManager" context="" type="0" thread="3452" file="executionenv.cxx:668"> <![LOG[Expand a string: smsswd.exe /run:SLH00045 cmd.exe /c copy "%0\..\Common\*.*" "C:\Documents and Settings\All Users\Application Data\McKessonSTAR\Common\" /Y]LOG]!><time="14:34:13.900+-60" date="05-29-2010" component="TSManager" context="" type="0" thread="3452" file="executionenv.cxx:782"> <![LOG[Expand a string: ]LOG]!><time="14:34:13.900+-60" date="05-29-2010" component="TSManager" context="" type="0" thread="3452" file="executionenv.cxx:782"> <![LOG[start executing the command line: smsswd.exe /run:SLH00045 cmd.exe /c copy "%0\..\Common\*.*" "C:\Documents and Settings\All Users\Application Data\McKessonSTAR\Common\" /Y]LOG]!><time="14:34:13.900+-60" date="05-29-2010" component="TSManager" context="" type="1" thread="3452" file="instruction.cxx:2928"> <![LOG[!--------------------------------------------------------------------------------------------!]LOG]!><time="14:34:13.900+-60" date="05-29-2010" component="TSManager" context="" type="1" thread="3452" file="instruction.cxx:2957"> <![LOG[Expand a string: WinPEandFullOS]LOG]!><time="14:34:13.900+-60" date="05-29-2010" component="TSManager" context="" type="0" thread="3452" file="executionenv.cxx:782"> <![LOG[Executing command line: smsswd.exe /run:SLH00045 cmd.exe /c copy "%0\..\Common\*.*" "C:\Documents and Settings\All Users\Application Data\McKessonSTAR\Common\" /Y]LOG]!><time="14:34:13.900+-60" date="05-29-2010" component="TSManager" context="" type="1" thread="3452" file="commandline.cpp:805"> <![LOG[=======================[ smsswd.exe ] =======================]LOG]!><time="14:34:13.915+-60" date="05-29-2010" component="InstallSoftware" context="" type="1" thread="2416" file="main.cpp:303"> <![LOG[PackageID = 'SLH00045']LOG]!><time="14:34:13.931+-60" date="05-29-2010" component="InstallSoftware" context="" type="1" thread="2416" file="main.cpp:332"> <![LOG[baseVar = '', ContinueOnError='']LOG]!><time="14:34:13.931+-60" date="05-29-2010" component="InstallSoftware" context="" type="1" thread="2416" file="main.cpp:333"> <![LOG[swdAction = '0001']LOG]!><time="14:34:13.931+-60" date="05-29-2010" component="InstallSoftware" context="" type="1" thread="2416" file="main.cpp:334"> <![LOG[successfully connected to "\\QE-SCMAN01.SLHT.SLH.NHS.UK\SMSPKGF$\SLH00045"]LOG]!><time="14:34:13.946+-60" date="05-29-2010" component="InstallSoftware" context="" type="1" thread="2416" file="tsconnection.cpp:287"> <![LOG[Resolved source to '\\QE-SCMAN01.SLHT.SLH.NHS.UK\SMSPKGF$\SLH00045']LOG]!><time="14:34:13.946+-60" date="05-29-2010" component="InstallSoftware" context="" type="1" thread="2416" file="runcommandline.cpp:449"> <![LOG[Working dir '\\QE-SCMAN01.SLHT.SLH.NHS.UK\SMSPKGF$\SLH00045']LOG]!><time="14:34:13.946+-60" date="05-29-2010" component="InstallSoftware" context="" type="1" thread="2416" file="runcommandline.cpp:542"> <![LOG[Executing command line: Run command line]LOG]!><time="14:34:13.946+-60" date="05-29-2010" component="InstallSoftware" context="" type="1" thread="2416" file="commandline.cpp:805"> <![LOG[Process completed with exit code 1]LOG]!><time="14:34:13.993+-60" date="05-29-2010" component="InstallSoftware" context="" type="1" thread="2416" file="commandline.cpp:1102"> <![LOG[The system cannot find the path specified.]LOG]!><time="14:34:13.993+-60" date="05-29-2010" component="InstallSoftware" context="" type="1" thread="2416" file="runcommandline.cpp:34"> <![LOG['\\QE-SCMAN01.SLHT.SLH.NHS.UK\SMSPKGF$\SLH00045']LOG]!><time="14:34:13.993+-60" date="05-29-2010" component="InstallSoftware" context="" type="3" thread="2416" file="runcommandline.cpp:40"> <![LOG[CMD.EXE was started with the above path as the current directory.]LOG]!><time="14:34:13.993+-60" date="05-29-2010" component="InstallSoftware" context="" type="3" thread="2416" file="runcommandline.cpp:40"> <![LOG[uNC paths are not supported. Defaulting to Windows directory.]LOG]!><time="14:34:13.993+-60" date="05-29-2010" component="InstallSoftware" context="" type="3" thread="2416" file="runcommandline.cpp:40"> <![LOG[Command line returned 1]LOG]!><time="14:34:13.993+-60" date="05-29-2010" component="InstallSoftware" context="" type="1" thread="2416" file="runcommandline.cpp:565"> <![LOG[Process completed with exit code 1]LOG]!><time="14:34:13.993+-60" date="05-29-2010" component="TSManager" context="" type="1" thread="3452" file="commandline.cpp:1102"> <![LOG[!--------------------------------------------------------------------------------------------!]LOG]!><time="14:34:13.993+-60" date="05-29-2010" component="TSManager" context="" type="1" thread="3452" file="instruction.cxx:3010"> <![LOG[Failed to run the action: Run Command Line. Incorrect function. (Error: 00000001; Source: Windows)]LOG]!><time="14:34:13.993+-60" date="05-29-2010" component="TSManager" context="" type="3" thread="3452" file="instruction.cxx:3101">
-
Hi Everyone,
Just installed SCCM, have a management server, and 3 three DP's in different sites which link via AD sites. My problem is related to software installation within a Task Sequence.
Question: When running "Run Command Line" with a linked package via TS; I am not downloading the package file to the client, so how do I copy files from the package to the client if I do not know what the source path is? Reading on the net I could run a VBScript to learn the path that the package is running from:
'Set Current Script Directory strCurrentDir = Left(Wscript.ScriptFullName,(InstrRev(Wscript.ScriptFullName, "\") -1))
I have also played with %~dp0, but no sucess. The same applies if I run a batch file within a program linked to a software install.
But is there any other way, I have no problems if the package just uses a simple MSI file but on some installations I need to copy files.
Sorry I am just going round in circles and getting nowhere.
Thanks
Richard
KMS Not Automaticall Activating
in KMS
Posted
Thank you for your help, I re-checked ZEN and there was a spelling mistake specifying KMS server name, this would explain why it stopped working when we moved from SCCM to ZEN (ENGL).