This file contains 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
$resp = Invoke-WebRequest -Verbose -Uri $url | |
$selectedForm = $resp.Forms[0] | |
$webAction = New-Object System.Uri ($resp.BaseResponse.ResponseUri, $selectedForm.Action) | |
$resp2 = Invoke-WebRequest -Verbose -Uri $webAction -Method $selectedForm.Method -Body $selectedForm |
This file contains 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
powercfg -lastwake |
This file contains 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
Exportfile for AOT version 1.0 or later | |
Formatversion: 1 | |
***Element: FRM | |
; Microsoft Dynamics AX Forms unloaded | |
; -------------------------------------------------------------------------------- | |
FRMVERSION 12 | |
FORM #_AreaPageSimulation_ |
This file contains 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 Get-LatestDropLocation { | |
param( | |
[Parameter(Position=0,Mandatory=$true)] [string]$tfsLocation, | |
[Parameter(Position=1,Mandatory=$true)] [string]$projectName, | |
[Parameter(Position=3,Mandatory=$true)] [string]$buildDefinitionName | |
) | |
Add-Type -AssemblyName "Microsoft.TeamFoundation.Client, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL" | |
Add-Type -AssemblyName "Microsoft.TeamFoundation.Build.Client, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL" | |
$tfsUri = New-object Uri($tfsLocation) |
This file contains 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 xact_abort on | |
declare @media_set_id int = 6089 | |
use msdb | |
begin tran | |
delete from backupfile | |
where exists | |
(select null | |
from backupset | |
where backupset.backup_set_id = backupfile.backup_set_id |
This file contains 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
static void DeleteFiscalCalendarYear(Args _args) | |
{ | |
FiscalCalendarYear fiscalCalendarYear; | |
FiscalCalendarPeriod fiscalCalendarPeriod; | |
LedgerFiscalCalendarPeriod ledgerFiscalCalendarPeriod; | |
LedgerPeriodModuleAccessControl ledgerPeriodModuleAccessControl; | |
FiscalYearName yearToDelete = '2011'; | |
ttsBegin; |
This file contains 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
<!-- \Program Files\Microsoft Team Foundation Server 12.0\Application Tier\Web Services\_areas\Agile\Views\Backlogs\IterationBoard.aspx --> | |
<!-- add at the end of <asp:Content ContentPlaceHolderID="RightHubContent" runat="server"> --> | |
<script defer="defer" type="application/javascript"> | |
function popraviOzadje() | |
{ | |
try | |
{ | |
var taskboardData = JSON.parse(document.getElementById('taskboard').children[0].innerHTML); | |
var parentIds = taskboardData.parentIds; | |
var stateCol = 0; |
This file contains 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
runas /user:domain\user /netonly %1 |
This file contains 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 ActiveDirectory | |
Get-ADPrincipalGroupMembership (Read-Host "Username")|select SamAccountName| sort SamAccountName | ConvertTo-Csv -NoTypeInformation > "$($env:TEMP)\user-groups.csv" | |
start "$($env:TEMP)\user-groups.csv" |
This file contains 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
Rundll32 dsquery.dll OpenQueryWindow |
OlderNewer