Ubuntu supports a new Active Directory bridging tool suite called ADsys https://github.com/ubuntu/adsys/wiki/01.-Welcome worth taking a look!
This is a great way to find duplicates. However, I have a significant number of small files (over 100,000) that I’m trying to scan. So for them, filesize is a good enough indicator to move them and investigate further. But I can’t seem to modify what you’ve got above to just use filesize. It finds the duplicates, and opens the selection window, but the move command fails because the Path is blank or null. What am I doing wrong?
Here’s my command:
Get-ChildItem -Path “C:MyFiles” -Filter *.jpg -File -Recurse `
| Group -Property Length | where { $_.Count -gt 1 } `
| foreach { $_.Group | select Path, Name, Length } `
| Out-GridView -Title “Select files to move to R:Dupes” -PassThru `
| Move-Item -Destination “R:Dupes” -Force -VerboseIs there a powershell command that can be pushed out for force the recovery key to be sync’ed with the computer account in AD? We currently use a script to activate bitlocker, set the PIN, require TPM and then push the recovery key to AD, but previously, it was all manually done and there are computers out in our environment that do not have their recovery keys in AD.
Emad commented on How to fix “The User Profile Service service failed the sign-in. User profile cannot be loaded.” 2 weeks ago
copying NTUSER.DAT from remote pc fixed the problem.
thanks
Neel commented on
Export and import to and from Excel with the PowerShell module ImportExcel 2 weeks, 5 days ago
Hi Sir,
Thank you for this tutorial. Please can you help me with deleting first 4 rows in xlsx while importing.
Mohammed Asif commented on Install Docker on Windows Server 2019 2 weeks, 5 days ago
How to install the docker license on windows server 2019 ? Thank you
I wish that they would move Evaluate-STIG to the public.cyber.mil site but I understand this is a little healthy competition going on. It’s a very useful tool to do a thorough job of evaluating the DISA maintained STIGs with limited manuals required. The additional notes are very useful for resolution as well.
Hi I think my latest comment didn’t get posted.
If I run it like this I can run it for several computers :Invoke-Command -FilePath D:-facundoStart-Cleanup.ps1 -ComputerName computer1, computer2, computer3, etc
This will run without issue.
But when I try to set it with a variable ($VMs) and foreach and invoke It won’t work.Error:
New-PSSession: A positional parameter cannot be found that accepts argument ‘computername’Hi, Yes. I can even run for a couple if I run it like this
Invoke-Command -FilePath D:-facundoStart-Cleanup.ps1 -ComputerName Computer1, Computer2, Computer3, etc.
If I run it like that it will clean all computers after ComputerName without issue.
But when I try to add a variable for bulk computers and, use Invoke and foreach It doesn’t work.Error:
New-PSSession: A positional parameter cannot be found that accepts argument ‘computername’Hello. Thank you very much for the article. It is really helpful.
I wanted to ask you something. Perhaps you can help.
I have a ps1 file. A function.
I am trying to make it run against several remote computers. I am trying to use invoke-command to achieve this but it is not working.
This how I am trying to run it. Can you please tell me if this is OK or how you would run it?$VMS= get-content “D:-facundoVMS.txt”
foreach ($V in $VMS) {Invoke-Command -computername $v -FilePath D:-facundoStart-Cleanup.ps1}
Hi. Does work. I’m using Oracle Linux 9.1 under Windows. Installed ansible (sudo yum install *ansible* and all good.
Thank you for your reply ( 9 Months is not a time!). However you didn’t answer my question. Maybe you intended to answer another thread, and the text just slipped just in here.
I repeat my question: Does this all work, when execution policy is set to AllSigned per GP?
Essence is: do digitally signed PS scripts work with Ansible?Hi Brandon,
Thank you for the wonderful insight.
I run ansible playbook and used all the modules like- win_command/shell/powershell or win_mapped_drive to map and unmap . Task runs successfully but it doesn’t map/unpad the drive in the server.
Ansible ver is 2.7.7
WIn ver – 10What are all the other ways to accomplish this task.
Thank you
Carsten Ringgaard commented on
Display access rights on Active Directory OUs with PowerShell 3 weeks, 1 day ago
Set-Location AD:
Peter Depoorter commented on Find compromised passwords in Active Directory with Have I Been Pwned 3 weeks, 1 day ago
Hi, there’s an easier way, DSInternals contains a function “passwordquality”
See https://github.com/MichaelGrafnetter/DSInternals/blob/master/Documentation/PowerShell/Test-PasswordQuality.md#test-passwordqualitycesar ramirez commented on Dockerizing a Node.js application with NGINX, Let’s Encrypt, and Docker Compose 3 weeks, 1 day ago
Would it be possible to do a video of it….??
Catalina Martinez commented on Factory reset of Windows 10 and 11 without a password 3 weeks, 2 days ago
Does anybody know how to fix the “boot device not found” start screen? I just found an old computer two hours ago and i can’t figure out what to do.
So I’ve done this twice and fully reset and wiped my pc but it is still making me log in with the previous owners account and when i try it says the user can’t be found.
Thomas Welch commented on Find compromised passwords in Active Directory with Have I Been Pwned 3 weeks, 4 days ago
there is similar software that downloads the hashes to the local
I would put a link, but it would get blocked prob “Specops password auditor”
You can get a 1 year free Lic as wellKrishan Kumar commented on DRS affinity and anti-affinity rules in VMware vSphere 3 weeks, 4 days ago
if HA cluster has two ESXi hosts and two VMs running over them by VM Anti-affinity rule, if One host goes down then VM will migrate to second ESXi host in HA cluster, or VM will be shutdown with ESXi host same like as does in Must run rule?
- Load More