diff --git a/src/Microsoft.PowerShell.Security/security/AclCommands.cs b/src/Microsoft.PowerShell.Security/security/AclCommands.cs
index 7fa42b31424..072790a38ac 100644
--- a/src/Microsoft.PowerShell.Security/security/AclCommands.cs
+++ b/src/Microsoft.PowerShell.Security/security/AclCommands.cs
@@ -1060,7 +1060,7 @@ public SwitchParameter Passthru
/// Returns a newly allocated SACL with no ACEs in it.
/// Free the returned SACL by calling Marshal.FreeHGlobal.
///
- private IntPtr GetEmptySacl()
+ private static IntPtr GetEmptySacl()
{
IntPtr pSacl = IntPtr.Zero;
bool ret = true;
@@ -1246,7 +1246,7 @@ private IntPtr GetSaclWithCapId(string capStr)
/// and the previous state of this privilege. Free the returned token
/// by calling NativeMethods.CloseHandle.
///
- private IntPtr GetTokenWithEnabledPrivilege(
+ private static IntPtr GetTokenWithEnabledPrivilege(
string privilege,
NativeMethods.TOKEN_PRIVILEGE previousState)
{
diff --git a/src/Microsoft.PowerShell.Security/security/CertificateProvider.cs b/src/Microsoft.PowerShell.Security/security/CertificateProvider.cs
index e60b817d4ec..188f836bb68 100644
--- a/src/Microsoft.PowerShell.Security/security/CertificateProvider.cs
+++ b/src/Microsoft.PowerShell.Security/security/CertificateProvider.cs
@@ -1373,7 +1373,7 @@ private void AttemptToImportPkiModule()
_hasAttemptedToLoadPkiModule = true;
}
- private string MyGetChildName(string path)
+ private static string MyGetChildName(string path)
{
// Verify the parameters
@@ -1919,7 +1919,7 @@ private void DoRemove(X509Certificate2 cert, bool fDeleteKey, bool fMachine, str
///
/// An IntPtr for store handle.
/// No return.
- private void CommitUserDS(IntPtr storeHandle)
+ private static void CommitUserDS(IntPtr storeHandle)
{
if (!Security.NativeMethods.CertControlStore(
storeHandle,