We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Grant-ISHUserLogOnAsService gets seriously stack when executing within a container. It takes up to 10 minutes to execute. There are two options:
Grant-ISHUserLogOnAsService
NTRights.exe - Option 1 The faster alternative by a margin (less than 1sec) is ntrights.exe included in Windows Server 2003 Resource Kit Tools .
ntrights.exe
The toolkit is not supported officially for higher versions but ntrights.exe seems to do the job well for what ISHServer is interested in.
PoshPrivilege - Option 2 PoshPrivilege seems to be a very fast replacement. When tested inside a container with this script it worked very fast
& C:\GitHub\ISHBootstrap\Source\Server\PackageManagement\Install-NugetPackageProvider.ps1 Write-Host "Initialized NugetPackageProvider" if(-not (Get-Module -Name PoshPrivilege -ListAvailable)) { Install-Module -Name PoshPrivilege -Force -Scope CurrentUser Write-Host "Installed PoshPrivilege" } $password="Password123" $username="Alex" $securePassword = ConvertTo-SecureString -String $password -AsPlainText -Force Remove-LocalUser -Name $username -Confirm:$false -ErrorAction SilentlyContinue Write-Host "$username removed" New-LocalUser -Name $username -Password $securePassword Write-Host "$username created" $accountName=$env:COMPUTERNAME+"\"+$username Write-Host "accountName=$accountName" Add-Privilege -AccountName $accountName -Privilege SeServiceLogonRight
The text was updated successfully, but these errors were encountered:
GH-23: **PoshPrivilege - Option 2** marked as experimental.
fa79094
GH-23. Correction applied.
44be436
RWS/ISHServer#23
81de673
PoshService works and since it has become a requirement by issue RWS/ISHBootstrap#54 it will be a pre-requisite. It also solves GH-25
Sorry, something went wrong.
GH-23 and GH-25
7f187a8
7c2bea6
Merge pull request #24 from Sarafian/Grant-ISHUserLogOnAsService-Perf…
edb9d5d
…ormance GH-23 and GH-25
Sarafian
No branches or pull requests
Grant-ISHUserLogOnAsService
gets seriously stack when executing within a container. It takes up to 10 minutes to execute. There are two options:NTRights.exe - Option 1
The faster alternative by a margin (less than 1sec) is
ntrights.exe
included in Windows Server 2003 Resource Kit Tools.
The toolkit is not supported officially for higher versions but
ntrights.exe
seems to do the job well for what ISHServer is interested in.PoshPrivilege - Option 2
PoshPrivilege seems to be a very fast replacement. When tested inside a container with this script it worked very fast
The text was updated successfully, but these errors were encountered: