mikebai.com

  • Home
  • dev
  • DotNET
  • M365
  • 搞笑
  • 杂七杂八
  • FocusDict
個人BLOG
it developer
M365

How to edit Local Group Policy with script?

FROM https://serverfault.com/questions/848388/how-to-edit-local-group-policy-with-script I have to set the local Group Policy settings and the the local Security Policy for a couple of machines which are not in a Windows Domain. Until now, I've done that by manually setting the keys in gpedit. Due to the transition to Windows 10 I would like to automate that and use a Batch or PowerShell-Script to do that. It would be very nice if this can be done without 3rd party tools. How can I set these Policys using Powershell or a Batch file? Thank you for your answers in advance! Peter

2019-04-07 0comments 106hotness 0likes mikebai Read all
M365

SharePoint note

02/05 1.IEの自動ログイン機能をオフにする  IE option ⇒ ローカルイントラネット ⇒ レベルのカスタマイズ ⇒ SCROLL最後まで ⇒ ログオン   ⇒ 「ユーザー名とパスワードを入力してログオンする」 を チェックする 2.権限付与  SITE ⇒ Setting ⇒ Site Setting ⇒ Site collection administrators(サイトコレクションの管理者)  サイトの権限 ⇒ 「ユーザー」アクセス許可の付与 OR グループ作成 3.

2019-02-05 0comments 109hotness 0likes mikebai Read all
杂七杂八

一時リンク

固定リンク: http://amzn.asia/1eDleXk https://www.amazon.co.jp/dp/B00RD365X8/ref=sspa_dk_detail_1?psc=1 https://www.c-sharpcorner.com/UploadFile/vemuhemanth/cascading-dropdown-in-Asp-Net-using-jquery/ https://www.aspsnippets.com/Articles/AJAX-Cascading-DropDownList-using-jQuery-in-ASP.Net.aspx https://forums.asp.net/p/1717977/4587810.aspx?Re+JQuery+AJAX+call+to+page+method+not+working https://www.aspdotnet-suresh.com/2013/10/jquery-cascading-dropdown-list-in-aspnet.html

2018-04-11 0comments 187hotness 0likes mikebai Read all
DotNET

excel epplus ref

https://www.paragon-inc.com/blog/easy_excel_interaction_pt5 http://gruffcode.com/2013/10/30/simple-excel-export-with-epplus/ https://stackoverflow.com/questions/13396604/excel-to-datatable-using-epplus-excel-locked-for-editing http://www.jb51.net/article/80065.htm https://code.msdn.microsoft.com/CSASPNETCascadingDropDownLi-0a3f1ecf

2018-04-09 0comments 150hotness 0likes mikebai Read all
DotNET

run visual studio always as administrator

Follow these simple steps: Right Click on "devenv.exe" Click "Troubleshoot compatibility" Click "Troubleshoot program" Check "The program requires additional permissions" Click "Next" Click "Test the program...". It should launch Visual Studio as Administrator Click "Next" Click "Yes, save these settings for this program" Click "Close the troubleshooter" Now the Visual Studio

2018-03-23 0comments 151hotness 0likes mikebai Read all
DotNET

使用ScriptManager管理Script

Tool:Visual Studio 2013 Ultimate OS:Windows Server 2012 .NET Framework : 4.5.1   這是自ASP.NET4.5版就新增的新功能,在ASP.NET Web Forms網站之中,可以利用ScriptManager來管理JavaScript,例如jQuery,讓引用更方便。 建立一個Web Site 使用NuGet下載jQuery,目前版本2.0.3

2018-03-18 0comments 141hotness 0likes mikebai Read all
DotNET

MB.Utility.Log.SingleLog

using System; using System.Collections.Generic; using System.Text; using System.Reflection; using System.IO; namespace MB.Utility.Log {     /// <summary>     ///      /// </summary>     public class SingleLog     {         StreamWriter sw = null;         // string LogFile;             /// <summary>             ///              /// </summary>             /// <param name="assembly"></param>         public SingleLog(Assembly assembly)         {             if (assembly == null)             {                 throw new Exception("未指定程序集~");             }             string directory = Path.GetDirectoryName(assembly.Location) + "\\" + "~LogFile";             string folder = Path.GetFileNameWithoutExtension(assembly.Location);             string fileName = directory + "\\" + folder + "\\" + DateTime.Now.ToString("yyyyMMddHHmm") + ".txt";             if (!Directory.Exists(Path.GetDirectoryName(fileName)))             {                 Directory.CreateDirectory(Path.GetDirectoryName(fileName));             }             bool append = true;             //if (!File.Exists(fileName))             //{             //    File.Create(fileName);             //}             this.sw = new StreamWriter(fileName, append, Encoding.Unicode);         }  …

2018-03-17 0comments 154hotness 0likes mikebai Read all
dev

View method information in Android Studio

You can activate it by going to:  File > Settings > Editor > General and check Show quick documentation on mouse move:

2018-03-17 0comments 107hotness 0likes mikebai Read all
DotNET

Using WinMerge as a Visual Source Safe 5.0 diff tool

I faced lot of trouble when i do difference between  two versions in VSS, it is not specifying what exactly the change is. So i thought of exploring how to use one of the best open source diff tool to make this. In this post i am going to explain how can we integrate WinMerge’s diff tool with VSS 5.0. Pre-Requisites: 1. VSS 5.0 installed 2. Winmerge 2.12.4 installed. Steps: 1. Open VSS by entering valid User name, password and connect to a Visual Source Safe database. 2. Go to Tools>Options. 3. In options dialog go to the “Custom Editors” tab by clicking on the spin button (< >) 4. Click on the Operations combo box. 5. Select “File Difference” 6. In File Extension edit box: enter file extension to use (Ex: .*) for all file types. 7. In Command Line edit box: enter the installation location of the WinMergeU.exe. on My machine. Example: C:\Program Files\WinMerge\WinMergeU.exe /e /x /wl /wr %1 %2 8

2018-03-17 0comments 142hotness 0likes mikebai Read all
DotNET

How to Clear INetCache in C#

How to Clear INetCache in C# Step 01. Create Variable private const int INTERNET_OPTION_END_BROWSER_SESSION = 42; [DllImport("wininet.dll", SetLastError = true)] private static extern bool InternetSetOption(IntPtr hInternet, int dwOption, IntPtr lpBuffer, int lpdwBufferLength); Step 02. Create Method private static void ClearIEFolder() {     try     {         string args1 = "";         args1 = ("InetCpl.cpl,ClearMyTracksByProcess 8");         System.Diagnostics.Process process = null;         System.Diagnostics.ProcessStartInfo processStartInfo;         processStartInfo = new System.Diagnostics.ProcessStartInfo();         processStartInfo.FileName = Environment.GetFolderPath(Environment.SpecialFolder.System) + "\\Rundll32.exe";         if ((System.Environment.OSVersion.Version.Major >= 6))         {             //  Windows Vista or higher             processStartInfo.Verb = "runas";         }         processStartInfo.Arguments = args1;         processStartInfo.WindowStyle = System.Diagnostics.ProcessWindowStyle.Hidden;         processStartInfo.UseShellExecute = false;         processStartInfo.RedirectStandardOutput = true;         processStartInfo.RedirectStandardError = true;         try         {             process = System.Diagnostics.Process.Start(processStartInfo);         }         catch { }         finally         {             if (!(process == null))             {                 process.Dispose();             }         }     }     catch { }     try      …

2018-03-17 0comments 147hotness 0likes mikebai Read all
1…1718192021…62

Recent Posts

  • c# winform适配高dpi
  • com.microsoft.sqlserver.jdbc.SQLServerException “trustServerCertificate”属性设置为“false”,但驱动程序无法使用安全套接字层 (SSL) 加密与 SQL Server建立安全连接
  • java -cp 用法介绍
  • HTML 容器元素
  • MVC的cshtml的介绍

Recent Comments

No comments to show.

COPYRIGHT © 2025 mikebai.com. ALL RIGHTS RESERVED.

Theme Kratos Made By Seaton Jiang