VBSCRIPT For a Copy a Folder

For a Copy a Folder Dim wShellstrComputer = “.”Set objWMIService = GetObject _ (“winmgmts:” & strComputer & “rootcimv2:Win32_Process”)‘errReturn = objWMIService.Create _ ‘ (“cmd.exe /c md c:ups”, Null, Null, intProcessID)Set objFSO = CreateObject(“Scripting.FileSystemObject”) objFSO.CopyFolder “file://172.20.128.51/sms_uk/Oct 2008*.*” , “c:pav” , OverwriteExisting Set wShell = CreateObject(“WScript.Shell”)‘wShell.Run “c:upsElection.html”Const OverwriteExisting = TRUE

vb script To Clear SCCM / SMS CCM / Cache Folder

To Clear SCCM / SMS CCM / Cache Folder     ' Script to Clear SMS cache files on error resume next dim oUIResManager dim oCache dim oCacheElement dim oCacheElements set oUIResManager = createobject("UIResource.UIResourceMgr") if oUIResManager is nothing then '      wscript.echo "Couldn't create Resource Manager – quitting"      wscript.quit end if set oCache=oUIResManager.GetCacheInfo() if oCache … Read more

Change Default Power Management settings on Laptop users

Change Default Power Management settings on Laptop users to utilize batarry save   @echo offpowercfg /change "Portable/Laptop" /standby-timeout-ac 30 /standby-timeout-dc 30 /hibernate-timeout-ac 45 /hibernate-timeout-dc 45powercfg /setactive "Portable/Laptop"   ——————-Thanks,https://sccm07.blogspot.com/

Change Default Power Management settings

To Change Default Power Management settings  to your own settings that is to allway On:–   @echo offpowercfg /change "Always On" /monitor-timeout-ac 30 /monitor-timeout-dc 30 /standby-timeout-ac 30 /standby-timeout-dc 0 /hibernate offpowercfg /setactive "Always On" ——————-Thanks,https://sccm07.blogspot.com/

SCCM Query for SCCM Clients Model and Manufactures Name

Need to extract SCCM Clients Model and Manufactures Name?   You have to dig the Computer_System_DATA Table. Here are two shared SQL Querys.   Select DISTINCT Model0 from Computer_System_DATA The above one will show all the Models The below Query will show everything in the Database Select * from Computer_system_data ——————-Thanks,https://sccm07.blogspot.com/

How to Install Configuration Manager Clients Using Software Update Point Based Installation

Step:1 To configure an Active Directory Group Policy object to specify the software update point for client installation and software updates Using an editor such as Windows Group Policy editor, open a new or existing Group Policy object. In the Group Policy editor, navigate to Computer Configuration / Administrative Templates / Windows Components / Windows … Read more

SCCM Client failes with Software Updates: WUAHandler.log Error = 0x80070002

SCCM Client failes with Software Updates:     Issue:- Software updates failes without installing when you check the WUAHandler.log file you will get below erro OnSearchComplete – Failed to end search job. Error = 0x80070002. WUAHandler 1/28/2009 3:00:15 PM 3380 (0x0D34)Scan failed with error = 0x80070002. WUAHandler 1/28/2009 3:00:15 PM 3380 (0x0D34)   Solution: Check will you able to connect wmi … Read more