PowerShell script to rename the VHD file and attach it to the VM

I had few quries on how to re-name of the VHD same as VM name. This is a PowerShell script which you can ask as an alternative on getting this thing done.   This power shell uses the Hyper-v Module. Please download the module from http://pshyperv.codeplex.com/releases/view/38769 . This has the download and a PDF file…

1

Script to check the staus of a service for a group of machines

This script will help to check if the srevice is avilable or not in a group of system  ‘============================================================================================’Script Written by Sudheesh Narayanaswamy’This can be used to check if the srevice is avilable or not in a group of system’Create a file called input.txt (location speiced in strFile) with computer name of the system each…

0

VB Script IP Online tester

This script will show which all IP address are in use for a range of IP and also check whihc all are online and whihc all are offline. SCRIPT======= ============================================================================================’Script Written by Sudheesh Narayanaswamy’This can be used to check the IP address which are in use currentely. It will tell you which all IP are…

6

How to check if a certificate is going to Expire

How to check if a certificate is going to Expire and Create a Event in Event Viewer This script will check for the certificates and then will create a event if the certificates is going to expire within 10 days period. Please note that this requires  capicom.dll  so please register this using command regsvr32 capicom.dll. You can…

0

Script to delete a WMI instance from WMI repository

  This is a script to delete a WMI instance from the WMI repository.   This was used when the deployment status were failing infroming there was another deployment in progress where as it was not there. This was because of the issue with the entry present in the WMI. In this example we are deleting…

0

Script to check if a service is installed or not in a group of systems

  This is a script to check if a service is installed or not in a group of systems.    SCRIPT ======= ‘============================================================================================’Script Written by Sudheesh Narayanaswamy’This can be used to check if the srevice is avilable or not in a group of system’Create a file called input.txt (location speiced in strFile) with computer name of…

0

Script to Modfiy a registry Value Helpful for implementing http://support.microsoft.com/kb/970635

When we are applying the hotfix  http://support.microsoft.com/kb/970635 we would required to modify the registry value HKEY_LOCAL_MACHINE\Software\Microsoft\Sms\Mobile Client\Reboot Management\JobCounter to zero for the systems which has already been havingthis issue. As a part of  this we need to do these three steps Stop the SMS Agent Host (CcmExec.exe) service on a System Center Configuration Manager 2007 SP1 client…

0

Script to get a list of Add Remove programs from WMI

In many cases with SMS or SCCM we could see that the information pulled by the hardware inventory is not matching or incorrect you can use this. This will pull the information of list of programs listed in ADD\Remove Programs Script ================================================================================= strHost = “.”Const HKLM = &H80000002Set objReg = GetObject(“winmgmts://” & strHost & _   …

5

Script to set the user proxy settings

 This is a VB script to set the user proxy settings . This can be used as a logon script ro set some specific proxy settings. I had found this after a extensive serach so though of sharing the same. =================================================================  Const HKCU=&H80000001 ‘HKEY_CURRENT_USERConst HKLM=&H80000002 ‘HKEY_LOCAL_MACHINE Const REG_SZ=1Const REG_EXPAND_SZ=2Const REG_BINARY=3Const REG_DWORD=4Const REG_MULTI_SZ=7 Const HKCU_IE_PROXY =…

2

VBSCRIPT To find the free space and total space of a group of system

   This script will read the INPUT file from the loacation and will find out the free space and total space of teh drives in the system and store it in OUTPUT.txt file. The Input file should be having the server names one servername per line (line delimted). Copy the file and save it as .vbs…

14