The Windows Automated Installation Kit (Windows AIK or WAIK) is a tool designed to help corporate IT professionals customize and deploy the Windows Vista and Windows Server 2008 family of operation systems.
Windows Automated Installation Kit (WAIK) can be used for :
- unattended Windows installations
- capturing Windows images using ImageX
- creating WinPE images
Windows Automated Installation Kit includes the following tools :
- Windows System Image Manager (Windows SIM)
- ImageX- Deployment Image Servicing and Management (DISM)
- Windows Preinstallation Environment (Windows PE)
- User State Migration Tool (USMT)
Tuesday, June 28, 2011
Monday, June 27, 2011
List installed 32/64 bits apps using Powershell
List installed apps without using Powershell
Putting WMIC to Work
As often, the local WMI database contains all the information we need. The simplest way of extracting the required data is via the WMI command line, wmic:
wmic product
Yes, that is all. It runs for a while and then spits out very detailed information on what is installed on the local system. If you need the information in a file for later processing, use the following variation of above command to have wmic create a CSV file:
wmic product get /format:csv > Software_%Computername%.csv
Reference: http://www.sepago.de/helge/2010/01/14/how-to-list-all-installed-applications-from-the-command-line/
As often, the local WMI database contains all the information we need. The simplest way of extracting the required data is via the WMI command line, wmic:
wmic product
Yes, that is all. It runs for a while and then spits out very detailed information on what is installed on the local system. If you need the information in a file for later processing, use the following variation of above command to have wmic create a CSV file:
wmic product get /format:csv > Software_%Computername%.csv
Reference: http://www.sepago.de/helge/2010/01/14/how-to-list-all-installed-applications-from-the-command-line/
How to run a PowerShell script ?
powershell.exe -File C:\my_path\yada_yada\run_import_script.ps1
-or-
powershell.exe -noexit "& 'c:\Data\ScheduledScripts\ShutdownVM.ps1'"
Note: use absolute path and no relative path.
If you are running from inside PowerShell environment then
navigate to the directory where the script lives
PS> cd C:\my_path\yada_yada\ (enter)Execute the script:
PS> .\run_import_script.ps1 (enter)
-or-
powershell.exe -noexit "& 'c:\Data\ScheduledScripts\ShutdownVM.ps1'"
Note: use absolute path and no relative path.
If you are running from inside PowerShell environment then
navigate to the directory where the script lives
PS> cd C:\my_path\yada_yada\ (enter)Execute the script:
PS> .\run_import_script.ps1 (enter)
Powershell - List Programs installed on Remote Computer
Now we COULD just use a GET-WMIOBJECT Win32_Product to query installed applications but that’s only good for applications registered via the MSI (Windows Installer)
Reference: http://www.energizedtech.com/2010/09/powershell-list-programs-insta.html
Function to uninstall a program:
Reference: http://www.energizedtech.com/2010/09/powershell-list-programs-insta.html
Function to uninstall a program:
function uninstallapp ($x) {
$app = Get-WmiObject -Class Win32_Product | Where-Object {
$_.Name -match "$x"
}
$app.Uninstall()
}
Sunday, June 26, 2011
Scala notes
In Scala a function value is an object. Function types are
classes that can be inherited by subclasses. This might seem nothing more
than an academic nicety, but it has deep consequences for scalability. In fact
the actor concept could not have been implemented without
this unification of functions and objects.
Scala is more advanced than most other languages when it comes to composing
objects. An example is Scala’s traits. Traits are like interfaces in Java,
but they can also have method implementations and even fields. Objects are
constructed by mixin composition, which takes the members of a class and
adds the members of a number of traits to them. In this way, different aspects
of classes can be encapsulated in different traits. This looks a bit like
multiple inheritance, but differs when it comes to the details. Unlike a class,
a trait can add some new functionality to an unspecified superclass. This
makes traits more “pluggable” than classes. In particular, it avoids the classical
“diamond inheritance” problems of multiple inheritance, which arise
when the same class is inherited via several different paths.
Functional programming is guided by two main ideas. The first idea is
that functions are first-class values. In a functional language, a function is a
value of the same status as, say, an integer or a string.
The second main idea of functional programming is that the operations
of a program should map input values to output values rather than change
data in place. Another way of expressing this is that strings are immutable in Java whereas they are mutable in Ruby. So looking at just strings, Java is a functional
language, whereas Ruby is not. Immutable data structures are one
of the cornerstones of functional programming.
classes that can be inherited by subclasses. This might seem nothing more
than an academic nicety, but it has deep consequences for scalability. In fact
the actor concept could not have been implemented without
this unification of functions and objects.
Scala is more advanced than most other languages when it comes to composing
objects. An example is Scala’s traits. Traits are like interfaces in Java,
but they can also have method implementations and even fields. Objects are
constructed by mixin composition, which takes the members of a class and
adds the members of a number of traits to them. In this way, different aspects
of classes can be encapsulated in different traits. This looks a bit like
multiple inheritance, but differs when it comes to the details. Unlike a class,
a trait can add some new functionality to an unspecified superclass. This
makes traits more “pluggable” than classes. In particular, it avoids the classical
“diamond inheritance” problems of multiple inheritance, which arise
when the same class is inherited via several different paths.
Functional programming is guided by two main ideas. The first idea is
that functions are first-class values. In a functional language, a function is a
value of the same status as, say, an integer or a string.
The second main idea of functional programming is that the operations
of a program should map input values to output values rather than change
data in place. Another way of expressing this is that strings are immutable in Java whereas they are mutable in Ruby. So looking at just strings, Java is a functional
language, whereas Ruby is not. Immutable data structures are one
of the cornerstones of functional programming.
Friday, June 24, 2011
Domain Controller
Only domain controllers can host Active Directory. All servers that are not domain controllers must access the directory in the same manner as the workstations. They send requests for information to a domain controller, which processes the request and returns the information back to them.
Domain controllers store and maintain portions of the directory. They also have services that allow them to directly store and retrieve information from the directory. These services are referred to as the Active Directory. When you install Active Directory on a Windows 2000based server, it becomes a Windows 2000based domain controller.Reference: http://technet.microsoft.com/en-us/library/bb727049.aspx
Domain controllers store and maintain portions of the directory. They also have services that allow them to directly store and retrieve information from the directory. These services are referred to as the Active Directory. When you install Active Directory on a Windows 2000based server, it becomes a Windows 2000based domain controller.Reference: http://technet.microsoft.com/en-us/library/bb727049.aspx
Subscribe to:
Posts (Atom)
