Overblog
Suivre ce blog Administration + Créer mon blog

Top articles

  • Check windows-bcedit partition

    14 novembre 2011

    'Check_windows_partition with bcdedit 'On error Resume Next Dim BOOTTABLE, oShell, sCmd, iRetVal Dim gethomepath, oOsdV4, ProgressUI, Line Dim objFSO, oCheck, Blocks, GoodBlock, demiblock, OSDRIVE Const ForReading = 1, ForWriting = 2, ForAppending = 8...

  • Check windows partition in windows 7 deployment

    14 novembre 2011

    'Check_windows_partition with bcdedit 'On error Resume Next Dim BOOTTABLE, oWsh, sCmd, iRetVal Dim gethomepath, oOsdV4, ProgressUI, Line, objTextFile Dim objFSO, oCheck, Blocks, GoodBlock, demiblock, OSDRIVE, OSDbdepartition Dim sCmd2,iRetVal2 Const ForReading...

  • VBS: REGEDIT: Get valuename for valuevalue

    27 juillet 2011

    dim strComputer : strComputer = "." dim oReg dim value,valeur '// Registry variables: const HKEY_LOCAL_MACHINE = &H80000002 dim strKeyPath : strKeyPath = "" Set oReg=GetObject("winmgmts:{impersonationLevel=impersonate}!\\" & strComputer &...

  • vbs: Regedit : rename strKeyPath => strKeyPath & ".old"

    22 juillet 2011

    rename = copy/rewrite/delete 'save of key : key.old oReg.createKey HKEY_LOCAL_MACHINE, strKeyPath & ".old" 'rewrite all value into new key oReg.EnumValues HKEY_LOCAL_MACHINE, strKeyPath, arrayValueNames, arrayValueTypes For i=0 To UBound(arrayValueNames)...

  • Get Argument instead of SCCM variable to test script in windows before integrate into SCCM

    22 juillet 2011

    FOR EXAMPLE: the script script.vbs use OSDVAR1 & OSDVAR2: IN SCCM: IN WINDOWS: OSDVAR1 = OSDVALUE1 cscript script.vbs /OSDVAR1:OSDVALUE1 OSDVAR2 = OSDVALUE2 cscript script.vbs /OSDVAR2:OSDVALUE2 Function GetTsVariable (ByVal TSVarName, ByRef TsVarValue)...

  • VBS: Read and Write in xml file

    08 juin 2011

    Public Const XML_FILE = "xmlconfigfile.xml" Public Const NODE_BIT = "/Config/Bitlocker" '-------------------------------------------------------------------- ' Function Name - ReadXML() '--------------------------------------------------------------------...

  • vbs: sccm 2007: Get argument if osd variable does not exist

    08 juin 2011

    Function GetTsVariable (ByVal strTsVariableName, ByRef strTsVariableValue) Dim objTSEnvironment On Error Resume Next Set objTSEnvironment = CreateObject("Microsoft.SMS.TSEnvironment") GetTsVariable = Err.number On Error GoTo 0 If GetTsVariable=0 Then...

  • PS: DSQUERY Commands to query AD objects

    04 mars 2011

    (source: http://social.technet.microsoft.com/wiki/contents/articles/dsquery-commands.aspx) 1. How to find all members for a particular group. >dsget group "" –members 2. How to find all groups for a particular member (including nested...

  • Powershell: running command from windows console

    02 mars 2011

    start: cmd C:\> powershell yourcommand for example: C:\>powershell dsquery user -samid username | dsget user -memberof | dsget group –samid To find all groups of a user is memberof without the DN's (http://msdn.microsoft.com/en-us/library/dd835506%28VS.85%29.aspx)...

  • SCCM 2007: The System Center Configuration Manager 2007 Toolkit v2

    02 mars 2011

    The following list provides specific information about each tool in the toolkit. Client Spy - A tool that helps you troubleshoot issues related to software distribution, inventory, and software metering on Configuration Manager 2007 clients. Delete Group...

  • Error in technet: conflict Management

    16 février 2011

    : here http://technet.microsoft.com/en-us/library/cc749023(WS.10).aspx and here http://technet.microsoft.com/fr-fr/library/dd560751(WS.10).aspx the url for conflicts and priority for usmt xml configuration...

  • Error in technet : Release state store hardlink in sccm

    16 février 2011

    here "http://technet.microsoft.com/en-us/library/ee344267.aspx" it is write that to release the statestore by SCCM hardlink user state migration: use: .\%PROCESSOR_ARCHITECTURE%\usmtutils.exe /rd %OSDStateStorePath% and some have this problem: stay in...

  • SCCM 2007 : USMT 4.0 interested

    16 février 2011

    I was investigated about usmt 4.0 to do a better refresh, and i find some blog interested about: Frank Rojas | System Center Support Escalation Engineer Blog and the investigate of LionelG: on Supinfo lab microsoft forum: http://www.forum-microsoft.org/topic108500.html...

  • SCCM 2007 : MDT: Wizard error code on cancel. If you want to manage the cancel or error on wizard

    16 février 2011

    Add this to your process and add a quit on this condition: If oEnvironment.Item("WizardComplete") <> "Y" then oShell.Popup "The Deployment Wizard was cancelled or did not complete successfully. The deployment will not proceed.", 0, "Wizard Error", 16...

  • SCCM 2007 : VBS: How to detect windows partition and winre (or bitlocker) partition if you are in WinPE into TS

    16 février 2011

    You are in WinPE.... Windows partition is not always C:, because if you do a refresh with a winre partition, winpe will assign C: to this partition but windows is not there. So you have to determine, always, where is C: Yes, it could be "#disk 0 #partition...

  • SCCM 2007 : Damned where (and when) are log files???.... here:

    16 février 2011

    Windows PE before HDD format: x:\windows\temp\smstslog\smsts.log Windows PE after HDD format: x:\smstslog\smsts.log and copied to c:\_SMSTaskSequence\Logs\Smstslog\smsts.log Full version Windows before SCCM agent installed: c:\_SMSTaskSequence\Logs\Smstslog\smsts.log...

  • 2 SCCM Powershell Scripts

    21 janvier 2021

    1. Getting a list of devices from a device collection using powershell: Get-CMDevice -CollectionName | Select Name 2. Connecting to SCCM Using PowerShell: Import-Module "C:\Program Files (x86)\Microsoft Configuration Manager\AdminConsole\bin\ConfigurationManager.psd1"...

  • virtualisation sans droit admin

    19 février 2019

    Pour faire de la virtualisation vous avez besoin de 2 choses: 1. Les droits d'admin sur le poste 2. activer la virtualisation dans le bios Nous allons partir du postula que la virtualisation est active dans le bios. Prérequis: Avoir l'ISO de votre OS...

  • [CMCB] [Powershell] Clean DPs auto

    28 septembre 2021

    Sometimes your DPs needs cleaning, because orphean content stay in and decrease free space on the CMCB partition. A solution is to rebuild the DP. Another solution is to use "ContentLibraryCleanup.exe" that is in the CMCB tools into the CMCB source. But...

  • USMT: script for both scanstate and loadstate in VBScript for windows 7 to windows 10

    01 avril 2018

    (A little thanks for you is a big gift for me) this script in compatible with both cscript and deployment TaskSequence : ################################################################ On Error Resume NextstrComputer = "."const HKEY_LOCAL_MACHINE = &H80000002Const...

  • [PCLI] VMWARE Autodeploy script

    11 mars 2018

    use csv file to get infos # Input parameters :# -------param ($csvfile) $deployinfos = Import-Csv -Path $csvfile$deployinfos = $deployinfos | where-object {($_.name -ne "") -and ($_.template -ne "") -and ($_.oscust -ne "") -and ($_.cluster -ne "")} |...

  • [Windows] [VBScript] Fix error no vbscript engine

    17 mars 2018

    Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOT\.vbs]@="VBSFile" [HKEY_CLASSES_ROOT\.vbs\PersistentHandler]@="{5e941d80-bf96-11cd-b579-08002b30bfeb}" [HKEY_CLASSES_ROOT\VBSFile]@="VBScript Script File""FriendlyTypeName"=hex(2):40,00,25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,\...

  • [windows 10] télécharger le DART x64

    19 mars 2018

    prérequis avoir le MDOP correspondant toutes les infos depuis: https://technet.microsoft.com/en-us/library/jj680675.aspx pour l'intégrer rien de plus simple: 1) Editer la wim de windows 10 (la version que vous avez extraite) 2) remplacer l'image winre.wim...

  • some sccm 2012 scripts n' tools

    15 février 2018

    - SCCM 2012 R2 PowerShell module Import\Export Collections: https://gallery.technet.microsoft.com/scriptcenter/SCCM-2012-R2-PowerShell-308b0f27 - Setting Maintenance Windows in SCCM 2012 R2 With Powershell: Setting Maintenance Windows in SCCM 2012 R2...

  • [sccm] différenciation collections

    17 février 2018

    ranger les pc dans différentes collections détecter le nom osdcomputername selon le numéro de série du pc. puis en début de séquence définir les variables selon les collections auxquelles appartiennent le pc. détecter les collections selon le script:...

<< < 1 2 3 4 5 6 7 8 9 10 > >>