This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (Invoke-WebRequest https://wac.domain.com/op/servicebusy.htm).Headers["X-OfficeVersion"] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Set-OfficeWebAppsFarm -LogVerbosity "" | |
| Restart-Service WACSM |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $path1 = "HKLM:\SYSTEM\ControlSet001\Control\ComputerName\ActiveComputerName" | |
| $path2 = "HKLM:\SYSTEM\ControlSet001\Control\ComputerName\ComputerName" | |
| $path3 = "HKLM:\SYSTEM\ControlSet002\Control\ComputerName\ComputerName" | |
| $paths = @($path1,$path2,$path3) | |
| foreach ($path in $paths) { | |
| Set-ItemProperty -Path $path -Name ComputerName -Value $env:COMPUTERNAME.ToUpper() | |
| (Get-ItemProperty -Path $path -Name ComputerName).ComputerName | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Set-OfficeWebAppsFarm -LogVerbosity "High" | |
| Restart-Service WACSM |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Param ( | |
| [string]$userName = "[email protected]", | |
| [string]$password = "MyPassword#12345", | |
| [string]$subscriptionName = "mySubscription", | |
| [string]$resourceGroup = "Networking-US-East-2", | |
| [string]$localGatewayName = "LocalGateway-HQ", | |
| [string]$location = "East US 2", | |
| [string]$lgwSubnetPrefix = "192.168.0.0/21" | |
| ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Param ( | |
| [string]$msolDisplayName = "SVC-Nework-Gateway-Updater", | |
| [string]$msolFirstName = "Network-Gateway", | |
| [string]$msolLastName = "Updater-Account", | |
| [string]$msolUpn = "[email protected]", | |
| [string]$msolPassword = "MyPassword#12345", | |
| [string]$msolUsageLocation = "US", | |
| [string]$azureSubscriptionName = "mySubscription", | |
| [string]$azureResourceGroupName = "Networking", | |
| [string]$azureLocalGatewayName = "LocalGateway" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 2017-10-27 14:21:32.7678 [Debug] Trying to get HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\DevDiv\vs\Servicing\14.0 | |
| 2017-10-27 14:21:32.8098 [Debug] Visual Studio 2015 detected... | |
| 2017-10-27 14:21:33.2376 [Debug] git command: Starting process: git rev-parse --show-prefix | |
| 2017-10-27 14:21:33.2835 [Debug] git command time: [00:00:00.0498066] rev-parse --show-prefix | |
| 2017-10-27 14:21:33.3596 [Debug] Command run:git tfs clone http://418612-papp01:8080/tfs/ApplicationCollection $/AdminServices --debug | |
| 2017-10-27 14:21:33.3850 [Debug] No authors file used. | |
| 2017-10-27 14:21:33.4007 [Debug] git-tfs version 0.27.0.0 (TFS client library 14.0.0.0 (MS)) (32-bit) | |
| 2017-10-27 14:21:33.4241 [Debug] git command: Starting process: git init | |
| 2017-10-27 14:21:33.5413 [Info] Initialized empty Git repository in C:/tfsMigration/AdminServices/.git/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function getDownloadLink(el, i) { | |
| 'use strict'; | |
| var rlastForwardSlash = /.+\//, | |
| fileId = (el.href) ? el.href.replace(rlastForwardSlash, '') : '', | |
| downloadPath = 'https://www.yammer.com/api/v1/uploaded_files/' + fileId + '/download' | |
| ; | |
| return downloadPath; | |
| } | |
| function downloadFile(dataUrl) { | |
| 'use strict'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Import-Module SQLPS -DisableNameChecking -EA 0 | |
| $backupPath = "J:\Backups" # location of all the .bak files | |
| $sqlInstance = $env:COMPUTERNAME | |
| $files = Get-ChildItem -Path $backupPath -Filter *.bak | |
| foreach ($file in $files) { | |
| $fileName = $file.Name | |
| $dbName = $fileName.Substring(0,($fileName.Length - 13)) # length based off suffix of "_yyyyMMdd.bak" eg: "_20161901.bak" | |
| Write-Verbose ("Restoring $dbName...") -Verbose | |
| Restore-SqlDatabase -ServerInstance $sqlInstance -Database $dbName -BackupFile $file.FullName -RestoreAction Database -ReplaceDatabase | |
| } |
NewerOlder