Report a Dell Service Tag Remotely
Create a text file with the following:
ComputerName = InputBox(Computer Name)strComputer = ComputerNameSet objWMIService = GetObject(winmgmts: _& {impersonationLevel=impersonate}!\ & strComputer & \root\cimv2)Set colSMBIOS = objWMIService.ExecQuery _(Select * from Win32_SystemEnclosure)For Each objSMBIOS in colSMBIOSWscript.Echo Service Tag: & objSMBIOS.SerialNumberNext``` Save it as a vbs then run: cscript filename.vbs
You will need to run the script with the correct permissons to WMI.
Run the Last Command with Sudo
This will add sudo to the last command (that you forgot to use sudo in the first place):
sudo !!
Updating MacPorts
sudo port selfupdate Then to upgrade your installed ports:
sudo port upgrade outdated
Creating A Custom WinPE Disk
Currently I am using this to run Dell updates on non windows operating systems that are not directly supported.
imagex /mountrw c:\winpe_x86\winpe.wim 1 c:\winpe_x86\mount imagex /unmount /commit c:\winpe_x86\mount copy c:\winpe_x86\winpe.wim c:\winpe_x86\ISO\sources\boot.wim oscdimg.exe -n -bc:\winpe_x86\etfsboot.com c:\winpe_x86\ISO c:\winpe_x86\dell.iso
Compare Directories in Linux
comm <(ls ~/dir-new/) <(ls ~/dir) This works in OS x as well.
Getting to Network Connections Quickly in Vista
Pop this into the run dialog:
control ncpa.cpl This will also work for the following: control printers = Printers control sysdm.cpl = System Properties control appwiz.cpl = Programs & Features (Add & Remove) This can also be coupled with ‘Runas’:
runas /user:computername\Administrator rundll32.exe shell32.dll,Control_RunDLL ncpa.cpl
Creating a Report of ALL SMTP email addresses from Active Directory
Ldifde -d DC=domain,DC=co,DC=uk -r (&(mailnickname=*)) -l proxyAddresses -f Report.txt
Creating a ZFS iSCSI Target
Using a Nexenta VM it is possible to create a 500 TB thin provisioned iSCSI target in three lines:
zpool create zfspool01 raidz c2t0d0 c2t1d0 c2t2d0 zfs create -s -V 500TB zfspool01/share01 zfs set shareiscsi=on zfspool01/share01 In this case the disks c2t0d0, c2t1d0 and c2t2d0 are all dynamic 10 GB virtual disks. This can easily be mounted with the Microsoft iSCSI Initiator for testing; it will be interesting to see how well this plays with ESX…
Checking DNS for CERT VU#800113
You can use the following web service to see if your DNS servers or resolvers need attention. For Windows:
nslookup -querytype=TXT -timeout=10 porttest.dns-oarc.net. nslookup -querytype=TXT -timeout=10 porttest.dns-oarc.net. DnsServerName For *nix:
dig +short porttest.dns-oarc.net TXT dig @DnsServerName +short porttest.dns-oarc.net TXT Where DnsServerName is the name of the DNS server you want to check. You are looking for GREAT, GOOD or POOR in the results.
Original Reference