Questions tagged [local-security-policy]

Local security settings for Windows

It consist of settings that affect the security of a Windows system. It includes audit settings, account settings, user rights, security options, etc.

33 questions
1
vote
2 answers

Setting LmCompatibilityLevel in Registry Editor is same as changing Local Security Policy?

I would like to write a batch script to change the Local Security Policy -> LAN Manager Authentication Level to "Send LM & NTLM - use the NTLMv2 session security if negotiated". I added the following statement to my batch script to achieve…
Dixie
  • 23
  • 1
  • 4
1
vote
1 answer

How to grant permissions in Local Security Policy like "Log on as a service" via script specifically in windows 10?

I've seen lots of posts about this for earlier versions of windows pointing towards RSAT and ntrights.exe but neither of those solutions work for Windows 10. I'm looking for a solution preferably in powershell or batch.
1
vote
0 answers

When does SQL Server follow the Minimum Password Age policy?

According to this SQL Server 2008 whitepaper, SQL Server should only pay attention to the Minimum Password Age policy when the Check_Expiration (Enforce Password Expiration) option is turned on. Page 7 in the whitepaper specifically says…
1
vote
0 answers

How to enumerate the privileges of a user account obtained from group membership?

I can get the privileges of a user account through the API LsaEnumerateAccountsWithUserRight. But this function ignores the privileges inherited as part of a group membership. msdn documentation clearly mentions this The accounts returned by this…
S_R
  • 493
  • 1
  • 9
  • 22
0
votes
0 answers

Can a non-admin read the Local Security Policy?

I have been tasked with providing a user with the ability to get conclusive proof that a specific collection of local security policy changes (pushed via Intune) have been applied to their workstation. They don't want to change anything -- just view…
Local Needs
  • 537
  • 3
  • 5
  • 20
0
votes
1 answer

How to install Jenkins on Windows 11?

When setup install in the Service Logon Credentials step, I select Run service as local or domain user and when Test Credentials always gets Invalid Logon. In this Jenkins documentation link invalid service logon credentials, there is something to…
Hana Hasanah
  • 145
  • 1
  • 6
0
votes
1 answer

Win7 API to programmatically add a group to a security policy?

I have found the API to add a group programmatically, the next logical step is to add this group to a security policy, such as "Create Global Objects". What is the Win7 API to programmatically add a group to a security policy?
kevinwaite
  • 613
  • 1
  • 8
  • 20
0
votes
1 answer

Is it possible to check local security policies with a powershell script?

I am working on a Task for the apprentices in our company. In that task the apprentice needs to configure local security policies on a notebook, that where given by the taskmaster. So to check them easily, I though a script would be good. But after…
ItsJustHaga
  • 15
  • 1
  • 8
0
votes
1 answer

How can I change Local Security Policy through comand line

I have a windows 10 machine and I need to change the Security settings to not defined for Local Security Policy->Local Policies->Security Options-> DCOM:Machine Launch Restrictions in SDDL syntax and DCOM:Machine Access Restrictions in SDDL syntax…
Aparna
  • 835
  • 2
  • 23
  • 47
0
votes
0 answers

Add Batch File to Local Group Policy Editor

I need write script using batch file to add Local Group Policy Editor\Local Computer Policy\Computer Configuration\Windows Settings\Scripts (Startup/Shutdown) I'm trying to copy only to %%windir%%\GroupPolicy\Machine\Scripts\Shutdown but still no…
0
votes
2 answers

Veeam Backup & Replication 9.5: Impossible to add hyper-v host to backup infrastructure (Network path not found, or invalid credentials supplied)

In the software Backup & Replication 9.5 it was not possible to add the local Hyper-V host (standalone) to the backup infrastructure: Always gives an error "Network path not found, or invalid credentials supplied." I tried first these tipps:…
Wave
  • 69
  • 2
  • 3
0
votes
0 answers

Is it possible to create an application whitelist for user privileges in Windows?

Is it possible to grant a user a specific privilege, but then restrict the use of that privilege to a specific list of applications? For example, lets say that I have a special debugging application that I want use on a normal account that requires…
0
votes
1 answer

password history requirements - windows

In windows local group policy, we have the minimum password length, password history requirements etc. So i would like to retrieve the minimum password length and password history requirement programatically using c++
230490
  • 516
  • 4
  • 15
0
votes
1 answer

Edit secpol.msc programmatically?

Is there a way to edit the settings from secpol.msc programmatically? I am looking for something similar to this: ManagementScope scope = new ManagementScope("root\\rsop\\user\\" + user.User.Value.Replace('-', '_')); ObjectQuery…
hupseb
  • 293
  • 4
  • 15
0
votes
1 answer

Cant start up SQL service after server restart

After Server restart Cant start SQL Service. Getting error : Service: MSSQL$SQLEXPRESS Domain and account: NT Service\MSSQL$SQLEXPRESS This service account does not have the required user right "Log on as a service." User Action Assign "Log on…