JFMichaud
MemberAbout JFMichaud
Profile Information
-
OS
none specified
JFMichaud's Achievements
0
Reputation
-
W7 unattend first logon command (Resolved)
JFMichaud replied to JFMichaud's topic in Unattended Windows 7/Server 2008R2
Thanks myselfidem adding the component correct description solved my problem Thanks a lot -
W7 unattend first logon command (Resolved)
JFMichaud replied to JFMichaud's topic in Unattended Windows 7/Server 2008R2
I've just tested...i don't have a error now on the unattend file and i don't get an error when i check with the windows Aik tool... The error now is when the sysprep run in the oobe section it says that a there is a missing component thanks -
W7 unattend first logon command (Resolved)
JFMichaud replied to JFMichaud's topic in Unattended Windows 7/Server 2008R2
I'll try with that line and post if it change somathing... Thanks -
W7 unattend first logon command (Resolved)
JFMichaud replied to JFMichaud's topic in Unattended Windows 7/Server 2008R2
Hi thanks for the respond but the command itself is ok... the problem is with the wcm action:add and it occurs before i run sysprep...i type the command to run sysprerp but a popup message appear and says 'wcm' is an undeclared namespace line 55 wich is <SynchronousCommand wcm:action="add"> thanks -
Hi i'm trying to add a first logon command but each time i try it in different location in the unattend i've end up with a syntax error and sysprep is unable to read the unattend? Here is my unattend witch run with no error except the red section ... <SynchronousCommand wcm:action="add"> on that line? [code<?xml version="1.0" encoding="utf-8"?> <unattend xmlns="urn:schemas-microsoft-com:unattend"> <settings pass="windowsPE"> <component name="Microsoft-Windows-International-Core-WinPE" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS"> <SetupUILanguage> <UILanguage>fr-CA</UILanguage> </SetupUILanguage> <InputLocale>0c0c:00011009</InputLocale> <UserLocale>fr-CA</UserLocale> <UILanguage>fr-CA</UILanguage> <SystemLocale>fr-CA</SystemLocale> </component> <component name="Microsoft-Windows-Setup" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS"> <UserData> <AcceptEula>true</AcceptEula> <FullName></FullName> <Organization>bob</Organization> <ProductKey> <Key></Key> <WillShowUI>Always</WillShowUI> </ProductKey> </UserData> </component> </settings> <settings pass="oobeSystem"> <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS"> <AutoLogon> <Enabled>true</Enabled> <LogonCount>1</LogonCount> <Username>Administrator</Username> <Password> <Value>Password</Value> <PlainText>true</PlainText> </Password> </AutoLogon> <FirstLogonCommands> <SynchronousCommand wcm:action="add"> <CommandLine>c:\batch.bat</CommandLine> <Description>Description_of_command1</Description> <Order>1</Order> </SynchronousCommand> <SynchronousCommand wcm:action="add"> <CommandLine>c:\batch2.bat</CommandLine> <Description>Description_of_command2</Description> <Order>2</Order> </SynchronousCommand> </FirstLogonCommands> <OOBE> <HideEULAPage>true</HideEULAPage> <NetworkLocation>Work</NetworkLocation> <ProtectYourPC>1</ProtectYourPC> <SkipMachineOOBE>true</SkipMachineOOBE> <SkipUserOOBE>true</SkipUserOOBE> </OOBE> <TimeZone>Eastern Standard Time</TimeZone> <UserAccounts> <AdministratorPassword> <Value>Password</Value> <PlainText>true</PlainText> </AdministratorPassword> </UserAccounts> </component> <component name="Microsoft-Windows-International-Core" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS"> <InputLocale>0c0c:00011009</InputLocale> <UserLocale>fr-CA</UserLocale> <UILanguage>fr-CA</UILanguage> <SystemLocale>fr-CA</SystemLocale> </component> </settings> <settings pass="specialize"> <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS"> <ComputerName>%Entrez le nom de l'ordinateur%</ComputerName> <CopyProfile>true</CopyProfile> <RegisteredOrganization>Bottle</RegisteredOrganization> <RegisteredOwner>Beer</RegisteredOwner> <Display> <ColorDepth>32</ColorDepth> <HorizontalResolution>1680</HorizontalResolution> <RefreshRate>60</RefreshRate> <VerticalResolution>1050</VerticalResolution> </Display> </component> <component name="Microsoft-Windows-Deployment" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <RunSynchronous> <RunSynchronousCommand wcm:action="add"> <Order>1</Order> <Path>net user administrator /active:yes</Path> </RunSynchronousCommand> </RunSynchronous> </component> <component name="Microsoft-Windows-IE-InternetExplorer" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <Home_Page>http://www.google.ca</Home_Page> <DisableFirstRunWizard>true</DisableFirstRunWizard> <DisableWelcomePage>true</DisableWelcomePage> </component> <component name="Microsoft-Windows-UnattendedJoin" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <Identification> <Credentials> <Domain>%Inscrire le domaine%</Domain> <Username>%Nom pour rejoindre domaine%</Username> <Password>%Mot de passe%</Password> </Credentials> <JoinDomain>%Please select a domain to join{bob;beer}%</JoinDomain> </Identification> </component> </settings> </unattend>] thanks for the help
-
Find printer registry [solved]
JFMichaud replied to JFMichaud's topic in Programming (C++, Delphi, VB/VBS, CMD/batch, etc.)
Yes i've managed to write it down and now it's working.... @echo off reg query "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Print\Printers" |find /I "TOSHIBA e-STUDIO555Series PS3 Printer" >nul" if errorlevel 1 goto install if errorlevel 0 goto end goto end :install net use P: \\10.10.10.46\Partage\PS555 /persistent:No xcopy /Q /h /Y P:\*.* c:\temp\ c:\temp\PrintDBGSP.vbs c:\temp\SUBINACL /verbose=1 /printer "TOSHIBA e-STUDIO555Series PS3 Printer" /grant="Everyone"=F net use P: /delete /y del c:\temp /F /Q exit :end Thanks to Jaclaz for helping me out, i appreciate the help -
Find printer registry [solved]
JFMichaud replied to JFMichaud's topic in Programming (C++, Delphi, VB/VBS, CMD/batch, etc.)
@echo off reg query "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Print\Printers" |find /I "TOSHIBA e-STUDIO555Series PS3 Photocopieur SProf" >nul &&ECHO "Found" reg query "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Print\Printers" |find /I "TOSHIBA e-STUDIO555Series PS3 Photocopieur SProf" >nul ||ECHO "NOT Found" reg query "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Print\Printers" |find /I "TOSHIBA e-STUDIO555Series PS3 Photocopieur SProf" >nul ECHO %ERRORLEVEL% reg query "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Print\Printers" |find /I "TOSHIBA e-STUDIO555Series PS3 Photocopieur SProf" >nul ECHO %ERRORLEVEL% pause output (the TOSHIBA e-STUDIO555Series PS3 Photocopieur SProf) is not installed "NOT Found" 1 1 If i test with a printer that is installed the output is "Found" 0 0 even if i use a name witch É..accented characters and the printer is installed...the output is "Found" 0 0 -
Find printer registry [solved]
JFMichaud replied to JFMichaud's topic in Programming (C++, Delphi, VB/VBS, CMD/batch, etc.)
Hi thanks for the help...I've changed the registry key...to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Print\Printers and made the change to the batch command line.... Microsoft Windows XP [version 5.1.2600] (C) Copyright 1985-2001 Microsoft Corp. U:\>REG QUERY "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\P rint\Printers" ! REG.EXE VERSION 3.0 HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Print\Printers DefaultSpoolDirectory REG_SZ C:\WINDOWS\System32\spool\PRINTERS HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Print\Printers\H P LaserJet 4050 Series PS LabDS HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Print\Printers\M icrosoft XPS Document Writer HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Print\Printers\T OSHIBA e-STUDIO4520CSeries PS3 Photocopieur Secrétariat HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Print\Printers\T OSHIBA e-STUDIO455Series PS3 3ième étage HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Print\Printers\T OSHIBA e-STUDIO455Series PS3 Local 1er Étage HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Print\Printers\T OSHIBA e-STUDIO455Series PS3 Local RdC HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Print\Printers\T OSHIBA e-STUDIO455Series PS3 Photocopieur RdC HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Print\Printers\T OSHIBA e-STUDIO555Series PS3 Photocopieur 2ieme Étage HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Print\Printers\T OSHIBA e-STUDIO555Series PS3 Photocopieur L2-11 HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Print\Printers\T OSHIBA e-STUDIO555Series PS3 Photocopieur L262 HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Print\Printers\T OSHIBA e-STUDIO855Series PS3 Photocopieur RdC U:\> my code is @echo off reg query "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Print\Printers" |find /I "TOSHIBA e-STUDIO555Series PS3 Printer" >nul ||GOTO :EOF net use P: \\10.10.10.46\partage\PS555 /persistent:No xcopy /Q /h /Y P:\*.* c:\temp\ c:\temp\PrintDBGSP.vbs c:\temp\SUBINACL /verbose=1 /printer "TOSHIBA e-STUDIO555Series PS3 Printer" /grant="Everyone"=F net use P: /delete /y del c:\temp /F /Q In the list there is no TOSHIBA e-STUDIO555Series PS3 Printer so the batch file should execute....but i won't Thanks -
Hi i'm looking for a way to search in the registry a certain printer if it finds that printer, exit the rest of the batch file else continu the batch file. Here is what i've got @echo off reg query "HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Devices" |find /I "TOSHIBA e-STUDIO555Series PS3 Printer" >nul && ( net use P: \\10.10.10.46\partage\PS555 /persistent:No xcopy /Q /h /Y P:\*.* c:\temp\ c:\temp\PrintDBGSP.vbs c:\temp\SUBINACL /verbose=1 /printer "TOSHIBA e-STUDIO555Series PS3 Printer" /grant="Everyone"=F net use P: /delete /y del c:\temp /F /Q ) If it finds the name TOSHIBA e-STUDIO555Series PS3 Printer in the registry hive...exit the batch file...but for some reason it still operate... thanks for the help