Created 04-10-2018 12:25 PM
hello,
I try to install minifi on windows but installation failed with an error about powershell module of active directory but all needed feature of active directory has been already installed:
here is the log file of installation
WINPKG: Logging to existing log C:\MiNiFiInstallFiles\MiNiFiSetupTools\minifi.winpkg.install.log WINPKG: ENV:WINPKG_BIN is C:\MiNiFiInstallFiles\MiNiFiSetupTools\ WINPKG: Setting Environment::CurrentDirectory to C:\Windows\SysWOW64 WINPKG: NIFI_LAYOUT= WINPKG: User is svccincom WINPKG: Cluster properties path: WINPKG: Current Directory: C:\Windows\SysWOW64 WINPKG: Package: C:\MiNiFiInstallFiles\MiNiFiSetupTools\\..\MiNiFiPackages\MiNiFi-winpkg.zip WINPKG: Action: install WINPKG: Action arguments: WINPKG: Run-WinpkgAction C:\MiNiFiInstallFiles\MiNiFiSetupTools\\..\MiNiFiPackages\MiNiFi-winpkg.zip C:\MiNiFiInstallFiles\MiNiFiPackages install WINPKG: UNZIP: source C:\MiNiFiInstallFiles\MiNiFiPackages\MiNiFi-winpkg.zip WINPKG: UNZIP: destination C:\MiNiFiInstallFiles\MiNiFiPackages WINPKG: UNZIP: unzipRoot C:\MiNiFiInstallFiles\MiNiFiPackages\MiNiFi-winpkg WINPKG: Unzip of C:\MiNiFiInstallFiles\MiNiFiPackages\MiNiFi-winpkg.zip to C:\MiNiFiInstallFiles\MiNiFiPackages succeeded WINPKG: UnzipRoot: C:\MiNiFiInstallFiles\MiNiFiPackages\MiNiFi-winpkg WINPKG: C:\MiNiFiInstallFiles\MiNiFiPackages\MiNiFi-winpkg\scripts\install.ps1 MINIFI: INSTALLATION started MINIFI: Reading MiNiFi layout from C:\Users\svcCINCOM\AppData\Roaming\minifi_install\MiNiFiproperties.txt MINIFI: Following properties will be exported into the environment MINIFI: Property Value MINIFI: -------- ----- MINIFI: MINIFI_DIR C:\minifi MINIFI: JAVA_ARG_3 -Xms12m MINIFI: JAVA_CMD java MINIFI: JAVA_ARG_2 -Xmx24m MINIFI: MINIFI_USE_LOCAL_USER False MINIFI: Creating user MINIFI: UserGroup not provided. Using default UserGroup MiNiFiUsers. MINIFI: Using user-defined password. MINIFI: Add-ServiceUser username=minifi, userGroup=MiNiFiUsers, useLocalUser=False, description=Apache NiFi MiNiFi MINIFI: Domain detected MINIFI FAILURE: The term 'Get-ADuser' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At C:\MiNiFiInstallFiles\MiNiFiSetupTools\installApi.user.ps1:120 char:25 + $user = Get-ADuser -Filter {SamAccountName -eq $username} + ~~~~~~~~~~ WINPKG FAILURE: WARNING: The names of some imported commands from the module 'InstallApi' include unapproved verbs that might make them less discoverable. To find the commands with unapproved verbs, run the Import-Module command again with the Verbose parameter. For a list of approved verbs, type Get-Verb. MINIFI: INSTALLATION started MINIFI: Reading MiNiFi layout from C:\Users\svcCINCOM\AppData\Roaming\minifi_install\MiNiFiproperties.txt MINIFI: Following properties will be exported into the environment MINIFI: Property Value MINIFI: -------- ----- MINIFI: MINIFI_DIR C:\minifi MINIFI: JAVA_ARG_3 -Xms12m MINIFI: JAVA_CMD java MINIFI: JAVA_ARG_2 -Xmx24m MINIFI: MINIFI_USE_LOCAL_USER False MINIFI: Creating user MINIFI: UserGroup not provided. Using default UserGroup MiNiFiUsers. MINIFI: Using user-defined password. MINIFI: Add-ServiceUser username=minifi, userGroup=MiNiFiUsers, useLocalUser=False, description=Apache NiFi MiNiFi MINIFI: Domain detected Write-Log : MINIFI FAILURE: The term 'Get-ADuser' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At C:\MiNiFiInstallFiles\MiNiFiPackages\MiNiFi-winpkg\scripts\install.ps1:153 char:5 + Write-Log $_.Exception.Message "Failure" $_ + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Write-Log At C:\MiNiFiInstallFiles\MiNiFiSetupTools\winpkg.ps1:131 char:9 + throw $out + ~~~~~~~~~~ WINPKG: rd /s /q C:\MiNiFiInstallFiles\MiNiFiPackages\MiNiFi-winpkg WINPKG FAILURE: C:\MiNiFiInstallFiles\MiNiFiPackages\MiNiFi-winpkg\scripts\install.ps1 failed.
Created 10-02-2018 01:14 PM
I'm having this issue as well. Does a local admin need to be created for the initial install for the Creds pre-filled in the MSI? Or would making a domain admin account with local privileges be needed?
@Omwati Sharma, Please remove your post as it is not an answer. It is just a link to get hits on a site. Please and thank you.
@Moderators: Can this kind of thing get looked at a little closer to avoid people using click-bait on real issues that Administrators need a little guidance on?
Created 10-02-2018 01:54 PM
I got rid of the clickbait.
I wonder if this is a version issue.
I will have engineering take a look
Created 04-22-2019 02:11 PM
I am having the same problem.
I want to create a local user for minifi on a Windows server on a domain, so I check the Local User option but it still tries to use Get-ADuser module.
HDF 3.4
Windows Server 2012 R2
Have you been able to solve it?
Created 12-16-2019 01:03 PM
Did you get past this issue or are you still facing the problem?
Created 12-18-2019 02:13 AM
@Wynner I don't remember exactly but I haven't found any solution to that so I decided not to use the .msi installer version of minifi.
Created 12-18-2019 10:29 AM
In my experience with the msi file, I've had to do a couple of steps before running it.
First, make sure there are no blanks spaces in the path to JAVA. Something like C:\Java
Second, I created a local user that was used to run MiNiFi. I also gave this user Administrator privileges.
I hope this helps.
Created on 10-05-2020 11:54 AM - edited 10-05-2020 11:56 AM
RSAT services are missing for active directory.
Open the Powershell with admin rights and copy and execute below line.
Will also work for Windows 10 Pro Clients
Add-WindowsCapability –online –Name “Rsat.ActiveDirectory.DS-LDS.Tools~~~~0.0.1.0”
you can check afterwards with the command
Get-Module ActiveDirectory
if its working