IT Knowledge Base

Technical Repository

HowTo: Running logon script from mapped drive

By default you cannot run a bat file from a network share, UNC paths are not supported. To get this to work, you would run pushd and popd. This will map out a temporary drive letter so that the bat commands will be able to run off the ‘mapped’ share and then the connection will […]

Read More


HowTo: Exchange 2010/2013 – Give user full access to all mailboxes

Give access to all mailboxes Get-Mailbox | Add-MailboxPermission -User gmatteson -AccessRight FullAccess -InheritanceType All -Automapping $false Remove access to all mailboxes Get-Mailbox | Remove-MailboxPermission -User gmatteson -AccessRights FullAccess This cmdLet can be used to give a user full access permissions to all mailboxes in Exchange and to all future mailboxes that will be created. Get-MailboxDatabase […]

Read More


HowTo: Windows 2012 R2 – Fix Domain Controller SRV Records

nltest /dsregdns net stop netlogon net start netlogon

Read More


HowTo: Exchange 2013 – Receive Connector – Configure a SMTP Relay

1. Log into the Exchange Control Panel and navigate to Mail Flow > Receive Connectors. 2. Click the + icon to create a new receive connector. 3. Under Name, type in Outbound Relay. Under Role, select Frontend Transport and under Type select Custom and click Next. 4. By default this receive connector will bind to all of the […]

Read More


HowTo: Exchange 2013 – Give admin access to all mailboxes. Disable Automapping.

Open the Exchange Management Shell and type in: Get-Mailbox | Add-MailboxPermission -user gmatteson -AccessRights FullAccess -InheritanceType All -AutoMapping $false In Exchange 2010 Service Pack 1 (SP1) Exchange introduced a feature that allows Outlook clients to automatically map to any mailbox to which a user has Full Access permissions. If a user is granted Full Access […]

Read More


HowTo: Powershell – Check to see if the previous command completed successfully

The completion status of the previous command can be accessed via the special variable $?. This works best with non-terminating errors, terminating errors are the result of a direct throw or an exception getting thrown in .NET and they alter the flow of your code. Best to use a trap or try/catch statement to observe […]

Read More


HowTo: How to change the AssignedTo username for Incidents in System Center Service Manager 2012 R2

$Incident = “IR Number” $CurrentUsername = “This is the username that is currently in the AssignedTo field” $NewUsername = “The new username” $Domain = “NETBIOS Domain Name” $i = Get-SCSMObject (Get-SCSMClass System.WorkItem.Incident$) -Filter “Id -eq $Incident ” $u = Get-SCSMObject (Get-SCSMClass System.Domain.User$) | ?{$_.Domain -eq $Domain -and $_.Username -eq $CurrentUsername } $r = Get-SCSMRelationshipClass System.WorkItemAssignedToUser […]

Read More


HowTo: Force a SQL Server Database Offline

I ran into a problem where I needed to restore a database from backup but was unable to take the database offline due to existing connections. The task would just stay there processing and after an hour, I had enough. I wanted to force the database to go offline regardless of any connections so I […]

Read More


News: Microsoft requires migration to Windows 8.1 Update within 5 weeks

http://www.networkworld.com/news/2014/040814-microsoft-requires-migration-to-windows-280509.html?source=NWWNLE_nlt_daily_pm_2014-04-08 “Failure to install this Update will prevent Windows Update from patching your system with any future updates starting with updates released in May 2014,” said Michael Hildebrand of Microsoft in a Monday blog. Elsewhere, Microsoft pegged Windows 8.1 Update as “the new servicing baseline for Windows 8.1,” again emphasizing that customers who have moved […]

Read More


News: Windows 8.1 Update is required for future Windows 8.1 patches

Windows 8.1 Update is required for future Windows 8.1 patches http://www.pcworld.com/article/2140803/windows-8-1-update-is-required-for-future-windows-8-1-patches.html A post on Microsoft’s Premier Field Engineering blog reveals that Windows 8.1 users won’t receive security patches or other future updates unless they install the new update available today http://blogs.technet.com/b/askpfeplat/archive/2014/04/07/exploring-windows-8-1-update-start-screen-desktop-and-other-enhancements.aspx

Read More