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
iface eth0:1 inet static | |
address 192.168.1.5 | |
netmask 255.255.255.0 | |
network 192.168.1.0 | |
broadcast 192.168.1.255 | |
gateway 192.168.1.1 | |
iface eth0:2 inet static | |
address 192.168.1.10 | |
netmask 255.255.255.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
To enable or disable WMI traffic using firewall UI | |
1.In the Control Panel, click Security and then click Windows Firewall. | |
2.Click Change Settings and then click the Exceptions tab. | |
3.In the Exceptions window, select the check box for Windows Management Instrumentation (WMI) to enable WMI traffic through the firewall. To disable WMI traffic, clear the check box. | |
You can enable or disable WMI traffic through the firewall at the command prompt. | |
To enable or disable WMI traffic at command prompt using WMI rule group | |
•Use the following commands at a command prompt. Type the following to enable WMI traffic through the firewall. | |
netsh advfirewall firewall set rule group="windows management instrumentation (wmi)" new enable=yes |
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
$cred = Get-Credential | |
Set-MSOnlineUserPassword –Identity jane.dow@contoso.com –Password P@55word –ChangePasswordOnNextLogon $true –Credential $cred |
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
public class ExchangePowerShell | |
{ | |
public static PSCredential GetCredentials(string userName, string password) | |
{ | |
var securePassword = new SecureString(); | |
Array.ForEach(password.ToCharArray(), securePassword.AppendChar); | |
var cred = new PSCredential(userName, securePassword); | |
return cred; | |
} |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using CurrencyServiceExample.DAX.Services; | |
namespace CurrencyServiceExample | |
{ | |
class Program |
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
update userinfo | |
set | |
networkdomain = 'YourDomain', | |
networkalias = 'YourAlias', | |
SID = 'YourSID' | |
where ID = 'Admin' |
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
using System; | |
using System.Collections.Generic; | |
using System.Text; | |
using System.Diagnostics; | |
using System.DirectoryServices; | |
namespace GetUserSID | |
{ | |
/// <summary> | |
/// This class must work on a username and domainname, access active directory services |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Net; | |
using System.ServiceModel.Description; | |
using System.Text; | |
using Tutorial.AIF.CreateItem.EcoResProductServices; | |
using Tutorial.AIF.CreateItem.InventItemServices; | |
namespace Tutorial.AIF.CreateItem |
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) Put this code in a file called EnableRemoteErrors.rss | |
Public Sub Main() | |
Dim P As New [Property]() | |
P.Name = "EnableRemoteErrors" | |
P.Value = True | |
Dim Properties(0) As [Property] | |
Properties(0) = P | |
Try | |
rs.SetSystemProperties(Properties) |
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
do | |
{ | |
if (webRequest == null && string.IsNullOrEmpty(nextPageUrl)) | |
webRequest = HttpWebRequest.Create(String.Format("https://api.instagram.com/v1/tags/{0}/media/recent?client_id={1}", tagName, clientId)); | |
else | |
webRequest = HttpWebRequest.Create(nextPageUrl); | |
var responseStream = webRequest.GetResponse().GetResponseStream(); | |
Encoding encode = System.Text.Encoding.Default; |