Wednesday, October 30, 2013

7-Zip silent uninstall

This is tested on version 16.04

silent-uninstall.cmd
@echo off
setlocal EnableDelayedExpansion
set u=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall
set n=7-Zip
for /f "tokens=7 delims=\" %%a in ('^
reg query "%u%" /s ^|
find "\Uninstall\"') do (
reg query "%u%\%%a" /v DisplayName > nul 2>&1
if !errorlevel!==0 (
reg query "%u%\%%a" /v DisplayName | find "%n%" > nul 2>&1
if !errorlevel!==0 (
echo %%a | find "{"
if !errorlevel!==0 %systemroot%\system32\msiexec.exe /X %%a /qn
)
)
)
endlocal

Set domain controller as DHCP server, 2008 r2

Active directory domain services and DNS server are already installed

Take a look at IP configuration

Note that domain controller IP address will be clients DNS server address

Add server rule and choose DHCP server

Next

Validate


Click Add to add new scope

Enter scope data

Go Next

Enable DHCPv6 stateless mode for this server

Specify IPv6 DNS Server Settings

DHCP Server Authorization

Summary. Start install

Installation Successful

Now when open DHCP settings

There must be same IP address as domain controller IP address.

Create domain admin and simple user, server 2008 r2

Open Active Directory Users and Computers

Go to User

Select New User

Write first name, last name, username

Choose password

Add this user to Domain Admins group

Do the same steps to another user but this time do not add additional groups
Leave only Domain User group to simple users

Tuesday, October 29, 2013

Create virtual lab, domain controller, DNS server

Extract WS2008R2Fullx64Ent.vhd from
https://drive.google.com/uc?export=download&id=0B-dMykHYTa6KZEFieHVzNnZZNk0

Create new hard disk ID with
"c:\Program Files\Oracle\VirtualBox\VBoxManage.exe" internalcommands sethduuid c:\path\to\WS2008R2Fullx64Ent.vhd
Create new machine and assign it to internal network

Launch the system

Set static IP Address

Add Active Directory Domain Services

Launch DNS installer

Or Open Run and type dcpromo

Select Create a new domain in a new forest

Type a domain name

Forest functional level:

Domain functional level:

Leave the DNS server selected

Yes

Leave unattended

Chooses strong password

Summary

Working.. Check Reboot on completion

After reboot now under IP configuration we can see that DNS server is pointing to local host

List installed JREs via directory structure

This is based on
List all installed JRE versions, command line

This will create x86 and x64 directory
Next it will create java version folder like 1.6.0_07 or 1.7.0_21
Finally in the version directory the computername.log will be created.

create-JRE-version-report.cmd
@echo off
setlocal EnableDelayedExpansion
set path=%path%;%~dp0
set sw=HKLM\SOFTWARE
set jre=JavaSoft\Java Runtime Environment
set l=%~dp0

reg query "%sw%\Wow6432Node" > nul 2>&1
if !errorlevel!==0 goto x64

:x86
echo x86-based PC
echo.
echo x86 JRE:
reg query "%sw%\%jre%" > nul 2>&1
if !errorlevel!==0 (
for /f "tokens=*" %%a in ('reg query "%sw%\%jre%" /s ^|
grep "Java Runtime Environment.*MSI" ^|
sed "s/.*Environment\|MSI\|\\//g;"') do (
if not exist "%l%\x86\%%a" md "%l%\x86\%%a"
echo %%a >> "%l%\x86\%%a\%computername%.log"
echo %%a
)


) else echo no x86 JRE at all
goto end

:x64
echo x64-based PC
echo.
echo x86 JRE:
reg query "%sw%\Wow6432Node\%jre%" > nul 2>&1
if !errorlevel!==0 (
for /f "tokens=*" %%a in ('reg query "%sw%\Wow6432Node\%jre%" /s ^|
grep "Java Runtime Environment.*MSI" ^|
sed "s/.*Environment\|MSI\|\\//g;"') do (
if not exist "%l%\x86\%%a" md "%l%\x86\%%a"
echo %%a >> "%l%\x86\%%a\%computername%.log"
echo %%a
)
) else echo no x86 JRE at all
echo.



echo x64 JRE:
reg query "%sw%\%jre%" > nul 2>&1
if !errorlevel!==0 (
for /f "tokens=*" %%a in ('reg query "%sw%\%jre%" /s ^|
grep "Java Runtime Environment.*MSI" ^|
sed "s/.*Environment\|MSI\|\\//g;"') do (
if not exist "%l%\x64\%%a" md "%l%\x64\%%a"
echo %%a >> "%l%\x64\%%a\%computername%.log"
echo %%a
)
) else echo no x64 JRE at all
:end
echo.

endlocal

Monday, October 28, 2013

Silent installer template for version change

PDFCreator
for /f %%a in ('dir /b "%~dp0PDFCreator*.exe"') do (
"%~dp0%%a" ^
/ForceInstall ^
/VERYSILENT ^
/LANG=English ^
/COMPONENTS="program,ghostscript" ^
/NORESTART
)
Notepad++
for /f %%a in ('dir /b "%~dp0npp*Installer.exe"') do (
"%~dp0%%a" /S
)
Handbrake
for /f %%a in ('dir /b "%~dp0HandBrake-*-x86_64-Win_GUI.exe"') do (
"%~dp0%%a" /S
)
SumatraPDF
for /f %%a in ('dir /b "%~dp0SumatraPDF-*-install.exe"') do (
"%~dp0%%a" /S
)

Sunday, October 27, 2013

On fence

Friday, October 25, 2013

ProjectLibre silent install-uninstall, SCCM

Download ProjectLibre:
https://sourceforge.net/projects/projectlibre/

This is tested and works for ProjectLibre v1.6.2 together with JRE 7u80:

silent-install.cmd
@echo off
setlocal EnableDelayedExpansion
set sw=HKLM\SOFTWARE
set u=Microsoft\Windows\CurrentVersion\Uninstall
set k={8E2A530F-ABE9-45B4-B4EA-B9DF56698376}
if not "%ProgramFiles(x86)%"=="" set x=Wow6432Node\
reg query "%sw%\%x%%u%\%k%" > nul 2>&1
if not !errorlevel!==0 (
for /f %%a in ('dir /b "%~dp0projectlibre*.msi"') do (
echo %~dp0%%a
%systemroot%\system32\msiexec.exe /i "%~dp0%%a" /qb
)
) else echo ProjectLibre already installed
:recheck
time /t
reg query "%sw%\%x%%u%\%k%" > nul 2>&1
if not !errorlevel!==0 goto recheck
endlocal

silent-uninstall.cmd
@echo off
setlocal EnableDelayedExpansion
set sw=HKLM\SOFTWARE
set u=Microsoft\Windows\CurrentVersion\Uninstall
set k={8E2A530F-ABE9-45B4-B4EA-B9DF56698376}
if not "%ProgramFiles(x86)%"=="" set x=Wow6432Node\
reg query "%sw%\%x%%u%\%k%" > nul 2>&1
if !errorlevel!==0 (
%systemroot%\system32\msiexec.exe /x %k% /qn
:recheck
reg query "%sw%\%x%%u%\%k%" > nul 2>&1
if !errorlevel!==0 goto recheck
)
endlocal

P.S.
If the latest version is not 1.6.2 anymore then I need to change key:
{8E2A530F-ABE9-45B4-B4EA-B9DF56698376}
Detection key for SCCM for version 1.6.2
SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{8E2A530F-ABE9-45B4-B4EA-B9DF56698376}
Screenshot for version: 1.5.7:

To install JRE7 I use silent-install-jre7.cmd
@echo off
setlocal EnableDelayedExpansion

rem if JRE7 do not exist at all
reg query "HKLM\SOFTWARE\JavaSoft\Java Runtime Environment\1.7" > nul 2>&1
if not !errorlevel!==0 (

rem install 64-bit JRE on 64-bit system only
if not "%ProgramFiles(x86)%"=="" (
echo 64-bit system detected
for /f "delims=" %%f in ('dir /b "%~dp0jre*x64.exe"') DO (
start /wait "" "%~dp0%%f" /s AUTO_UPDATE=0 WEB_JAVA=1 WEB_JAVA_SECURITY_LEVEL=H WEB_ANALYTICS=0 EULA=1 REBOOT=0 SPONSORS=0
)
) else echo 32-bit system detected

rem install 32-bit JRE on any system
for /f "delims=" %%f in ('dir /b "%~dp0jre*i586.exe"') DO (
start /wait "" "%~dp0%%f" /s AUTO_UPDATE=0 WEB_JAVA=1 WEB_JAVA_SECURITY_LEVEL=H WEB_ANALYTICS=0 EULA=1 REBOOT=0 SPONSORS=0
)

rem uninstall JRE updater
msiexec /x {4A03706F-666A-4037-7777-5F2748764D10} /qn > nul 2>&1

) else echo JRE 7 already exist

endlocal

Wednesday, October 23, 2013

Increase SSD life, install RAMDisk

This will increase SSD life cycle and computer performance a bit.
It will decrease junk stuff in computer if use Internet Explorer a lot.

Instruction:
Clear existing %temp% data

The latest version of ramdisk no longer are free for home use but I can still use version 3.4.8:
ramdisk_setup_v3.4.8.exe
8f1ad0e78e4b7de89d330c8b981f8171
8db566ff14a94131f7905fc8522eba492781d377

Set drive letter, size, filesystem and create temp and tif (Temporary Internet Files) directories
In this example i set drive letter to R which stands for RRRRRRamdisk! :)

Set system %temp% and %tmp% variable to new directory. r:\temp for example

Move Temporary Internet Files directory from current user to new destination r:\tif
This will not be applied to all users. This will be applied just in active user.

Monday, October 21, 2013

Mount TrueCrypt partition via BackTrack Linux

Download backtrack linux.
BT5R3-GNOME-32.iso
aafff8ff5b71fdb6fccdded49a6541a0
abb7821f5e8f0b4ca0ae99c7e1a7e2c027fb9901

Use Universal-USB-Installer-1.9.5.2.exe

Now here is how to do it:
Boot the media

Select BackTrack Debug mode

Write startx and press enter

Go
Applications > BackTrack > Forensics > Digital Anti Forensics > install truecrypt

Click install TrueCrypt

Accept terms by pressing I accept and agree to be bound by the license terms

Press OK to start installation

Press Enter to quit the console window

Go again
Application > TrueCrypt

Select one free slot

Select Device

Choose encrypted partition. Do not choose entire drive

Go to Mount

Open Options

Choose Mount volume as read-only and
Mount partition using system encryption (preboot authentication)

Write the truecryptPassword

Click Exit

Go to desktop and now you can browse the truecrypt partition :)

7-Zip silent native install

Download latest msi installers:
http://7-zip.org/download.html

This is testes on:
http://7-zip.org/a/7z1604-x64.msi
caf2855194340b982a9ef697aca17fa9
bae316e5148d3b42efa1d3f272afc10d3ffa6f4b
http://7-zip.org/a/7z1604.msi
8cfd1629f23dfdad978349c93241ef6d
e1ee28c92d74c7961da7e4d4e4420e242c2951b2

But is should work on any next version :)

silent-install.cmd
@echo off
set n=7-Zip
setlocal EnableDelayedExpansion
reg query "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall" /s | find "%n%"
if not !errorlevel!==0 (
echo %n%

:x64
if not "%ProgramFiles(x86)%"=="" (
for /f "delims=" %%f in ('dir /b "%~dp07z*x64.msi"') do (
%systemroot%\system32\msiexec.exe /i "%~dp0%%f" /qn
)
)

:x86
if "%ProgramFiles(x86)%"=="" (
for /f "delims=" %%f in ('dir /b "%~dp07z*.msi" ^| find /v "x64"') do (
%systemroot%\system32\msiexec.exe /i "%~dp0%%f" /qn
)
)

) else echo %n% already exists!
endlocal

Sunday, October 20, 2013

Thursday, October 17, 2013

WSUS server not configured. Please refer to WCM.log, 2147500037

WSUS Synchronization failed.
Message: WSUS server not configured. Please refer to WCM.log for configuration error details..
Source: CWSyncMgr::DoSync.
The operating system reported error 2147500037: Unspecified error

Make sure your WSUS server have installed update to support Windows 8 and Server 2012
http://support.microsoft.com/kb/2734608
Here is direct link for server 2008 R2:
http://download.microsoft.com/download/0/2/2/0221B908-0643-4CCC-B580-2DF9C4C10749/WSUS-KB2734608-x64.exe

Check WSUS source server and proxy settings.


Re-check proxy settings

Delete Windows Update policy setting and redirect to original Windows Update server. This will let you install latest server updates to your WSUS/SCCM server.
reg delete "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate" /f
net stop wuauserv
rd %systemroot%\SoftwareDistribution /Q /S
SC sdshow wuauserv
SC sdset wuauserv D:(A;;CCLCSWRPWPDTLOCRRC;;;SY)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;BA)(A;;CCLCSWLOCRRC;;;AU)(A;;CCLCSWRPWPDTLOCRRC;;;PU)
wuauclt.exe /detectnow
Launch again synchronization


Follow again SMS_WSUS_SYNC_MANAGER status

Wednesday, October 16, 2013

Windows Server 2008 R2 autounattend.xml example

This is works out of the box with copy and paste with 180 days server 2008 edition
7601.17514.101119-1850_x64fre_server_eval_en-us-GRMSXEVAL_EN_DVD.iso
4263be2cf3c59177c45085c0a7bc6ca5
beed231a34e90e1dd9a04b3afabec31d62ce3889

autounattend.xml for VirtualBox
<?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="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
            <InputLocale>en-US</InputLocale>
            <SystemLocale>en-US</SystemLocale>
            <UILanguage>en-US</UILanguage>
            <UserLocale>en-US</UserLocale>
        </component>
        <component name="Microsoft-Windows-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
            <ImageInstall>
                <OSImage>
                    <InstallFrom>
                        <MetaData wcm:action="add">
                            <Key>/IMAGE/NAME</Key>
                            <Value>Windows Server 2008 R2 SERVERDATACENTER</Value>
                        </MetaData>
                    </InstallFrom>
                    <InstallTo>
                        <DiskID>0</DiskID>
                        <PartitionID>1</PartitionID>
                    </InstallTo>
                    <WillShowUI>OnError</WillShowUI>
                </OSImage>
            </ImageInstall>
            <UserData>
                <AcceptEula>true</AcceptEula>
            </UserData>
            <DiskConfiguration>
                <Disk wcm:action="modify">
                    <CreatePartitions>
                        <CreatePartition wcm:action="modify">
                            <Order>1</Order>
                            <Type>Primary</Type>
                            <Size>20480</Size>
                        </CreatePartition>
                    </CreatePartitions>
                    <ModifyPartitions>
                        <ModifyPartition wcm:action="modify">
                            <Active>true</Active>
                            <Format>NTFS</Format>
                            <Order>1</Order>
                            <PartitionID>1</PartitionID>
                            <Extend>false</Extend>
                        </ModifyPartition>
                    </ModifyPartitions>
                    <DiskID>0</DiskID>
                    <WillWipeDisk>true</WillWipeDisk>
                </Disk>
                <WillShowUI>OnError</WillShowUI>
            </DiskConfiguration>
        </component>
    </settings>
    <settings pass="oobeSystem">
        <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
            <UserAccounts>
                <LocalAccounts>
                    <LocalAccount wcm:action="add">
                        <Password>
                            <Value></Value>
                            <PlainText>true</PlainText>
                        </Password>
                        <Name>administrator</Name>
                        <Group>Administrators</Group>
                    </LocalAccount>
                </LocalAccounts>
            </UserAccounts>
            <AutoLogon>
                <Enabled>true</Enabled>
                <Username>Administrator</Username>
                <LogonCount>3</LogonCount>
            </AutoLogon>
            <FirstLogonCommands>
                <SynchronousCommand wcm:action="add">
                    <CommandLine>REG ADD &quot;HKLM\System\CurrentControlSet\Services\Netlogon\Parameters&quot; /v DisablePasswordChange /t REG_DWORD /d 1 /f</CommandLine>
                    <Description>Disable computer password change</Description>
                    <Order>1</Order>
                    <RequiresUserInput>true</RequiresUserInput>
                </SynchronousCommand>
            </FirstLogonCommands>
        </component>
    </settings>
    <settings pass="specialize">
        <component name="Microsoft-Windows-OutOfBoxExperience" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
            <DoNotOpenInitialConfigurationTasksAtLogon>true</DoNotOpenInitialConfigurationTasksAtLogon>
        </component>
        <component name="Microsoft-Windows-ServerManager-SvrMgrNc" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
            <DoNotOpenServerManagerAtLogon>true</DoNotOpenServerManagerAtLogon>
        </component>
        <component name="Microsoft-Windows-IE-ESC" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
            <IEHardenAdmin>false</IEHardenAdmin>
            <IEHardenUser>false</IEHardenUser>
        </component>
        <component name="Microsoft-Windows-IE-InternetExplorer" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
            <SearchScopes>
                <Scope wcm:action="add">
                    <ScopeDefault>true</ScopeDefault>
                    <ScopeDisplayName>Google</ScopeDisplayName>
                    <ScopeKey>Google</ScopeKey>
                    <ScopeUrl>http://www.google.com/search?q={searchTerms}</ScopeUrl>
                </Scope>
            </SearchScopes>
            <DisableAccelerators>true</DisableAccelerators>
            <DisableFirstRunWizard>true</DisableFirstRunWizard>
            <Home_Page>about:blank</Home_Page>
        </component>
        <component name="Microsoft-Windows-IE-InternetExplorer" processorArchitecture="wow64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
            <SearchScopes>
                <Scope wcm:action="add">
                    <ScopeDefault>true</ScopeDefault>
                    <ScopeDisplayName>Google</ScopeDisplayName>
                    <ScopeKey>Google</ScopeKey>
                    <ScopeUrl>http://www.google.com/search?q={searchTerms}</ScopeUrl>
                </Scope>
            </SearchScopes>
            <DisableAccelerators>true</DisableAccelerators>
            <DisableFirstRunWizard>true</DisableFirstRunWizard>
            <Home_Page>about:blank</Home_Page>
        </component>
        <component name="Microsoft-Windows-TerminalServices-LocalSessionManager" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
            <fDenyTSConnections>false</fDenyTSConnections>
        </component>
        <component name="Networking-MPSSVC-Svc" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
            <FirewallGroups>
                <FirewallGroup wcm:action="add" wcm:keyValue="RemoteDesktop">
                    <Group>Remote Desktop</Group>
                    <Profile>all</Profile>
                    <Active>true</Active>
                </FirewallGroup>
            </FirewallGroups>
        </component>
    </settings>
    <settings pass="offlineServicing">
        <component name="Microsoft-Windows-LUA-Settings" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
            <EnableLUA>false</EnableLUA>
        </component>
    </settings>
</unattend>
another autounattend.xml which have to manually set partition table
<?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="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
            <InputLocale>en-US</InputLocale>
            <SystemLocale>en-US</SystemLocale>
            <UILanguage>en-US</UILanguage>
            <UserLocale>en-US</UserLocale>
        </component>
        <component name="Microsoft-Windows-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
            <ImageInstall>
                <OSImage>
                    <InstallFrom>
                        <MetaData wcm:action="add">
                            <Key>/IMAGE/NAME</Key>
                            <Value>Windows Server 2008 R2 SERVERDATACENTER</Value>
                        </MetaData>
                    </InstallFrom>

                    <WillShowUI>OnError</WillShowUI>
                </OSImage>
            </ImageInstall>
            <UserData>
                <AcceptEula>true</AcceptEula>
            </UserData>

        </component>
    </settings>
    <settings pass="oobeSystem">
        <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
            <UserAccounts>
                <LocalAccounts>
                    <LocalAccount wcm:action="add">
                        <Password>
                            <Value></Value>
                            <PlainText>true</PlainText>
                        </Password>
                        <Name>administrator</Name>
                        <Group>Administrators</Group>
                    </LocalAccount>
                </LocalAccounts>
            </UserAccounts>
            <AutoLogon>
                <Enabled>true</Enabled>
                <Username>Administrator</Username>
                <LogonCount>3</LogonCount>
            </AutoLogon>
            <FirstLogonCommands>
                <SynchronousCommand wcm:action="add">
                    <CommandLine>REG ADD &quot;HKLM\System\CurrentControlSet\Services\Netlogon\Parameters&quot; /v DisablePasswordChange /t REG_DWORD /d 1 /f</CommandLine>
                    <Description>Disable computer password change</Description>
                    <Order>1</Order>
                    <RequiresUserInput>true</RequiresUserInput>
                </SynchronousCommand>
            </FirstLogonCommands>
        </component>
    </settings>
    <settings pass="specialize">
        <component name="Microsoft-Windows-OutOfBoxExperience" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
            <DoNotOpenInitialConfigurationTasksAtLogon>true</DoNotOpenInitialConfigurationTasksAtLogon>
        </component>
        <component name="Microsoft-Windows-ServerManager-SvrMgrNc" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
            <DoNotOpenServerManagerAtLogon>true</DoNotOpenServerManagerAtLogon>
        </component>
        <component name="Microsoft-Windows-IE-ESC" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
            <IEHardenAdmin>false</IEHardenAdmin>
            <IEHardenUser>false</IEHardenUser>
        </component>
        <component name="Microsoft-Windows-IE-InternetExplorer" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
            <SearchScopes>
                <Scope wcm:action="add">
                    <ScopeDefault>true</ScopeDefault>
                    <ScopeDisplayName>Google</ScopeDisplayName>
                    <ScopeKey>Google</ScopeKey>
                    <ScopeUrl>http://www.google.com/search?q={searchTerms}</ScopeUrl>
                </Scope>
            </SearchScopes>
            <DisableAccelerators>true</DisableAccelerators>
            <DisableFirstRunWizard>true</DisableFirstRunWizard>
            <Home_Page>about:blank</Home_Page>
        </component>
        <component name="Microsoft-Windows-IE-InternetExplorer" processorArchitecture="wow64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
            <SearchScopes>
                <Scope wcm:action="add">
                    <ScopeDefault>true</ScopeDefault>
                    <ScopeDisplayName>Google</ScopeDisplayName>
                    <ScopeKey>Google</ScopeKey>
                    <ScopeUrl>http://www.google.com/search?q={searchTerms}</ScopeUrl>
                </Scope>
            </SearchScopes>
            <DisableAccelerators>true</DisableAccelerators>
            <DisableFirstRunWizard>true</DisableFirstRunWizard>
            <Home_Page>about:blank</Home_Page>
        </component>
        <component name="Microsoft-Windows-TerminalServices-LocalSessionManager" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
            <fDenyTSConnections>false</fDenyTSConnections>
        </component>
        <component name="Networking-MPSSVC-Svc" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
            <FirewallGroups>
                <FirewallGroup wcm:action="add" wcm:keyValue="RemoteDesktop">
                    <Group>Remote Desktop</Group>
                    <Profile>all</Profile>
                    <Active>true</Active>
                </FirewallGroup>
            </FirewallGroups>
        </component>
    </settings>
    <settings pass="offlineServicing">
        <component name="Microsoft-Windows-LUA-Settings" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
            <EnableLUA>false</EnableLUA>
        </component>
    </settings>
</unattend>
Other versions available on this image:

Apple Software Update silent uninstall, {789A5B64-9DD9-4BA5-915A-F0FC0A1B7BFE}

This will uninstall Apple Software Update
@echo off
echo This will automatically uninstall:
echo Apple Software Update
setlocal EnableDelayedExpansion
set sw=HKLM\SOFTWARE
set u=Microsoft\Windows\CurrentVersion\Uninstall
set k={789A5B64-9DD9-4BA5-915A-F0FC0A1B7BFE}
if not "%ProgramFiles(x86)%"=="" set x=Wow6432Node\
reg query "%sw%\%x%%u%\%k%" > nul 2>&1
if !errorlevel!==0 (
%systemroot%\System32\msiexec.exe /X%k% /qn
)
endlocal
Based on:
Reg query 32-bit application

Apple Application Support, silent uninstall, command line, {5D09C772-ECB3-442B-9CC6-B4341C78FDC2}

This will uninstall Apple Application Support
@echo off
echo This will automatically uninstall:
echo Apple Application Support
setlocal EnableDelayedExpansion
set sw=HKLM\SOFTWARE
set u=Microsoft\Windows\CurrentVersion\Uninstall
set k={5D09C772-ECB3-442B-9CC6-B4341C78FDC2}
if not "%ProgramFiles(x86)%"=="" set x=Wow6432Node\
reg query "%sw%\%x%%u%\%k%" > nul 2>&1
if !errorlevel!==0 (
%systemroot%\System32\msiexec.exe /X%k% /qn
)
endlocal
Based on:
Reg query 32-bit application

Microsoft Project Viewer, Open mpp, mpx

ProjectLibre supports to work with Microsoft Project mpp and mpx files

Here is the supported formats out of the box:

Home:
http://www.projectlibre.org/

Download source for Windows, Linux, Mac:
http://sourceforge.net/projects/projectlibre/files/ProjectLibre/

To successfully run ProjectLibre application you need to install x86 version of Java Runtime Environment (JRE)
https://www.java.com/en/download/manual.jsp

Screenshot:

Microsoft Project examples:
http://www.b4ubuild.com/resources/schedule/b4ubuild_sample_07.mpp
http://www.b4ubuild.com/resources/schedule/b4ubuild_sample_2k-03.mpp
http://www.b4ubuild.com/resources/schedule/b4ubuild_sample.MPX

Tuesday, October 15, 2013

The Request failed with HTTP status 503: Service Unavailable, SCCM 2012 SP1


Check HKLM\SOFTWARE\Wow6432Node\Microsoft\ConfigMgr10\AdminUI\Reporting key
reg query "HKLM\SOFTWARE\Wow6432Node\Microsoft\ConfigMgr10\AdminUI\Reporting"

It should report ReportBuilder_3_0_0_0.application

If not then run
reg add "HKLM\SOFTWARE\Wow6432Node\Microsoft\ConfigMgr10\AdminUI\Reporting" /v ReportBuilderApplicationManifestName /t REG_SZ /d ReportBuilder_3_0_0_0.application /f
Open C:\Program Files (x86)\Microsoft Configuration Manager\AdminConsole\bin\Microsoft.ConfigurationManagement.exe.config.
This file only exists if SP1 is installed.

Make sure to have at the end before </configuration>
  <ReportBuilderMapping>
    <add key="11.0" value="ReportBuilder_3_0_0_0.application" />
    <add key="10.50" value="ReportBuilder_3_0_0_0.application" />
    <add key="10.0" value="ReportBuilder_3_0_0_0.application" />
    <add key="DEFAULT" value="ReportBuilder_3_0_0_0.application" />
  </ReportBuilderMapping>
Screenshot from notepad++.
Microsoft.ConfigurationManagement.exe.config should contain like 130 lines.

Now you closes the sccm console application then open and test reports again.

If not any success then the final step is to remove user profile.
The profile which i always run reports successfully.

Once i have logon with fresh user i was able to view reports and create new ones.

Source:
http://blogs.technet.com/b/smartinez/archive/2012/07/03/system-center-2012-configuration-manager-create-report-don-t-work-what-do-i-do-now.aspx