IT Systems Engineering
-
Setting a static IP using powershell
Here is a quick way to set your IP address to a static value: $NICs = Get-WMIObject Win32_NetworkAdapterConfiguration -computername . | where{$_.IPEnabled -eq $true -and $_.DHCPEnabled -eq $true} Foreach($NIC in $NICs) { $ip = "10.0.0.151" $gateway = "10.0.0.1" $subnet = "255.255.255.0" $dns = "10.0.0.10","10.0.0.11" $NIC.EnableStatic($ip, $subnet) $NIC.SetGateways($gateway) $NIC.SetDNSServerSearchOrder($dns) $NIC.SetDynamicDNSRegistration("FALSE") } IPConfig /all Credits: Original script taken from here
-
Set Dynamic IP address using powershell
Here is a quick powershell script to set your network card TCP/IP setting to dynamic addressing: $NICs = Get-WMIObject Win32_NetworkAdapterConfiguration | where{$_.IPEnabled -eq “TRUE”} Foreach($NIC in $NICs) { $NIC.EnableDHCP() $NIC.SetDNSServerSearchOrder() } IPConfig /all Credits: Original script taken from here
-
Use SkyDrive to fetch a PC’s files
I just found out a very cool feature of SkyDrive in Windows Live Essentials 2012. You can use it to connect to your PC remotely and fetch files in it even if you have not saved those files in the SkyDrive. Cool, eh? Would be very useful if you forgot to get a file from your home PC while at work or vice versa. Here is how to set it up: Set up a PC to fetch its files
-
Missing Administrative Tools in Windows 7
I have a Windows 7 workstation which I had been using earlier as a different user. When I logon as a new user I don’t see the “Administrative Tools”. So I thought maybe the admin tools I enabled in control panel >> add windows features may be a user profile thing…..ummm…no it wasn’t; I checked…admin tools were all enabled. I found out a quick solution: Right click on any empty area in the Start menu and click “Properties”. Click the “Customize” button under the start menu tab. Scroll down to “System Administrative Tools” Check the radio button “Display on the all Programs menu…” Click OK. There you have it!
-
Lost network connectivity
I have seen this problem a couple of times now. All of a sudden a machine [usually a VM] loses all network connectivity. The Windows event logs show that IPsec is blocking network activity. Solution? Well, take a look at this KB article: http://support.microsoft.com/kb/912023 The solution listed there solves the problem. I suspect file corruption is the issue. Happy friday!