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
# Parameters | |
$tenantId = "<tenant-id>" | |
$userOrGroupOId = "<user-or-group-id>" | |
$appRegistrationName = "<app-registration-name>" | |
# Connect to Azure AD using the specified tenant ID | |
Connect-AzureAD -TenantId $tenantId > Out-Null | |
# Retrieve the Azure AD application with the specified display name | |
$application = Get-AzureADApplication -All $true | Where-Object {$_.DisplayName -eq $appRegistrationName} |
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
# Disable and delete app registration roles | |
Connect-AzureAD | |
$registrationName = '<APP-REGISTRATION-NAME>' | |
$application = Get-AzureADApplication -Filter "DisplayName eq '$registrationName'" | |
$application.AppRoles.ForEach({ $_.IsEnabled = $false }) | |
Set-AzureADApplication -ObjectId $application.ObjectId -AppRoles $application.AppRoles | |
Set-AzureADApplication -ObjectId $application.ObjectId -AppRoles @() |
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
If you're getting Access Denied or the following error: | |
Operation did not complete successfully because the file contains a virus or potentially unwanted software. | |
You need to disable Windows defender using (PS): | |
Set-MpPreference -DisableRealtimeMonitoring $true |
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
# Export | |
%windir%\system32\inetsrv\appcmd list apppool /config /xml > app_pools.xml | |
%windir%\system32\inetsrv\appcmd list site /config /xml > sites.xml | |
# Import | |
%windir%\system32\inetsrv\appcmd add apppool /in < app_pools.xml | |
%windir%\system32\inetsrv\appcmd add site /in < sites.xml | |
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
# DNS | |
# add this to keep using the local DNS server | |
pull-filter ignore "dhcp-option DNS" | |
# or add this if you would like to use a specific DNS server when connecting with | |
dhcp-option DNS 10.11.12.13 |
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
sudo update-locale LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8 |
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
EDBEngineError-Network Initialization Failed | |
Permission Denied | |
File C:\PDOXUSERS.NET | |
Directory: c:\ | |
1. Create a new directory such as C:\BDEShare or use an existing folder (like My Documents). | |
2. Start the BDE Administration utility, located in: C:\Program Files (x86)\Common Files\Borland Shared\BDE\BDEADMIN.EXE | |
3. Click Configuration -> Drivers -> Native -> Paradox | |
4. Cick on the path next to NET DIR | |
5. Click the browse button to the right of the path |
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
private string GetRequest() | |
{ | |
var headers = String.Empty; | |
StringBuilder sb = new StringBuilder(); | |
sb.AppendLine("URL: " + Context.Request.Url); | |
sb.AppendLine("IP address:" + Context.Request.UserHostAddress); | |
sb.AppendLine("HttpMethod " + Request.HttpMethod); | |
sb.AppendLine("Header:"); | |
foreach (var key in Request.Headers.AllKeys) | |
sb.AppendLine(key + "=" + Request.Headers[key]); |
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
RESTORE HEADERONLY FROM DISK = 'D:\dbbackup\iMISMain15_15.2.5.3815.bak' |
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
1. gsec -user SYSDBA -password masterkey | |
2. add test -pw test -fname Test -lname Account | |
3. exit | |
4. login with user test & password test |
NewerOlder