Stay Connected
Posts tagged Script
Windows Server 2008 R2 : enable wireless networking?
Jan 31st
When installing Windows Server 2008 R2 out of the box the configuration does not support wireless networking. If drivers are available Windows will find them with plug and play installation but not enable the functionality. Since Windows 7 and Windows Server 2008 R2 supports booting from a VHD file from local disks I am now building a standard image which I will use for testing and development. The new VHD boot feature is amazing in helping IT professionals having multiple VHD files which they can boot from. Last night I needed to update my system with all latest patches and system settings therefore I needed to access the Internet without any wired connection.
Not connected. No Connections are available after checking my adapters.
Microsoft released new tool named DISM.exe (Deployment Image Servicing and Management tool) which ships with Windows 7 and Windows Server 2008 R2.
DISM enumerates, installs, uninstalls, configures, and updates features and packages in Windows images. The commands that are available depend on the image being serviced and whether the image is offline or running.
Open elevated command prompt and query all available features “dism /online /get-features /format:table”
WirelessNetworking is disabled. To enable this feature execute “dism /online /enable-feature:WirelessNetworking”
dism enables the WirelessNetworking feature and after I check my available wireless network connections the WIFI networks are not shows.
PowerShell: How to delete a file based on a list of computers?
Jan 31st
The following PowerShell script recipe will help you delete a remote file based on a list of computers stored in a text file. New PowerShell function will be created during the session which will be piped from the text file.
Generate C:\Scripts\Active_Computers.txt with computer names.
[PowerShell]
function delete-remotefile {
PROCESS {
$file = "\\$_\c$\install.exe"
if (test-path $file)
{
echo "$_ install.exe exists"
Remove-Item $file -force
echo "$_ install.exe file deleted"
}
}
}
Get-Content C:\Scripts\Active_Computers.txt | delete-remotefile
[/PowerShell]
Microsoft Outlook: how to backup my signature?
May 15th
One of the things I always struggled with is creating a backup of my Microsoft Outlook signatures. This is the first time I found how to create a backup of them.
The solutions is simple and easy. You could script this and automate when doing client/profile migrations.
Start –> Run and go paste this %APPDATA%\Microsoft\Signatures
That’s it. You can copy these files to whatever location you want.

Software Packaging: Internet Explorer 8
Mar 25th
Here is my script and commands I used to install Internet Explorer 8 with a cmd script. I used this script to perform manual installation but it can also be used to deploy the package with software distribution.
IE8-WindowsXP-x86-ENU.exe /passive /nobackup /norestart
The script will install IE, without user interaction, create no uninstall package and does not reboot the system. If you want to hide the installation window add “/quiet” to it. For more information click here.

Software Packaging: Microsoft Visio Viewer 2007
Feb 11th
Microsoft Visio is a common tool in a enterprise. The price tag for a single installation is significantly so you don’t want to add this to your default client installation. Microsoft provides a viewer for Visio drawings which are shown in IE.
The Visio 2007 Viewer allows anyone to view Visio drawings and diagrams (created with Visio 5.0, 2000, 2002, 2003, or 2007) inside their Internet Explorer version 5.0 or later Web browser.
Visio users can freely distribute Visio drawings and diagrams to team members, partners, customers, or others, even if the recipients do not have Visio installed on their computers. Internet Explorer also allows for printing, although this is limited to the portion of the drawing displayed.
I would like to script this add-on to all clients and therefore script is needed to automatically distribute this. You can use SMS or any other software distribution mechanism.
Download source files from here.
Create cmd file or include the parameter as following to have an silent installation fo Visio 2007 viewer: visioviewer.exe /quiet
Tools: BGInfo silent run and no license agreement
Jan 13th
BGInfo is very useful when managing dozen of Windows Servers in physical and virtual environments. I even managed to get this tool deployed to all client computers at work. It has a huge value for support personal.
Since SysInternals has been taken over by Microsoft it now shows a “License Agreement” windows. Sure this is not a problem on the servers; but for client computers we don’t want to bug users with these windows.
What should users do?
We have two flavors to solve this:
- Create a reg file and import the key below
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Sysinternals\BGInfo]
"EulaAccepted"=dword:00000001 - I prefer the command line below in a cmd cript which is storen All Users\Start Menu\Programs\Startup folder
C:\WINDOWS\Bginfo.exe almatis.bgi /timer:0 /silent /NOLICPROMPT
/NOCICPROMPT option will skip the license window. Imagine having 1000+ users clicking on the window.

