@bobnoordam

Author: bobnoordam

Re-activating the create unit test function in Visual Studio 2012

Visual studio 2010 had a quick rightclick context menu to create unit test which has disappeared in VS2012, to move to a more general approach that isnt directly tied in with the MS unit testing system. It is possible however to re-enable the menu function or use a keyboard shortcut. full writeup source: http://serena-yeoh.blogspot.nl/2013/02/visual-studio-2012-create-unit-test.htmlhttp://blogs.msdn.com/b/malaysia/archive/2013/02/20/right-click-create-unit-tests.aspx Your […]

Server 2012 – Change the type of a network location

By default the network location awareness service will attempt to classify your network, and you will not be able to change the location. To enable editing of the location(s) take the following steps: Start –> run –> MMC In the MMC console add the Group Policy Object editor for the local computer Open Computer configration, […]

Restore trust between server and workstation without leaving and rejoining the domain

If a workstation is restored from a backup you will likely run into a message like ‘the trust relationship between this workstation and the primary domain failed’. The general advice will be leaving and rejoining the domain. However, there is a much safer method. You can start PowerShell as an administrator, and run the command […]

Hyper-V 2008 Powershell Security Warnings

After setting the execution policy for windows powershell to unrestricted, you still are unable to run powershell scripts from a batch file or the command line without the following warning popping up: C:\MyScripts> Set-ExecutionPolicy unrestricted PS C:\MyScripts> ./somefile.ps1 Security Warning Run only scripts that you trust. While scripts from the Internet can be usefull they […]

Getting the current date/time from a NIST server

‘ — Get the current time/date from an internet nist server ‘ more timeserver here: http://tf.nist.gov/service/time-servers.html Dim s_checkserver As String = “time.nist.gov” Dim myreader As StreamReader Dim s_timestring As String Try myreader = New StreamReader(New Net.Sockets.TcpClient(s_checkserver, 13).GetStream) s_timestring = myreader.ReadToEnd s_timestring = Trim(LTrim(s_timestring)) Catch ex As Exception ‘ — unable to contact timeserver End End […]

Next Page » « Previous Page