IT Knowledge Base

Technical Repository

HowTo: Configure Windows Remote Management Service to allow HTTP and Basic Authentication

Run the following command to set the default WinRM configuration values. winrm quickconfig (Optional) Run the following command to check whether a listener is running, and verify the default ports. winrm e winrm/config/listener Enable basic authentication on the WinRM service. Run the following command to check whether basic authentication is allowed. winrm get winrm/config Run […]

Read More


HowTo: Inject Cisco UCS Drivers into Windows 2012 R2 ISO

dism /get-wiminfo /wimfile:”./Workspace\Windows 2012 R2\sources\boot.wim” dism /Mount-Wim /WimFile:”./Workspace\Windows 2012 R2\sources\boot.wim” /Index:2 /MountDir:”./Workspace\Mount” dism /image:”./Workspace\Mount” /Add-Driver /driver:”./Workspace\Drivers” -Recurse dism /unmount-wim /mountdir:”./Workspace\Mount” /commit dism /get-wiminfo /wimfile:”./Workspace\Windows 2012 R2\sources\install.wim” dism /Mount-Wim /WimFile:”./Workspace\Windows 2012 R2\sources\install.wim” /Index:4 /MountDir:”./Workspace\Mount” dism /image:”./Workspace\Mount” /Add-Driver /driver:”./Workspace\Drivers” -Recurse dism /unmount-wim /mountdir:”./Workspace\Mount” /commit

Read More


HowTo: Fix – SCVMM doesn’t show hosts performance

The issue was that in the SCVMM console, the performance view was static, and didn’t show any changes at all. Open a command prompt (Run as Administrator) and fire the following commands: 1) Lodctr /R (this will rebuild the perf counters from system backup store) 2) Winmgmt /resyncperf (this will register the system performance libraries […]

Read More


Howto: Office 365 – Remove Users Profile Pictures

The global administrator can remove the photos for the users with PowerShell in Office 365. For more detailed information, you can refer to the steps below: 1. Connect Windows PowerShell to the Service: http://help.outlook.com/en-us/140/cc952755.aspx 2. Run the following command to remove the photos for the users: Remove-UserPhoto TestUser11. Here is a screenshot about removing photo […]

Read More


HowTo: Windows 2012 R2 Cluster Aware Updating – Enable PowerShell Remote Shutdown

Error when running the Cluster Updating Readiness Analyzer Error: Rule ID: 9 Title: A firewall rule that allows remote shutdown should be enabled on each node in the failover cluster Result: Error Problem: One or more failover cluster nodes do not have a firewall rule enabled that allows remote shutdown Impact: Cluster-Aware Updating may not […]

Read More


HowTo: Run a full directory synchronization with Office 365

The first synchronization with DirSync is a full synchronization. Then all others synchronizations are delta synchronizations and are scheduled every 3 hours. Open the Registry Editor and edit the following key: HKEY_LOCALMACHINE\Software\Microsoft\MSOLCoExistence Change FullSyncNeeded value to 1. Open powershell and run: Import-Module DirSync Start-OnlineCoexistenceSync

Read More


HowTo: Powershell – Enable Active Directory Inheritance on all objects

Import-Module ActiveDirectory $users = Get-ADUser -ldapfilter “(objectclass=user)” -searchbase “ou=Domain Users,dc=DOMAIN,dc=CORP” ForEach($user in $users) { # Binding the users to DS $ou = [ADSI](“LDAP://” + $user) $sec = $ou.psbase.objectSecurity if ($sec.get_AreAccessRulesProtected()) { $isProtected = $false ## allows inheritance $preserveInheritance = $true ## preserver inhreited rules $sec.SetAccessRuleProtection($isProtected, $preserveInheritance) $ou.psbase.commitchanges() Write-Host “$user is now inheriting permissions”; } else […]

Read More


HowTo: Excel – Delete all blank rows.

After selecting the data range, continue as follows: 1. Press [F5]. 2. In the resulting Go To dialog box, click Special. 3. Click the Blanks option and click Ok. Doing so selects the blank cells (what you might think of as rows) in the selected range. 4. Now you’re ready to delete the selected cells.

Read More


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: Add multiple IP’s to Exchange Receive Connector CLI

Return the list of IP’s from the connector: Get-ReceiveConnector “Relay Connector” | fl RemoteIPRanges Add a single IP address to the Connector. We pull the list of existing IP’s and append the new IP and then add the entire list back. $RecvConn = Get-ReceiveConnector “Relay Connector” $RecvConn.RemoteIPRanges += “10.0.0.99” Set-ReceiveConnector “Relay Connector” -RemoteIPRanges $RecvConn.RemoteIPRanges Read […]

Read More