"Run as different user" option is different than "Run as administrator", because you don’t have to elevate. You can run as an admin user, but be running as that user with non-elevated credentials. Also, it supports net only credentials, which Run as Administrator doesn’t.
The Run as different user context menu option in Windows 7 is implemented as an extended menu, which is only displayed if you press and hold the SHIFT key when right-clicking on an executable file or its shortcut.
Showing posts with label Windows 7. Show all posts
Showing posts with label Windows 7. Show all posts
20 December 2011
17 March 2011
Bitlocker and BIOS updates
You are using Bitlocker on your Win7 machine and want to update the BIOS....
SUSPEND BitLocker BEFORE updating BIOS...
But.. you forgot to suspend Bitlocker before the BIOS update
and now you are stucked with BitLocker requiring key at every startup...
Well... go to BitLocker and suspend it...
and then resume it
- and the problem is fixed :-)
SUSPEND BitLocker BEFORE updating BIOS...
But.. you forgot to suspend Bitlocker before the BIOS update
and now you are stucked with BitLocker requiring key at every startup...
Well... go to BitLocker and suspend it...
and then resume it
- and the problem is fixed :-)
15 February 2011
Installing Remote Administration Tools for Windows 7
Remote Administration Tools are installed as a Windows Update package.
You go to Microsoft an pick up the right version:
http://www.microsoft.com/downloads/en/details.aspx?FamilyID=7d2f6ad7-656b-4313-a005-4e344e43997d
For a 64-bit Win7, you choose....... AMD64fre_GRMRSATX_MSU.msu (great naming..:!!)
When you have installed the package, you have to enable the tools, using Windows Features..
Go to Control Panel > Programs
In Program and Features select Turn Windows Features On or Off
In Windows Features, expand Remote Server Administration Tools and select the tools you want
You go to Microsoft an pick up the right version:
http://www.microsoft.com/downloads/en/details.aspx?FamilyID=7d2f6ad7-656b-4313-a005-4e344e43997d
For a 64-bit Win7, you choose....... AMD64fre_GRMRSATX_MSU.msu (great naming..:!!)
When you have installed the package, you have to enable the tools, using Windows Features..
Go to Control Panel > Programs
In Program and Features select Turn Windows Features On or Off
In Windows Features, expand Remote Server Administration Tools and select the tools you want
02 February 2011
Creating bootable Win7 and Win2008 ISO
When you have modified boot.wim or install.wim (ie. injected drivers or patches using DISM)
you may want to create new bootable iso files.
I will show you, how to use oscdimg from Windows Automated Installation Kit (WAIK).
Copy the DVD content and your modified files to a folder (here C:\DVD)
Start the "Deployment Tools Command Prompt", and navigate to c:\
The fire this command:
oscdimg -bDVD\boot\etfsboot.com -u2 -h -m -lDVD_LABEL C:\DVD filename.ISO
remark:
-lDVD_LABEL > this is a lowercase L (not 1) and the label you want to give the DVD
filename.ISO > filename is the name of the ISO file
you may want to create new bootable iso files.
I will show you, how to use oscdimg from Windows Automated Installation Kit (WAIK).
Copy the DVD content and your modified files to a folder (here C:\DVD)
Start the "Deployment Tools Command Prompt", and navigate to c:\
The fire this command:
oscdimg -bDVD\boot\etfsboot.com -u2 -h -m -lDVD_LABEL C:\DVD filename.ISO
remark:
-lDVD_LABEL > this is a lowercase L (not 1) and the label you want to give the DVD
filename.ISO > filename is the name of the ISO file
20 January 2011
Changing the Windows 7 login screen
In Windows 7 it is possible -fairly easy - to change the login screen.
1. Start Regedit
2. Navigate to HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Authentication\LogonUI\Background
3. Double click on the entry OEMBackground, and change the value from 0 to 1
(If the key does not exist, add a new DWORD value with the name OEMBackground)
4. Open Windows Explorer and navigate to the following path: %windir%\system32\oobe
5. Create a new folder named info, and open it.
6. Create a new folder within info and name it backgrounds
7. Rename your desired wallpaper as backgroundDefault.jpg and place it inside the folder backgrounds (images must be less than 245KB in size)
1. Start Regedit
2. Navigate to HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Authentication\LogonUI\Background
3. Double click on the entry OEMBackground, and change the value from 0 to 1
(If the key does not exist, add a new DWORD value with the name OEMBackground)
4. Open Windows Explorer and navigate to the following path: %windir%\system32\oobe
5. Create a new folder named info, and open it.
6. Create a new folder within info and name it backgrounds
7. Rename your desired wallpaper as backgroundDefault.jpg and place it inside the folder backgrounds (images must be less than 245KB in size)
13 January 2011
Windows 7 - God Mode
This is a simple hack that gives you ALL Control Panel and System Settings in ONE place.
Create a new folder on your Windows Desktop.
Name the folder: GodMode.{ED7BA470-8E54-465E-825C-99712043E01C}
The icon will change:
Technical background:
The strange extension is a registered classid which is recognized by Windows Explorer. This class-id represents a explorer-panel COM object like the 'Control Panel'. Therefore Explorer switches from filesystem view to the COM objects and the component displays whatever it wants in the explorer panel.
Create a new folder on your Windows Desktop.
Name the folder: GodMode.{ED7BA470-8E54-465E-825C-99712043E01C}
The icon will change:
Now - open the folder and see for yourself...
Technical background:
The strange extension is a registered classid which is recognized by Windows Explorer. This class-id represents a explorer-panel COM object like the 'Control Panel'. Therefore Explorer switches from filesystem view to the COM objects and the component displays whatever it wants in the explorer panel.
19 November 2010
DISM works - injecting drivers into wim files
I have a WDS server with some images.
And sometimes one have to update images with new drivers,
and here is how I do it, using DISM:
Wim info:
Mount Win:
Dism /Mount-Wim /Wimfile:f:\remoteinstall\boot\x86\images\boot.wim /index:2 /MountDir:f:\mount
Add Drivers:
just one:
Dism /image:f:\mount /add-driver /driver:f:\ibm_drivers\mr
a whole library:
Dism /image:f:\mount /add-driver /driver:f:\ibm_drivers /recurse
And sometimes one have to update images with new drivers,
and here is how I do it, using DISM:
Wim info:
Dism /Get-WimInfo /WimFile:f:\remoteinstall\boot\x86\images\boot.wim
Dism /Get-WimInfo /WimFile:f:\remoteinstall\boot\x86\images\boot.wim /index:2
Mount Win:
Dism /Mount-Wim /Wimfile:f:\remoteinstall\boot\x86\images\boot.wim /index:2 /MountDir:f:\mount
Add Drivers:
just one:
Dism /image:f:\mount /add-driver /driver:f:\ibm_drivers\mr
a whole library:
Dism /image:f:\mount /add-driver /driver:f:\ibm_drivers /recurse
Unmount wim and commit:
Dism /Unmount-Wim /MountDir:f:\mount /commit
13 July 2010
Create a bootable WinPE USB drive with tools
Make USB drive bootable:
Tools
Copy tools to the USB drive
- This is much easier than mounting the wim file on the USB stick with imageX
Using ImageX
But - if we need/want to "install" the stuff in the wim file, then...
(ImageX is part of WAIK)
- Diskpart
- list disk
- select disk #
- Clean
- create partition primary
- select partition 1
- Active
- format quick fs=fat32 or ntfs
- Assign
- Exit
- Install WAIK for Windows 7
- Launch "Deployment Tools Command Promp"
- Copype x86 c:\winpe
- Copy c:\winpe\winpe.wim c:\winpe\ISO\sources\boot.win
- Xcopy c:\winpe\iso\*.* /e
:\
Tools
Copy tools to the USB drive
- This is much easier than mounting the wim file on the USB stick with imageX
Using ImageX
But - if we need/want to "install" the stuff in the wim file, then...
(ImageX is part of WAIK)
- Launch "Deployment Tools Command Promp"
- Md c:\img
- Imagex /mountrw
:\sources\boot.wim 1 c:\img - Do your stuff..
- Imagex /unmount /commit c:\img
29 April 2010
Managing Windows 7 Deployment with DISM
Using DISM to configure Windows 7
Starting DISM
The first thing we need to do in order to run DISM is have an elevated command prompt open.
Simply going Start –> Run –> cmd –> Enter won’t do the trick as that runs with user privileges.
What we need to do is either do Start –> Run –> Cmd –> Shift+CTRL+Enter
or Click on Start type cmd and when it appear in the search box, right click on it and choose “Run as Administrator”:
Once we’ve got the elevated command prompt open
– we can check this by looking in the task bar and the title should be prefixed by “Administrator: “
Now if we type “dism” we should get help about dism. If you get the message:
Error: 740
Elevated permissions are required to run DISM.
Use an elevated command prompt to complete these tasks.
Then you didn’t successfully get a command prompt with elevated privileges open.
Finding Basic Information With DISM
Now that we’ve got our command prompt ready for action, we can find some basic information about the OS we’re currently running. At the prompt type:
dism /online /Get-CurrentEdition
This tells dism we want to use the current version (/online) and the command – similar to PowerShell – tells dism we want to get information about the current edition (/Get-CurrentEdition). Proving successful the results should return something like:
Deployment Image Servicing and Management tool
Version: 6.1.7100.0
Image Version: 6.1.7100.0
Current edition is:
Current Edition : Ultimate
The operation completed successfully.
Now let’s take it one step further. As there are different versions of Windows 7 available, we have the potential to upgrade. If we run dism (referencing the online image - /online) with /Get-TargetEditions, it will tell us what versions we can upgrade to (if at all possible). So, if I run
dism /online /Get-TargetEditions
against a machine that is already running Windows 7 Ultimate, DISM should return:
Deployment Image Servicing and Management tool
Version: 6.1.7100.0
Image Version: 6.1.7100.0
Editions that can be upgraded to:
(The current edition cannot be upgraded to any target editions.)
The operation completed successfully.
So, scripting the above can prove useful if we need to interrogate or find information about our existing machine or its capabilities.
Changing the System with DISM
As well as querying the system for information, one of the most powerful features of DISM is its capability to “service” an “online” or live image. This allows us the capability to change the OS on the fly. For example, Windows 7 ships with numerous games and features installed that we might not want as part of our corporate build. Using the functionality built in to DISM – whilst the OS is running – we can remove these features.
First, let’s look at what is installed and what we can change. To do this, at the prompt we need to type:
dism /online /Get-Features | more
Again, we reference the current version (/online) and we use the command /Get-Features to show us the currently installed features. The “| more” simply paginates the output so we can see it without having to scroll. If we look through the list some of the features we want to remove can be seen:
….
Feature Name : FreeCell
State : Enabled
Feature Name : Minesweeper
State : Enabled
Feature Name : PurblePlace
State : Enabled
….
As the state of these currently shows “Enabled” we want to remove or disable them. Using DISM, we can easily do this. At the prompt we can type:
dism /online /Disable-Feature /FeatureName:
Where we simply replace with the feature from the list of results we got using /Get-Features. NOTE: The features are CaSe SEnSItivE. As an example, if we wanted to remove PurblePlace, we could simply enter:
dism /online /Disable-Feature /FeatureName:PurblePlace
at which time DISM will kick in and should return results like the following:
Deployment Image Servicing and Management tool
Version: 6.1.7100.0
Image Version: 6.1.7100.0
Disabling feature(s)
[==========================100.0%==========================]
The operation completed successfully.
Let’s now check to see if it was disabled:
dism /online /Get-FeatureInfo /FeatureName:PurblePlace
Deployment Image Servicing and Management tool
Version: 6.1.7100.0
Image Version: 6.1.7100.0
Feature Information:
Feature Name : PurblePlace
Display Name : Purble Place
Description : Purble Place
Restart Required : Possible
State : Disabled
Custom Properties:
(No custom properties found)
The operation completed successfully.
As we can see “State : Disabled” means we’ve disabled it. Should we want to re-enable it, we can simply type:
dism /online /Enable-Feature /FeatureName:PurblePlace
At which time DISM will put the feature back on the machine in a similar way it removed it:
Deployment Image Servicing and Management tool
Version: 6.1.7100.0
Image Version: 6.1.7100.0
Enabling feature(s)
[==========================100.0%==========================]
The operation completed successfully.
Conclusion
As you can see DISM is a very powerful tool and the introduction of online/live servicing makes it even more useful to the IT professional. To get more information about DISM or any of its functions or capabilities, use the /? flag when you get stuck. Some examples include:
“dism /?” – which will tell you about the root level capabilities
“dism /online /?” – which will tell you about the online image servicing capabilities
“dism /online /Get-Features /?” – which will tell you about the Get-Features function
And from there, the sky’s the limit. Happy DISM’ing.
Starting DISM
The first thing we need to do in order to run DISM is have an elevated command prompt open.
Simply going Start –> Run –> cmd –> Enter won’t do the trick as that runs with user privileges.
What we need to do is either do Start –> Run –> Cmd –> Shift+CTRL+Enter
or Click on Start type cmd and when it appear in the search box, right click on it and choose “Run as Administrator”:
Once we’ve got the elevated command prompt open
– we can check this by looking in the task bar and the title should be prefixed by “Administrator: “
Now if we type “dism” we should get help about dism. If you get the message:
Error: 740
Elevated permissions are required to run DISM.
Use an elevated command prompt to complete these tasks.
Then you didn’t successfully get a command prompt with elevated privileges open.
Finding Basic Information With DISM
Now that we’ve got our command prompt ready for action, we can find some basic information about the OS we’re currently running. At the prompt type:
dism /online /Get-CurrentEdition
This tells dism we want to use the current version (/online) and the command – similar to PowerShell – tells dism we want to get information about the current edition (/Get-CurrentEdition). Proving successful the results should return something like:
Deployment Image Servicing and Management tool
Version: 6.1.7100.0
Image Version: 6.1.7100.0
Current edition is:
Current Edition : Ultimate
The operation completed successfully.
Now let’s take it one step further. As there are different versions of Windows 7 available, we have the potential to upgrade. If we run dism (referencing the online image - /online) with /Get-TargetEditions, it will tell us what versions we can upgrade to (if at all possible). So, if I run
dism /online /Get-TargetEditions
against a machine that is already running Windows 7 Ultimate, DISM should return:
Deployment Image Servicing and Management tool
Version: 6.1.7100.0
Image Version: 6.1.7100.0
Editions that can be upgraded to:
(The current edition cannot be upgraded to any target editions.)
The operation completed successfully.
So, scripting the above can prove useful if we need to interrogate or find information about our existing machine or its capabilities.
Changing the System with DISM
As well as querying the system for information, one of the most powerful features of DISM is its capability to “service” an “online” or live image. This allows us the capability to change the OS on the fly. For example, Windows 7 ships with numerous games and features installed that we might not want as part of our corporate build. Using the functionality built in to DISM – whilst the OS is running – we can remove these features.
First, let’s look at what is installed and what we can change. To do this, at the prompt we need to type:
dism /online /Get-Features | more
Again, we reference the current version (/online) and we use the command /Get-Features to show us the currently installed features. The “| more” simply paginates the output so we can see it without having to scroll. If we look through the list some of the features we want to remove can be seen:
….
Feature Name : FreeCell
State : Enabled
Feature Name : Minesweeper
State : Enabled
Feature Name : PurblePlace
State : Enabled
….
As the state of these currently shows “Enabled” we want to remove or disable them. Using DISM, we can easily do this. At the prompt we can type:
dism /online /Disable-Feature /FeatureName:
Where we simply replace
dism /online /Disable-Feature /FeatureName:PurblePlace
at which time DISM will kick in and should return results like the following:
Deployment Image Servicing and Management tool
Version: 6.1.7100.0
Image Version: 6.1.7100.0
Disabling feature(s)
[==========================100.0%==========================]
The operation completed successfully.
Let’s now check to see if it was disabled:
dism /online /Get-FeatureInfo /FeatureName:PurblePlace
Deployment Image Servicing and Management tool
Version: 6.1.7100.0
Image Version: 6.1.7100.0
Feature Information:
Feature Name : PurblePlace
Display Name : Purble Place
Description : Purble Place
Restart Required : Possible
State : Disabled
Custom Properties:
(No custom properties found)
The operation completed successfully.
As we can see “State : Disabled” means we’ve disabled it. Should we want to re-enable it, we can simply type:
dism /online /Enable-Feature /FeatureName:PurblePlace
At which time DISM will put the feature back on the machine in a similar way it removed it:
Deployment Image Servicing and Management tool
Version: 6.1.7100.0
Image Version: 6.1.7100.0
Enabling feature(s)
[==========================100.0%==========================]
The operation completed successfully.
Conclusion
As you can see DISM is a very powerful tool and the introduction of online/live servicing makes it even more useful to the IT professional. To get more information about DISM or any of its functions or capabilities, use the /? flag when you get stuck. Some examples include:
“dism /?” – which will tell you about the root level capabilities
“dism /online /?” – which will tell you about the online image servicing capabilities
“dism /online /Get-Features /?” – which will tell you about the Get-Features function
And from there, the sky’s the limit. Happy DISM’ing.
Subscribe to:
Posts (Atom)