Collection : For software distribution status if system pending for reboot
For software distribution status if system pending for reboot select SMS_R_SYSTEM.ResourceID, SMS_R_SYSTEM.ResourceType, SMS_R_SYSTEM.Name, SMS_R_SYSTEM.SMSUniqueIdentifier, SMS_R_SYSTEM.ResourceDomainORWorkgroup, SMS_R_SYSTEM.Client from sms_r_system AS sms_r_system join SMS_StatMsg as st on sms_r_system.Name = st.MachineName join SMS_AdvertisementStatusInformation sti on st.MessageID = sti.MessageID where sti.messagestate = 102 102 is the reboot pending code you can get the complete list … Read more
Collections based on software updates deployment status in Configuration Manager
ConfigMgr sccm patching status based collections LastEnforcementMessageIDLastEnforcementMessageName 1 Enforcement started 3 Waiting for another installation to complete 6 General failure 8 Installing update 9 Pending system restart 10 Successfully installed update 11 Failed to install update 12 Downloading update 13 Downloaded update So in this example we would like to use the status of reboot … Read more
SMS 2003 Patching : Pending for reboot collection
A collection listing all servers/clients that were pending reboot (see query statement): select SMS_R_System.ResourceID,SMS_R_System.ResourceType,SMS_R_System.Name, SMS_R_System.SMSUniqueIdentifier,SMS_R_System.ResourceDomainORWorkgroup,SMS_R_System.Client from SMS_R_System inner join SMS_G_System_PatchStatus on SMS_G_System_PatchStatus.ResourceID = SMS_R_System.ResourceId where SMS_G_System_PatchStatus.LastStateName = “Reboot Pending”
One other best site to search for rapid links
One other best site to search for rapid links https://www.frameworkmx.com/
TO GET THE USER STATUS : Guest account status
Set Fso = CreateObject(“Scripting.FileSystemObject”) Set InputFile = fso.OpenTextFile(“MachineList.Txt”) Do While Not (InputFile.atEndOfStream) strComputer = InputFile.ReadLine strUserName = “Guest” On Error Resume Next Set objUser = GetObject(“WinNT://” & strComputer & “/” & strUserName) If objUser.AccountDisabled = True Then Wscript.Echo (strUserName) & ” Is Disabled On ” & UCase(strComputer) Else MsgBox UCase(strUserName) & ” Is Enabled … Read more
Sysprep parameters
Sysprep parameters You can use the following optional parameters with the Sysprep command in Windows XP: -activated – Do not reset the grace period for Windows product activation. Use this parameter only if you have activated the Windows installation in the factory.Important The product key that you use to activate the Windows installation must match … Read more
Join the computer silently to the Domain
Join the computer silently to the Domain Or, in the command you want to use: netdom join /d:mydomain.com Computertobeaddednamehere /ud:mydomain.comadministrator /pd:oil@22
Batch file for loop in other way
echo ***** Are you sure you want to add these accounts? *******echo *** If not, press CTRL-C to terminate this batch file ***pauseFOR %%X IN (NT1 NT2 NT3 NT4 NT5) DO NET COMPUTER %%X /ADDFOR %%X IN (NT6 NT7 NT8 NT9 NT10) DO NET COMPUTER %%X /ADDclsecho ******* Machine Accounts Added ********pause